SMF For Free Support Forum
Signup For Free Forum
December 04, 2008, 08:42:57 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: [Code] Post Warning V1  (Read 1510 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Moderator
*****
Offline Offline

Posts: 669


Do not PM me for Code Support or Request


View Profile
« on: July 07, 2007, 01:27:38 pm »

Add this to your headers if you don't have it...
Code:
<script src="/jquery.js"></script>

Footers...
Code:
<script>
function post_warning(){
var text = "YOUR TEXT HERE";
if(location.href.match(/action=post;board=/i)){
$("textarea.editor").append(text)
};};
post_warning();
</script>

Basicly, this will show text in the textarea where you type your post right when the page loads.

Just change YOUR TEXT HERE to your own text.
« Last Edit: May 02, 2008, 09:15:19 pm by Agent Moose » Logged



SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/cen
jeRm
SMF For Free Full Member
*
Offline Offline

Posts: 114



View Profile WWW
« Reply #1 on: July 07, 2007, 07:56:21 pm »

I will have to try it again. It didn't work for me.  What exactly does it do? Is the text going to be posted unless they delete it, or does it just show somewhere?
Logged

Agent Moose
Moderator
*****
Offline Offline

Posts: 669


Do not PM me for Code Support or Request


View Profile
« Reply #2 on: July 08, 2007, 08:32:10 pm »

Ok, When you click the button "Reply".  In that post box that comes up when the page loads, the text will be inside it.
Logged



SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/cen
deathwilldie
Style Designer
****
Offline Offline

Posts: 645


Give me an idea for a Stylesheet


View Profile WWW
« Reply #3 on: July 09, 2007, 03:49:15 am »

Well I still don't get it.  Can you have a preview of it or something?
Logged


jeRm
SMF For Free Full Member
*
Offline Offline

Posts: 114



View Profile WWW
« Reply #4 on: July 09, 2007, 08:24:30 am »

It shows up when you make a new topic or poll. Not a post. (for me at least)
Logged

deathwilldie
Style Designer
****
Offline Offline

Posts: 645


Give me an idea for a Stylesheet


View Profile WWW
« Reply #5 on: July 10, 2007, 05:46:54 pm »

Oh ok I see what it does now.
Logged


campkz
SMF For Free Member
*
Offline Offline

Posts: 28



View Profile
« Reply #6 on: July 15, 2007, 05:53:05 am »

when you click reply under way you insert your text it says topic summary then u can see what others have posted
Logged

Well heres my sick forum ;p

Note: I love private servers ;p.
Laugh-nd-kid
SMF For Free Master
*
Offline Offline

Posts: 1413


Thankyou for this great software SMF For Free!


View Profile
« Reply #7 on: July 15, 2007, 06:38:15 am »

Preview please, I don't get it.
Logged

campkz
SMF For Free Member
*
Offline Offline

Posts: 28



View Profile
« Reply #8 on: July 15, 2007, 07:27:57 am »





heres a pic ask me for somemore if you need more pics

[img=http://img167.imageshack.us/img167/6996/exampbj5.jpg]
Shot at 2007-07-15
« Last Edit: July 15, 2007, 07:29:55 am by campkz » Logged

Well heres my sick forum ;p

Note: I love private servers ;p.
God11
SMF For Free Member
*
Offline Offline

Posts: 53


View Profile
« Reply #9 on: August 27, 2008, 02:11:58 am »

okay i dont want to get into trouble but i dont understand this warning system

Code:
<script>
function post_warning(){
var text = "YOUR TEXT HERE";
if(location.href.match(/action=post;board=/i)){
$("textarea.editor").append(text)
};};
post_warning();
</script>

where it says Your text here what does that mean? like im confused
Logged

simply sibyl
Female Type
Global Moderator
*
Offline Offline

Posts: 9429


Please do not PM for Support


View Profile WWW
« Reply #10 on: August 27, 2008, 02:16:45 am »

Change YOUR TEXT HERE to what you want the warning text to be.
Logged

God11
SMF For Free Member
*
Offline Offline

Posts: 53


View Profile
« Reply #11 on: August 27, 2008, 02:18:33 am »

so like how do i warn someone then? im still confused
Logged

simply sibyl
Female Type
Global Moderator
*
Offline Offline

Posts: 9429


Please do not PM for Support


View Profile WWW
« Reply #12 on: August 27, 2008, 02:23:34 am »

so like how do i warn someone then? im still confused

bleh - this one doesnt work that way.   If you use this code it does it to everyone.
If you make a new topic it puts whatever words you put in that code right in the reply box.

If you want a warning system check for one here:
Guides & Tutorials Index

Or maybe this one:
http://www.smfsupport.com/support/smf_for_free_codes/warn_system-t4184.0.html;msg20769#msg20769
   
Logged



Pages: [1]
  Print  
 
Jump to:  

cheap low cost web hosting reviews

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.255 seconds with 17 queries.