Agent Moose
Administrator
Offline
Gender:
Posts: 2,672
|
|
« on: March 27, 2008, 07:54:15 pm » |
|
Footers: <script> var User = $("td.titlebg2 span b").not($("td.titlebg2 span b:contains(News)")).html(); $("div.post").each(function(){ //Created by Agent Moose (smcodes.smfforfree3.com) if(this.innerHTML.match(/\[whisper=(.*)\](.*)\[\/whisper\]/i)){ if(RegExp.$1 == User){ this.innerHTML = this.innerHTML.replace(/\[whisper=(.*)\](.*)\[\/whisper\]/i,"<div><div><a href='javascript:void(0)' onclick='$(this).parent().next().toggle()'>(Show/Hide Whisper For " + RegExp.$1 + ")</a></div><div style='display:none' id='whisper'>" + RegExp.$2 + "</div></div>"); }else{ this.innerHTML = this.innerHTML.replace(/\[whisper=(.*)\](.*)\[\/whisper\]/i,""); };};}); </script> A Whisper tag will show only to A specified User. Just place [whisper=USERNAME]TEXT[/whisper] in a post and it will only show to the User you put for the USERNAME. There will be a link in the Post for the User that will look like this: (Show/Hide Whisper For USERNAME) USERNAME = The User that will see the Whisper. Only he/she may see it too. TEXT = the Text for the User to see. Enjoy
|
|
|
|
|
Celebrus
Artificially Conscious
Administrator
Offline
Gender:
Posts: 1,337
aka Omikron
|
|
« Reply #1 on: March 28, 2008, 01:29:00 am » |
|
Heh I see you've gotten around to making this at last.
|
|
|
|
|
Myrtle
The Girl With The Forum.
100 Club Member
Offline
Gender:
Posts: 480
Death Note(Credits to Kai): Myrtle_Gail, Myr-chan
|
|
« Reply #2 on: March 28, 2008, 03:46:32 am » |
|
Awesome this will match the spoiler tag. Thanks! hahah...
|
|
|
|
123owned123
100 Club Member
Offline
Posts: 351
|
|
« Reply #3 on: March 28, 2008, 06:47:26 am » |
|
thanks .... looks great
|
|
|
|
Agent Moose
Administrator
Offline
Gender:
Posts: 2,672
|
|
« Reply #4 on: March 28, 2008, 03:47:02 pm » |
|
Heh I see you've gotten around to making this at last.
Yep. Took me awhile to figure out how exactly to do it, and yet, it stlll isn't exactly how I want it, but it works for now And Im glad you all like it
|
|
|
|
Myrtle
The Girl With The Forum.
100 Club Member
Offline
Gender:
Posts: 480
Death Note(Credits to Kai): Myrtle_Gail, Myr-chan
|
|
« Reply #5 on: March 30, 2008, 04:52:03 am » |
|
Seriously, It totally matches the Spoiler Tag. Awesome code again
|
|
|
|
sweet_candygirl23
Members
Offline
Posts: 41
|
|
« Reply #6 on: March 31, 2008, 03:25:23 am » |
|
Do admins / staffs see the whispers of members??
|
|
|
|
Celebrus
Artificially Conscious
Administrator
Offline
Gender:
Posts: 1,337
aka Omikron
|
|
« Reply #7 on: March 31, 2008, 03:29:47 am » |
|
Naw only that user. But it shows up when you try to edit their posts.
|
|
|
|
|
CodeLover
100 Club Member
Offline
Gender:
Posts: 331
|
|
« Reply #9 on: April 29, 2008, 07:19:01 am » |
|
Hey Moose, is it okay if I use this and change the BBCode so I can make my own BBCode?
Please Respond, CodeLover
|
|
|
|
|
|