Back to vBulletin 3.7 Template Modifications

Simple New Thread Button while viewing another thread
Mod Version: 1.00, by cheat-master30

This modification is in the archives.
vB Version: 3.7.x Rating: (2 votes - 5.00 average) Installs: 14
Released: 07 Jul 2008 Last Update: Never Downloads: 1
Not Supported Template Edits Re-usable Code Translations  

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:

Code:
<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:
Code:
<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>

Download

No files for download.

Screenshots

Click image for larger version
Name:	Posttopicintopic.jpg
Views:	444
Size:	34.4 KB
ID:	83678  

Similar Mods

New Thread Button when viewing a Thread vBulletin 3.5 Template Modifications
New Thread Button on post viewing. vBulletin 3.5 Template Modifications
New Thread button when viewing a thread. vBulletin 3.5 Template Modifications

vblts.ru supports vBulletin®, 2022-2024