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
New Topic Button
Topic Started: Sep 9 2008, 06:51 PM (719 Views)
Viral
Member Avatar
i'm stanley nao
[ *  *  *  *  * ]
Works in the same browsers (IE 7.0+, FF3.0+, Safari 3.0+, Chrome 0.127+)
Place below the board or above copyright.

Note: Use Dennis' version if you only have 1 theme, or know how to set it up for individual themes.

This one will maybe take a bit longer to load, but it automatically grabs the New Topic button for whatever theme you are using and places it before the Add Reply button when viewing a topic.

Code: HTML
 
<script type="text/javascript">
//<![CDATA[
// new topic button - all themes by Viral
if(location.href.match(/\/topic\/[0-9]+[\/[0-9+]?/gi)){var fo = $("div.topic-buttons a[href@=mode\=2]");var f=fo.attr("href").split("f=")[1].split("&t=")[0];if(f){$.post(main_url+"forum/"+f,{},function(data){fo.before(data.split('<div class="cat-buttons">')[1].split("</a>")[0]+"</a> ");});}}
//]]>
</script>
Offline Profile Quote Post Goto Top
 
Chris
Member Avatar
Member
[ *  *  *  * ]
I wouldn't recommend this to people with ad-removal. It would kill credits. O_O
Edited by Chris, Sep 9 2008, 06:55 PM.
Offline Profile Quote Post Goto Top
 
Viral
Member Avatar
i'm stanley nao
[ *  *  *  *  * ]
It's only 1 AJAX Request, but yeah, if you're viewing a topic it uses 2 credits, but half of the codes in this forum does that now anyway o.0.
Offline Profile Quote Post Goto Top
 
CrueFiend
Member
[ * ]
Thanks for this! Works like a charm!
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · User Created Codes · Next Topic »
Add Reply