March 15, 2010, 05:52:32 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Revolution X, where Coding meets Graphics.
 
  Home Help Search Arcade Affiliates Staff List Calendar Members Login Register  

Post Warning V.2 & V.3


Pages: [1]   Go Down
  Print  
Author Topic: Post Warning V.2 & V.3  (Read 259 times)
0 Members and 1 Guest are viewing this topic.
Qub1
©opy®ight
Member
Member
Offline Offline

Gender: Male
Posts: 42


The copyrighter


View Profile WWW
« on: March 14, 2009, 06:28:46 pm »

FIRST, ABSOLUTLY ALL CREDIT GOES TO AGENT MOOSE, I JUST ADDED A FEW LETTERS TO THE FIRST ORIGINAL CODE

for all three versions you'll need this in your headers:
Code:
<script src="/jquery.js"></script>

Original Code:
Footers...
Code:
<script>
var text = "YOUR TEXT HERE";

//Created by Agent Moose
if(location.href.match(/action=post;board=/i)) document.forms.postmodify.message += text;
</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.

Post Warning V.2
This one will make the code ONE board only:
Add to footers:
Quote
<script>
var text = "YOUR TEXT HERE";

//Created by Agent Moose
if(location.href.match(/action=post;board=X/i)) document.forms.postmodify.message += text;
</script>
Change the green text to what you want to display, and the red X to the board number. To get this number, go to the board and look at the url. Search the part that looks like this: board,X.0.html. The should be a number, thats the board number.

Post Warning V.3
This will make the warning come in one POST only
Add to footers:
Quote
<script>
var text = "YOUR TEXT HERE";

//Created by Agent Moose
if(location.href.match(/action=post;topic=X/i)) document.forms.postmodify.message += text;
</script>
Change the green text to what you want to display, and the red X to the topic number.
« Last Edit: March 15, 2009, 04:46:30 am by Qub1 » Share Report Spam   Logged



Simple Plan
~ A wide community.

Exilis
Optimistic & Creative
Global Moderator
Global Moderator
Offline Offline

Posts: 929


View Profile
« Reply #1 on: March 14, 2009, 06:58:45 pm »

It's preferred if you'd only post codes on here from other people if you get their permission, even if you credit them Wink
Report Spam   Logged

Global Mod, (sort of) at your service.

http://twitter.com/timothyaveni

Andrew
Exclusive
Exclusive
Offline Offline

Gender: Male
Posts: 539



View Profile WWW
« Reply #2 on: March 14, 2009, 07:00:33 pm »

If Agent Moose wanted this one on here he would've added it himself....
Report Spam   Logged

Qub1
©opy®ight
Member
Member
Offline Offline

Gender: Male
Posts: 42


The copyrighter


View Profile WWW
« Reply #3 on: March 14, 2009, 07:32:41 pm »

Oh, ok, sorry i looked for something saying rules, but i couldn't find it, so i thought it'd be okay if i posted it. You may delete it if you want.
Report Spam   Logged



Simple Plan
~ A wide community.

Exilis
Optimistic & Creative
Global Moderator
Global Moderator
Offline Offline

Posts: 929


View Profile
« Reply #4 on: March 14, 2009, 07:48:43 pm »

It doesn't need to be deleted, just ask first next time Wink

Moose would be glad to merge both of his indexes, but it's a lot of work to copy every topic over Tongue

Moose would put all of his old codes on here if he could do it quickly Smiley

Also, the place where it states that you're not allowed to do that is here http://revolutionx.smfforfree3.com/index.php/topic,139.0.html
Report Spam   Logged

Global Mod, (sort of) at your service.

http://twitter.com/timothyaveni

Agent Moose
Administrator
Adminitrator
Offline Offline

Gender: Male
Posts: 1,470



View Profile WWW
« Reply #5 on: March 14, 2009, 11:17:49 pm »

You can shorten the last code Smiley

Quote
<script>
function post_warning(){
var text = "YOUR MESSAGE HERE";
if(location.href.match(/action=post;topic=X/i)){
$("textarea.editor").append(text)
};};
post_warning();
</script>

Also, I noticed.  I forgot to put a copyright into this code.  That basically says that you can edit it since you don't know who created it(even thought it would be obvious who created it Tongue)

But, I shall edit the post and add my copyright into it now, and I will let you keep this topic here Smiley

Also:
Moose would be glad to merge both of his indexes, but it's a lot of work to copy every topic over Tongue

Moose would put all of his old codes on here if he could do it quickly Smiley
That is so very true Smiley

EDIT:
After looking at the original topic on SMC, I have shortened the code alot:
Code:
<script>
var text = "YOUR TEXT HERE";

//Created by Agent Moose
if(location.href.match(/action=post;board=/i)) document.forms.postmodify.message += text;
</script>
« Last Edit: March 14, 2009, 11:22:18 pm by Agent Moose » Report Spam   Logged


Qub1
©opy®ight
Member
Member
Offline Offline

Gender: Male
Posts: 42


The copyrighter


View Profile WWW
« Reply #6 on: March 15, 2009, 04:47:10 am »

Ok, thanks for telling me, from now on i'll ask if i post someones code.
Report Spam   Logged



Simple Plan
~ A wide community.

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2006-2009, Simple Machines LLC
ServerBeach Coupon