View Full Version : New Thread button when viewing a thread.
I released this one already on vB3.5.0 beta but I now made it a little better.
In the 1st you got a 'new thread' button only on top.
It now also displays on on the bottom of the thread.
The 3.5.0 template mod was quiet popular (60 installs) so
hopefully many people enjoy this one aswel :)
Preview shows enough!
Tony G
11-18-2005, 10:44 PM
Always a nifty mod. Thanks for sharing. :)
Thank you... :rolleyes:
**installed**
moonclamp
11-19-2005, 07:52 PM
How would I make this button not appear if the forum is closed?
BLazeD1
11-19-2005, 11:50 PM
How would I make this button not appear if the forum is closed?
me too - then i will install
Works perfect on vb 3.5.3
Thanks just what i was looking for
Konstantinos
05-06-2006, 05:44 AM
i installed in 3.5.4 but the newthread gif is a bit higher than post reply. how to fix ?
Go to yourdomain.TLD/admincp/template.php?do=modify find the templated called SHOWTHREAD (CaSeSeNsItIvE).
In the SHOWTHREAD find:
<!-- controls above postbits -->
Replace the entire table section whit:
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
<td class="smallfont"><a href="newthread.php?$session[sessionurl]do=newthread&f=$forumid" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a>
<if condition="$show['largereplybutton']"><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></td>
<else />
<td class="smallfont"> </td>
</if>
<if condition="$show['pagenav']"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
In the SHOWTHREAD find:
<!-- controls below postbits -->
Replace the lines to the first /else: (about three or four lines)
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr valign="top">
<td class="smallfont"><a href="newthread.php?$session[sessionurl]do=newthread&f=$forumid" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a>
<if condition="$show['largereplybutton']"><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></td>
<else />
Remember to note the table preferances at your style template and fit them into this script.
Parker Clack
05-10-2006, 01:36 PM
Thanks for this. A lot of my members where asking for it. Is there anyway to write this so if the thread is closed the only thing that shows up is the closed gif? The above replacement still shows the newthread.gif.
Thanks,
Parker
that might be posible, I'll look at it later.
And I have to emit I haven't notice this my self :)
Dermo-MIO
06-04-2006, 12:12 PM
hi can any1 help me, i have made a mistake somewhere and wondering if i can sort this out. you can see my problem in the attached picture
Dermo-MIO
06-05-2006, 03:02 PM
iv managed to get rid of the 2nd "new thread" button but cant find the code that is showing up in my template any1 out there ?
FunaGuy
06-09-2006, 04:00 PM
Installed and working good
cheers
rajuthan
06-09-2006, 11:51 PM
Nice Hack Very Useful
Brandon Sheley
06-21-2006, 04:16 PM
thank you
/me clicked instal
Dermo-MIO
06-24-2006, 08:46 PM
very dodgy mod as i have posted above iv have problems with it and now i have tried to revert back to the way it was before i edited this template and it gave me a big template warning so there is defnetly trouble with this
stonner
06-26-2006, 10:57 AM
thanks, works great.
how can I show the new thread button on the right side?
then the reply button would be left, and the new thread button on the right side.
thank you!
thanks, works great.
how can I show the new thread button on the right side?
then the reply button would be left, and the new thread button on the right side.
thank you!
This line should be moved one position (One line down):
<td class="smallfont"><a href="newthread.php?$session[sessionurl]do=newthread&f=$forumid" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.