View Full Version : "New Thread" button when viewing a thread?
Loyalty4Life
04-29-2004, 03:57 AM
Can this be done? In vB2, you could either reply to the post you're viewing by pressing Post Reply, or make a new thread in the same forum by pressing New Thread.
Can I edit any php files or templates to get this to work? Thanks. :)
PS- Zach, here's the thread at vBT. :p If you could help me, that would be great. :)
Zachery
04-29-2004, 10:47 PM
How to add the New Thread Button back to Showthread
In Showthread template find
<if condition="$show['largereplybutton']">
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$FIRSTPOSTID"><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></td>
</if>
replace with
<if condition="$show['largereplybutton']">
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$FIRSTPOSTID"><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>
<a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a>
</td>
</if>
And find
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$LASTPOSTID"><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></td>
and replace with
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$LASTPOSTID"><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><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a></td>
Loyalty4Life
04-30-2004, 12:32 AM
Is there any way you can align them to where they're on the same line?
Hazzo
04-30-2004, 12:38 AM
Nice working!! Thanx for the neat trick!
Tony G
04-30-2004, 05:14 AM
There's also a mod for this on vBulletin.com:
http://www.vbulletin.com/forum/showthread.php?t=95018
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.