PDA

View Full Version : Show Thread Enhancements - Simple New Thread Button while viewing another thread


cheat-master30
07 Jul 2008, 19:00
Because it seems by default that vBulletin is set to only allow new topic posts from within the forum listing, I guessed that it wouldn't be too difficult and potentially easier to users to provide the link to post a new topic from the existing topic they're viewing. This is extremely easy to add, I swear I've seen the concept before somewhere and I've tried to base it on that.

In SHOWTHREAD:

find:

<if condition="$show['largereplybutton']">
<td class="smallfont"><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></td>
<else />

replace with:

<if condition="$show['largereplybutton']">
<td class="smallfont"><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>
<a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a>
</td>
<else />
<td class="smallfont">&nbsp;</td>
</if>

Works 100% fine other than taking the can post as the post new thread permission or whatever, because with the if code added, it just didn't display the button.


<td class="smallfont">&nbsp;</td>
</if>

TrevsRevenge
07 Jul 2008, 19:59
I already made this Template mod it is exacty the same
See:
http://www.vbulletin.org/forum/showthread.php?t=184217

cheat-master30
07 Jul 2008, 20:51
Ah well. Just reading a vBulletin.com topic before this.

Q-v-n-s-Q
08 Jul 2008, 05:56
thank you

mesdar
12 Dec 2008, 06:50
thanks

installed