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
Add "New Topic" Button to View Topic Page
Topic Started: Dec 2 2007, 12:26 AM (5,661 Views)
tlr_admin
Member
[ * ]
Cool code, thank you!!
Offline Profile Quote Post Goto Top
 
JoshL
Member Avatar
Member
[ * ]
I was wondering where the "New Topic" button went. Thanks for this code. It's great :)
Edited by JoshL, Feb 17 2008, 07:50 PM.
Offline Profile Quote Post Goto Top
 
MrPowers
Member
[ *  * ]
For some reason each one as stopped showing the New Topic button on the view page, is there a way to fix this please?

Code:
 
<script type="text/javascript">

/*************************
* Add "New Topic" button
* to Zetaboard's View Topic page.
* Pieced together by Dennis,
* with code and assistance
* from Ken, GenerationStudio
* and Chireru. Thanks guys. :)
**************************/
var replyimage = "http://209.85.62.24/static/1/t_addreply.png";
var newtopicimage = "http://209.85.62.24/static/1/t_newtopic.png";

if(location.href.match(/topic/)){
var tid = location.href.split("/")[5];
$(function(){
var a = $('#nav a:last').attr('href');
var b = a.split("/forum/");
var c = new RegExp("[^/]","g");
var d = b[1].match(c);
var fid = d.join("");

$(function(){$("div .topic-buttons").html("<a href='http://" + location.hostname + location.pathname + "post/?mode=2&type=1&f=3767&t=" + tid + "'><img src='" + replyimage + "' alt='Add Reply' /><a href='" + boardurl + "post/?type=1&mode=1&f=" + fid + "'><img src='" + newtopicimage + "' alt='Make New Topic' /></a>")});});};
</script>
Offline Profile Quote Post Goto Top
 
FreeLand
Member Avatar
Freelander
[ *  * ]
The new topic button is still showing, but for some reason when you click on it, it gives an error screen stating that "Forum Does Not Exist". It only started happening yesterday. Anyone else experiencing this or know of a quick fix?
Offline Profile Quote Post Goto Top
 
Aoshi153
Member
[ * ]
Is there anyway you can add the "new poll" option as well?
Offline Profile Quote Post Goto Top
 
Lewis
Member Avatar
Crime Scene Investigation
[ *  * ]
It isn't working and this looks like it could be a useful code, can this be fixed? Could you also give us clear instructions on how to install it please?
Offline Profile Quote Post Goto Top
 
soul sistah
Member
[ * ]
WHat ^^ they said.
Offline Profile Quote Post Goto Top
 
1days
Member
[ * ]
I'd like to know this ^^ as well. It said to put it in the theme layout however it doesn't show on my board. :-/
Offline Profile Quote Post Goto Top
 
aquilum_rosa
Member Avatar
Member
[ * ]
1days
Jul 5 2008, 05:28 PM
I'd like to know this ^^ as well. It said to put it in the theme layout however it doesn't show on my board. :-/
I just used this code, it's shorter, and it shows up on my board and works perfectly. (It's the one Eureka posted on the first page of this topic.)

The other one doesn't show for some reason for me either.

Eureka
 
Code:
 

<script type="text/javascript">

/*************************
* Add "New Topic" button
* to Zetaboard's View Topic page.
* Pieced together by Dennis,
* with code and assistance
* from Ken, GenerationStudio
* and Chireru. Thanks guys. :)
**************************/
var replyimage = "http://209.85.62.24/static/1/t_addreply.png";
var newtopicimage = "http://209.85.62.24/static/1/t_newtopic.png";

if(location.href.match(/topic/)){
var tid = location.href.split("/")[5];
$(function(){
var a = $('#nav a:last').attr('href');
var b = a.split("/forum/");
var c = new RegExp("[^/]","g");
var d = b[1].match(c);
var fid = d.join("");

$(function(){$("div .topic-buttons").html("<a href='http://" + location.hostname + location.pathname + "post/?mode=2&type=1&f=3767&t=" + tid + "'><img src='" + replyimage + "' alt='Add Reply' /><a href='" + boardurl + "post/?type=1&mode=1&f=" + fid + "'><img src='" + newtopicimage + "' alt='Make New Topic' /></a>")});});};
</script>
Offline Profile Quote Post Goto Top
 
master chief
Member
[ * ]
Cracking code ! great work dude :D
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · User Created Codes · Next Topic »
Add Reply