Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Create New Threads in Forum Home Details »»
Create New Threads in Forum Home
Version: 1.00, by JGreig JGreig is offline
Developer Last Online: Dec 2014 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.8.x Rating:
Released: 02-22-2011 Last Update: Never Installs: 15
Template Edits
Re-useable Code  
No support by the author.

A simple little edit which allows registered members to click an icon and be taken directly to a new thread page for that specific forum id. In other words, you can create a thread directly from the forum home for each forum.

Styles & Templates >> Forum Home Templates >> forumhome_forumbit_level2_post >> Find:
Code:
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
Add after:
Code:
<if condition="$show['member']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$forum[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newth.png" alt="$vbphrase[post_new_thread]" border="0" /></a></if>

Upload the icon to your themes /buttons folder. Alternatively, you can specify a new icon image by editing:
Code:
<img src="$stylevar[imgdir_button]/newth.png" alt="$vbphrase[post_new_thread]" border="0" />
See screenshot for a more accurate description of this edit.

---------------------------------
If you use this for a plugin, please credit me. If you use this on your forum, click installed! Thank you for reading.

Show Your Support

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

Comments
  #2  
Old 02-24-2011, 02:44 AM
Cybershaolin Cybershaolin is offline
 
Join Date: Nov 2006
Posts: 300
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What about if you have sub-forums on a forum in forumhome and if you only allow members to post on these sub-forums? Users get an error message saying the forum is closed for new messages since they must only post in the sub-forums listed there.
Reply With Quote
  #3  
Old 02-24-2011, 04:20 PM
JGreig's Avatar
JGreig JGreig is offline
 
Join Date: Aug 2009
Location: Scotland
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't quite understand, are you getting an error when you add this?
Reply With Quote
  #4  
Old 03-06-2011, 06:44 PM
SPARKS MAN's Avatar
SPARKS MAN SPARKS MAN is offline
 
Join Date: Sep 2008
Location: baghdad- iraq
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thankx alot
Reply With Quote
  #5  
Old 03-08-2011, 04:59 PM
JGreig's Avatar
JGreig JGreig is offline
 
Join Date: Aug 2009
Location: Scotland
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem, your very welcome.
Reply With Quote
  #6  
Old 10-14-2011, 06:48 AM
Akyeame Kwame Akyeame Kwame is offline
 
Join Date: May 2008
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod! I've been looking for this for a year...only saw it for 4.0.
Note, to do this for sub-forums you can repeat the same process for forumhome_forumbit_level1_post
I've also added the button to my top menu and hard-coded my open forum id into it, so now it's easier than ever to start a new thread even for the slowest of members.
Reply With Quote
Благодарность от:
hurricane_sh
  #7  
Old 01-21-2017, 04:02 PM
Akyeame Kwame Akyeame Kwame is offline
 
Join Date: May 2008
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For VB 4.2+
Code:
<vb:if condition="$show['member']"><a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw forum.forumid}" rel="nofollow"><img src="{vb:stylevar imgdir_button}/newth.png" alt="$vbphrase[post_new_thread]" border="0" /></a></vb:if>
Reply With Quote
  #8  
Old 01-21-2017, 07:04 PM
Kane@airrifle's Avatar
Kane@airrifle Kane@airrifle is offline
 
Join Date: Jun 2011
Location: ZA
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Akyeame Kwame View Post
For VB 4.2+
Code:
<vb:if condition="$show['member']"><a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw forum.forumid}" rel="nofollow"><img src="{vb:stylevar imgdir_button}/newth.png" alt="$vbphrase[post_new_thread]" border="0" /></a></vb:if>
:up:

Add a conditional if you have forums that are locked/closed to new posts.

Code:
<vb:if condition="$forum['allowposting']"><vb:if condition="$show['member']"><a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw forum.forumid}" rel="nofollow"><img src="{vb:stylevar imgdir_button}/newth.png" alt="Post New Thread" border="0" /></a></vb:if></vb:if>
Reply With Quote
Reply


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 03:14 AM.


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.04594 seconds
  • Memory Usage 2,295KB
  • Queries Executed 24 (?)
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
  • (6)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (1)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete