PDA

View Full Version : Start New Thread on forumhome


joeychgo
10-14-2013, 08:25 AM
Im looking for both vb 3 and 4

What im looking for is something that adds a Post New Thread button next to each forum on forumhome, and that clicking it would start a new thread in the associated forum.

I get a lot of questions "How do I start a new thread" from people who don't understand forums.

This forum has something similar (http://www.chimpout.com/forum/forum.php) but its just a tiny icon users will never find.

ozzy47
10-14-2013, 09:59 AM
This is for vB4.
You can actually achieve this with a simple template edit (and it's not possible to do automatically without a significant performance detriment). I implemented it using one of the existing statusicons, but you'd obviously be free to change the image (in this particular location, 12x12 is the required dimensions).

In the template forumhome_forumbit_level2_post, find <ul class="forumactionlinks td"> and add below <vb:if condition="$forum['allowposting']"><li class="forumactionlink newthreadlink"><a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;forumid={vb:raw forum.forumid}" title="{vb:rawphrase post_new_thread}" style="padding-{vb:stylevar left}:0;"><img src="{vb:stylevar imgdir_statusicon}/thread_new-16.png" height="12" width="12" /></a></li></vb:if>

joeychgo
10-14-2013, 10:05 AM
ok, that seems to work. Thank you.. How about vb3?

ozzy47
10-14-2013, 10:45 AM
Been awhile since I played on vB3, it s not as flexible as vB4, I can't find the best conditional either, so I used, $show['member']

In the template forumhome_forumbit_level2_post, find
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>and add below
<if condition="$show['member']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$forum[forumid]" title="Post New Thread" style="padding-left:0;"><img src="$stylevar[imgdir_statusicon]/thread_new.gif" height="12" width="12" /></a></if>