PDA

View Full Version : Adding a custom button on show/view forum


deverill2010
07-09-2012, 08:50 AM
I have a review section and when viewing the forum next to where it says 'post new thread' I would liek to add a button next to it which says 'Post new review'.

I can't imagine it being hard to add the button as that's probably just editing the template but, how can I get this button to only show on one forum that I select i.e the reviews forum not every other forum. And this should only be viewable to usergroups I choose.

I'd love your help :)

--------------- Added 1341832354 at 1341832354 ---------------

Ok I'm using this in the forum display template -

<vb:if condition="$forum[forumid] == 7"><a href="http://www.midwiferyonline.co.uk/productforums.php?do=addproduct" rel="nofollow" class="newcontent_textcontrol" id="postbook"><span>+</span>Post New Book</a></vb:if>

right above
<vb:if condition="$show['threadslist']">

where the new thread button sits but it's not showing!

kh99
07-09-2012, 03:30 PM
Try checking for "$forumid == 7".