vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Adding a custom button on show/view forum (https://vborg.vbsupport.ru/showthread.php?t=285348)

deverill2010 07-09-2012 08:50 AM

Adding a custom button on show/view forum
 
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 [DATE]1341832354[/DATE] at [TIME]1341832354[/TIME] ---------------

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


All times are GMT. The time now is 10:04 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.01023 seconds
  • Memory Usage 1,707KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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