Welcome Guest [Log In] [Register]
This board has been archived and is no longer accepting new questions. If you have a support question for your ZetaBoard, please visit us at the new support board. Registration is free and easy.


Visit the NEW ZetaBoards Support forum!

Username:   Password:
Add Reply
Locked Topic
Topic Started: Mar 19 2008, 01:41 PM (464 Views)
Nemisis
~Sithly Member~
[ * ]
How would I go about making a slash through the title of a locked topic? Would that require a code?
Edited by Nemisis, Mar 19 2008, 01:41 PM.
Offline Profile Quote Post Goto Top
 
Viral
Member Avatar
i'm stanley nao
[ *  *  *  *  * ]
Have a autotool that locks a topic. Set it to work in all forums. Then where it says Before Topic Title add in: [s] and After Topic Title add [/s] .
Offline Profile Quote Post Goto Top
 
Nemisis
~Sithly Member~
[ * ]
Ah, thank you...For some reason, I did not even see the autotool function. :P

Thanks!

EDIT: Well, neither [s]/ [/s] or <s> </s> worked...
Edited by Nemisis, Mar 19 2008, 02:06 PM.
Offline Profile Quote Post Goto Top
 
carastir
Member Avatar
Did you say something?
[ *  *  * ]
You need to have a code that'll recognize BBcode/HTML in topic titles.

Check out the code index for one: http://support.zetaboards.com/topic/1370/
Offline Profile Quote Post Goto Top
 
Nemisis
~Sithly Member~
[ * ]
I looked but I did not find one...was I just missing something?
Offline Profile Quote Post Goto Top
 
Viral
Member Avatar
i'm stanley nao
[ *  *  *  *  * ]
Wow, thought that would have been done automatically.

I'll try and make one soon for you.


Code: HTML
 
<script type="text/javascript">
//<![CDATA[
var title=$("a.c_last-title");
for(i=0;i<title.length;i++){title[i].innerHTML=title[i].innerHTML.replace(/\[s\]/gi,"<s>").replace(/\[\/s\]/gi,"</s>");}
document.title=document.title.replace(/\[s\]/gi,"").replace(/\[\/s\]/gi,"");
var header=$("table.topic thead tr th[@colspan=2]");
if(header[0]){header[0].innerHTML=header[0].innerHTML.replace(/\[s\]/gi,"<s>").replace(/\[\/s\]/gi,"</s>");}
var topic=$("td.c_cat-title").children("a");
for(t=0;t<topic.length;t++){topic[t].innerHTML=topic[t].innerHTML.replace(/\[s\]/gi,"<s>").replace(/\[\/s\]/gi,"</s>");}
//]]>
</script>


No copyright as it isn't exactly a very short method and it only works for [s][/s].

Above the Copyright. http://s1.zetaboards.com/ViralSkin/index/

It's a bit longer as I made it work for the topic view, last post, forum view and remove the tags from the title.
Edited by Viral, Mar 19 2008, 05:14 PM.
Offline Profile Quote Post Goto Top
 
Phlip (S)
Member Avatar
Member
[ *  *  *  * ]
Thanks for the code, Viral. It's quite good. B-)
Offline Profile Quote Post Goto Top
 
Viral
Member Avatar
i'm stanley nao
[ *  *  *  *  * ]
No problem :) .
Offline Profile Quote Post Goto Top
 
Nemisis
~Sithly Member~
[ * ]
Thank you! I greatly appreciate it!
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Coding & Modifications · Next Topic »
Add Reply