Agent Moose
Administrator
Offline
Gender:
Posts: 2,672
|
|
« on: May 17, 2007, 07:38:22 pm » |
|
Place in Footers or Headers This adds a box with a custom message under the user you choose name in a topic. Change USERNAME to the members username, and change CUSTOM MESSAGE to the message that the user wants. Too add more message for people, just add more of these lines: message[message.length] = ["USERNAME","CUSTOM MESSAGE"] <script> function custom_message(){ //Created by Agent Moose (smcodes.smfforfree3.com) var message = new Array(); message[message.length] = ["USERNAME","CUSTOM MESSAGE"]
if(location.href.match(/topic/i)){ for(f=0;f<message.length;f++){ $("a").each(function(){ if(this.innerHTML == message[f][0] && $(this).parent("b").parent("td").html()){ $(this).after("<div class='windowbg2'><span class='smalltext'><b>Custom Message:</b><br>" + message[f][1] + "</span></div>"); };});};};}; custom_message(); </script>
|
|
« Last Edit: March 08, 2008, 08:37:21 am by Agent Moose »
|
Report Spam
Logged
|
|
|
|
|
deathwilldie
100 Club Member
Offline
Posts: 214
|
|
« Reply #1 on: May 17, 2007, 09:44:53 pm » |
|
This is a pretty cool code. How can I get one like you have on this forum?
|
|
|
|
|
Celebrus
Artificially Conscious
Administrator
Offline
Gender:
Posts: 1,337
aka Omikron
|
|
« Reply #2 on: July 03, 2007, 02:54:25 am » |
|
<script> function custom_message(){ $(function(){ //Created by Agent Moose //More codes at smcodes.smfforfree3.com var message = new Array() message[0] = ["USERNAME","TEXT"]
if(location.href.match(/topic/i)){ for(f=0;f<message.length;f++){ $("td b a").contains(message[f][0]).after("<div class='quote'><span class='smalltext'><b>Custom Message:</b><br>"+message[f][1]+"</span></div>"); };};});} custom_message(); </script>
This one looks better, doesn't it?
|
|
« Last Edit: July 03, 2007, 07:26:36 am by vikhyat »
|
Report Spam
Logged
|
|
|
|
Agent Moose
Administrator
Offline
Gender:
Posts: 2,672
|
|
« Reply #3 on: July 03, 2007, 07:54:17 am » |
|
It does look better, but I am useing my own class. So I can make it look diffrent through CSS.
|
|
|
|
Celebrus
Artificially Conscious
Administrator
Offline
Gender:
Posts: 1,337
aka Omikron
|
|
« Reply #4 on: July 11, 2007, 05:46:44 am » |
|
doesn't work in ie6 - i know that.
|
|
|
|
Celebrus
Artificially Conscious
Administrator
Offline
Gender:
Posts: 1,337
aka Omikron
|
|
« Reply #5 on: July 15, 2007, 07:07:39 am » |
|
sorry, my fault. didn't copy the code right.
|
|
|
|
Agent Moose
Administrator
Offline
Gender:
Posts: 2,672
|
|
« Reply #6 on: July 15, 2007, 01:11:04 pm » |
|
lol, at least you got it working.
|
|
|
|
LaundryLady
Geriatric Goddess
Global Moderator
Offline
Gender:
Posts: 290
I'm watching, I have a sense of humor: Guess Who
|
|
« Reply #7 on: July 25, 2007, 07:48:34 am » |
|
<span class='smalltext'>Custom Message: "+message[f] I took that part out.
|
|
|
|
Myrtle
The Girl With The Forum.
100 Club Member
Offline
Gender:
Posts: 480
Death Note(Credits to Kai): Myrtle_Gail, Myr-chan
|
|
« Reply #8 on: February 21, 2008, 01:28:08 am » |
|
It's not working at mines?
|
|
|
|
Agent Moose
Administrator
Offline
Gender:
Posts: 2,672
|
|
« Reply #9 on: February 21, 2008, 05:14:35 pm » |
|
Should work now Just get the code from the first post again
|
|
|
|
Myrtle
The Girl With The Forum.
100 Club Member
Offline
Gender:
Posts: 480
Death Note(Credits to Kai): Myrtle_Gail, Myr-chan
|
|
« Reply #10 on: February 29, 2008, 08:26:09 pm » |
|
+-ღMyrtleღ-+
Thanks Moose. But, hmm, it's still not working though
|
|
|
|
Agent Moose Jr.
Ultra Contagious
Global Moderator
Offline
Gender:
Posts: 1,045
|
|
« Reply #11 on: February 29, 2008, 08:56:51 pm » |
|
its because hes not added you to the code yet
|
Newest:
|
|
|
Myrtle
The Girl With The Forum.
100 Club Member
Offline
Gender:
Posts: 480
Death Note(Credits to Kai): Myrtle_Gail, Myr-chan
|
|
« Reply #12 on: March 06, 2008, 06:44:00 am » |
|
+-ღMyrtleღ-+
It's still not working.
|
|
|
|
Myrtle
The Girl With The Forum.
100 Club Member
Offline
Gender:
Posts: 480
Death Note(Credits to Kai): Myrtle_Gail, Myr-chan
|
|
« Reply #13 on: March 08, 2008, 06:11:02 am » |
|
+-ღMyrtleღ-+
Sorry for double posting but I really want this code but it really ain't working.
|
|
|
|
Agent Moose
Administrator
Offline
Gender:
Posts: 2,672
|
|
« Reply #14 on: March 08, 2008, 08:36:00 am » |
|
Can you post teh code taht your using
|
|
|
|
|
|