PDA

View Full Version : New Thread Button when viewing a Thread


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&amp;noquote=1&amp;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&amp;noquote=1&amp;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!

Nathan2006
05-26-2007, 12:41 AM
Thank you flup

Seen this on many boards and just had to add it :D

Makes life a lot easier :)

Install