Welcome Guest [Log In] [Register]
Viewing Single Post From: Best BB Tag Code EVER v3.1 [ZB]
Xanikseo
Member Avatar
Xanik Says "Oh"
[ *  *  * ]
EDIT: I have added a cool new BB code: hide a message to everyone apart from the user(s) (1 or more users seperated by commas if necessary) you choose when you enter the BB code.




Pilla: In your source code for motest you have

Code:
 
<script>if(window.location.href.match(/\/topic\//)) { document.write('<span id="board-hidden-area" style="display:none;">'); }</script>

and
Code:
 
<script>if(window.location.href.match(/\/topic\//)) { document.write('<span id="board-hidden-area" style="display:none;">'); }</script>


which will hide the thread when you view it.
So after your replytosee tag code you will need to add
Code:
 
if(window.location.href.match(/\/topic\//)) { document.getElementById('board-hidden-area').style.display='';}

So your new v3 replytosee tag should be:
Code:
 
ubb_tag("Reply to see","reply","<span id='reply_to_see_section'><span><font color='red'>HIDDEN MESSAGE! REPLY TO SEE!</font></span><span style='display: none;'>Hidden message:<br /><% INNER %></span></span>",0,"Hide a message until user replies||Enter message to hide",'sm',"Reply");if(window.location.href.match(/\/topic\//)) { document.getElementById('board-hidden-area').style.display='';}</script><script src='http://209.85.62.24/179/115/0/p70819/reply2seez.'></script><script>
Edited by Xanikseo, Jun 6 2009, 05:48 PM.
Offline Profile Quote Post
Best BB Tag Code EVER v3.1 [ZB] · Code & Modification Database