PDA

View Full Version : Forum Home Enhancements - Bombed New Thread - On Index Under Thread Count Per Forum


DieselMinded
09-08-2008, 10:00 PM
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

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

<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

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

<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 (https://vborg.vbsupport.ru/member.php?u=80196)

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 !