View Full Version : Any mod to add "new topic" link to forum list?
postcd
09-26-2013, 06:18 PM
Hello,
when i go to forum index like http://goteen.net i would like to be able to create new topic right from the category/forum list, i dont wish to enter the forum first. Please any hack/mod for this? Showing create new topic link/button in forum list, bellow description or so?
ozzy47
09-26-2013, 08:25 PM
It can be done for forums with no subforums in them, with a template edit.
ACP --> Styles & Templates --> Style Manager, choose your style and select Edit Templates.
Find the template group, FORUMHOME, double click on that, then double click on, forumhome_forumbit_level2_post
In that template search for the following:
<ul class="forumactionlinks td">Then after that add this:
<vb:if condition="$forum['allowposting']"><li class="forumactionlink newthreadlink"><a href="newthread.php?{vb:raw session.sessionurl}do=newthread&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>This uses a one of the existing statusicons, but you'd obviously be free to change the image (in this particular location, 12x12 is the required dimensions).
postcd
09-30-2013, 07:13 PM
Thanks, a new small icon is visible next to green subscribe icon. Worked exactly as you described.
ozzy47
09-30-2013, 08:33 PM
Cool, glad it did what ya needed. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.