flup
05-15-2007, 10:00 PM
This is a little more detailed version of my earlier template modification. This Hack explains how to add a new thread button when viewing a thread above and below all posts.
Modname: Newthread Button when viewing a Thread
By: Joshua de Gier (flup)
Installation Help:
Go to your adminCP -> Style Manager -> Edit Templates
Select: Show Thread Templates and doubleclick SHOWTHREAD
### Find:
<a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$FIRSTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a>
### After this add:
<a href="newthread.php?do=newthread&f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_a_new_thread]" border="0" /></a>
### Find:
<a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$LASTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a>
### After this add:
<a href="newthread.php?do=newthread&f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_a_new_thread]" border="0" /></a>
Screenshots:
Screenshot 1: Before
Screenshot 2: After applying this template modification
Enjoy this simple yet effective template modification!
Modname: Newthread Button when viewing a Thread
By: Joshua de Gier (flup)
Installation Help:
Go to your adminCP -> Style Manager -> Edit Templates
Select: Show Thread Templates and doubleclick SHOWTHREAD
### Find:
<a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$FIRSTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a>
### After this add:
<a href="newthread.php?do=newthread&f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_a_new_thread]" border="0" /></a>
### Find:
<a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$LASTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a>
### After this add:
<a href="newthread.php?do=newthread&f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_a_new_thread]" border="0" /></a>
Screenshots:
Screenshot 1: Before
Screenshot 2: After applying this template modification
Enjoy this simple yet effective template modification!