Global "New Thread" Button in Navbar

mastram

New Member
Global "New Thread" Button in Navbar - vBulletin.org Forum

Version: 3.7.x

This mod adds a New Thread button or link to the navbar so that your users can start a new thread with two clicks from anywhere on the forums. First they click New Thread, then they click on the forum they want to post in. The hierarchical list of forums should respect all forum permissions, and forums where the user can post are shown as a link.

Features:
  • Show/hide large New Thread button (Settings in the Global New Thread Button Options group)
  • Show large New Thread button as Text or the default vB New Thread button (added v1.1)
  • Show/hide navbar New Thread link
  • Show/hide forum descriptions on the listing of forums
  • All HTML is in templates (scroll down to the temlates that start with gntb_)
  • All language is in phrases (they all start with gntb_)
  • The product can be enabled/disabled in the Product Manager, rather than adding the extra overhead of an on/off switch in the options
  • Easy installation: Import the products XML file
 
Just a suggestion on possible button placement:

Find in navbar template:
Code:
<div class="navbar" style="font-size:21px;padding-left:6px;"><strong>$vboptions[bbtitle]</strong></div>
		</if>
	</td>
Add directly below:
Code:
<!-- Global "New Thread" Button -->
 <td class="alt1">
<div align="center"><a href="$vboptions[bburl]/newthread.php" title="Post A New Thread"><img src="$stylevar[imgdir_button]/newthread.gif"></a></div></td>
       <!-- / Global "New Thread" Button -->
for hard template skins use this code.
 
Another suggestion,

find in SHOWTREAD :

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

add above it :

Code:
<td class="smallfont"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</td>
 
Back
Top