Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
Global "New Thread" Button in Navbar Details »»
Global "New Thread" Button in Navbar
Version: 1.1, by sockwater sockwater is offline
Developer Last Online: Jan 2018 Show Printable Version Email this Page

Category: End-User Options - Version: 3.7.x Rating:
Released: 07-01-2008 Last Update: 07-01-2008 Installs: 95
Uses Plugins Auto-Templates
 
No support by the author.

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


Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 07-02-2008, 07:22 PM
XYZ1234 XYZ1234 is offline
 
Join Date: Feb 2006
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I remove link from Navbar? Looks absolutely terrible on my theme,
www.irishrepublican.net


EDIT - Dont worry, using older version of hack.
Reply With Quote
  #23  
Old 07-02-2008, 07:30 PM
Jase2 Jase2 is offline
 
Join Date: Dec 2007
Location: USA
Posts: 1,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It can be removed by goin' to:

ACP --> vBulletin Options --> vBulletin Options --> Global New Thread Button Options --> Show Large New Thread Button --> No

I just have mine in the sidebar, as a link "Post A New Question". See: http://www.techsupportteam.org/forum/
Reply With Quote
  #24  
Old 07-02-2008, 07:56 PM
sockwater's Avatar
sockwater sockwater is offline
 
Join Date: Apr 2008
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by brasolino View Post
can i use this mod on 3.6.10 pl2 ?
I don't see any reason it wouldn't work for 3.6.10. Can you give it a try and post back here to let us know how it went?

Quote:
Originally Posted by macc View Post
i updated hack and can not get this image (newthread.gif) to display on navbar ...
It links to the default location for newthread.gif. If you have an image somewhere else, just edit the gntb_newthreadbutton template, and change $stylevar[imgdir_button]/newthread.gif to the URL to your image. Also, be sure you enable both Show Large New Thread Button and Show Large Button as Image in the settings.

Quote:
Originally Posted by Jase2 View Post
Any chance you could add a line break between each forum name ?
Sure, edit the gntb_forumbit template and add a <br /> right before the closing list tag </ul>.

Quote:
Originally Posted by Daithi View Post
How do I remove link from Navbar? Looks absolutely terrible on my theme,
www.irishrepublican.net
Use the options (Global New Thread Button Options), where you can enable/disable both the navbar link and/or the navbar button (to the left of the breadcrumbs.) BTW, I look at your site, and I don't think it looks bad. But I guess it's subjective.
Reply With Quote
  #25  
Old 07-02-2008, 08:03 PM
Jase2 Jase2 is offline
 
Join Date: Dec 2007
Location: USA
Posts: 1,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks! Was a little unsure on which template to edit LOL.
Reply With Quote
  #26  
Old 07-02-2008, 08:40 PM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't believe this! Out of the 1st 3 posts - 2 were complaints - THAT SUX!
Anyway - thanx to the modification author SOCKWATER for sharing - I'd actually installed a similar mod that had the dropdown - was for 3.6.x and apparently the author isn't interested in making it compatible with the 3.7 series - Anyway... Thanx so much for the sharing

Jacquii.
Reply With Quote
  #27  
Old 07-02-2008, 09:11 PM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 -->
Puts the button right to the left of "Logged in as ...." info - Up close and personal :P
Thanx again for the modification SOCKWATER - I was certainly looking for something just like this

Jacquii.



ps - apologies for my "loudness" in the previous post :blush:
Reply With Quote
  #28  
Old 07-02-2008, 10:03 PM
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Location: Greece
Posts: 1,856
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sockwater View Post
you'd be adding at least one query (I think) to *every* pageview on your site.
Not if you use AJAX...
Reply With Quote
  #29  
Old 07-03-2008, 12:30 AM
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Posts: 1,360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sockwater View Post
My original intention was to have the current "button" as an example, and you can edit the gntb_newthreadbutton template and make it look any way you want.

Bluidkiti PMed me with a suggestion and what they did on their board, which is to use the default vB New Thread image (). I have now included this as an option in the product. Just download and reinstall.
Awesome! Installed
Reply With Quote
  #30  
Old 07-03-2008, 01:14 AM
Super Jinni Super Jinni is offline
 
Join Date: Mar 2008
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sockwater View Post

I'm going to look into the option of making it a popup menu as well. If it doesn't add a lot of overhead to all pageviews, it's a good idea.
I think that will be really great

thanks for taking that into consideration
Reply With Quote
  #31  
Old 07-03-2008, 01:58 AM
elmati elmati is offline
 
Join Date: Mar 2007
Location: Argentina
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

really nice! thanks m8!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:51 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06289 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete