vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Forum Home Enhancements - Bombed New Thread - On Index Under Thread Count Per Forum (https://vborg.vbsupport.ru/showthread.php?t=190479)

DieselMinded 09-08-2008 10:00 PM

Bombed New Thread - On Index Under Thread Count Per Forum
 
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

Quarterbore 09-09-2008 07:13 PM

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...

DieselMinded 09-09-2008 07:44 PM

Thanks !


All times are GMT. The time now is 10:08 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01072 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete