Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
Bombed New Thread - On Index Under Thread Count Per Forum Details »»
Bombed New Thread - On Index Under Thread Count Per Forum
Version: 1.00, by DieselMinded DieselMinded is offline
Developer Last Online: Dec 2019 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.7.2 Rating:
Released: 09-08-2008 Last Update: Never Installs: 6
Template Edits
Re-useable Code Additional Files Translations  
No support by the author.

Bomb = Better Off Modified Baby
And Everything is Better BOMBED!

What This Does - Adds a Button Under the Thread Count Total On the Main Forum index , When clicking the button it will take the user to the New Thread Creation Page for that forum .

- Prevents Unnecessary Page Loads
- Encourages Posting of new threads
- Great for Newbies who are unsure how to start a thread
- Works for Subforums Also

Only Shows to Logged in users

Download the Attached Zip File , Extract it and Choose the Image You Wish to use and rename it to addnew


Upload The renamed Image File you wish to use to the Image Directory = /images


Template Edit :

In

Styles & Templates -> Style Manager -> Forum Home Templates -> forumhome_forumbit_level1_post

Find

PHP Code:
<td class="alt1">$forum[threadcount]</td
Replace With

PHP Code:
<td class="alt1">$forum[threadcount]<if condition="$show['member']"><br /><a href="$vboptions[bburl]/newthread.php?$session[sessionurl_q]do=newthread&f=$forum[forumid]"><img src="$vboptions[bburl]/images/addnew.png" alt="vbphrase[post_new_thread]" /></a></if></td
In

Styles & Templates -> Style Manager -> Forum Home Templates -> forumhome_forumbit_level2_post

Find

PHP Code:
<td class="alt1">$forum[threadcount]</td
Replace With

PHP Code:
<td class="alt1">$forum[threadcount]<if condition="$show['member']"><br /><a href="$vboptions[bburl]/newthread.php?$session[sessionurl_q]do=newthread&f=$forum[forumid]"><img src="$vboptions[bburl]/images/addnew.png" alt="vbphrase[post_new_thread]" /></a></if></td
Concept And Designed By : Diesel Bombers
Coding And Support By: Quarterbore

Supporters / CoAuthors

Show Your Support

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

Comments
  #2  
Old 09-09-2008, 07:13 PM
Quarterbore Quarterbore is offline
 
Join Date: Mar 2005
Location: Valley Forge PA
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I didn't really consider this done as it was just a 2-minute hack from this thread:

https://vborg.vbsupport.ru/showthread.php?t=190459

I am busy with a new release of my commercial product but I will try to finish the code needed to add permissions around the link so that the image and link to post is only shown if the user is really allowed to post OR if they forum is open to posts.

It may be quite some time however if someone else want's to do it...
Reply With Quote
  #3  
Old 09-09-2008, 07:44 PM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks !
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:44 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.05616 seconds
  • Memory Usage 2,221KB
  • Queries Executed 17 (?)
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
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_onlinestatus
  • (3)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete