vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   How would I add text only to a specfic forum? (https://vborg.vbsupport.ru/showthread.php?t=210157)

powerful_rogue 04-02-2009 06:16 PM

How would I add text only to a specfic forum?
 
1 Attachment(s)
Hi,

Ive added a screenshot to try and make me explain it a little bit easier!

If I wanted to add a piece of text where the arrow is, but for it only to show in this specific forum, does anyone know how I would go about that? I know it would involve some kind of condition, but im not sure what I would need.

Many Thanks

Dave

PS - If anyone knows of a mod already out there that does this that would be great!

Lynne 04-02-2009 06:36 PM

First you find the template you need to add the text to. to do that - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.


Then add a condition in the template:
HTML Code:

<if condition="$forumid == 'x'">
text to add for forumid x
</if>


nexialys 04-02-2009 06:45 PM

a Notice with the settings to show it in only that specific forum, would do the trick?

you can always change the Notices block style, which is horrible actually...

powerful_rogue 04-02-2009 07:27 PM

Thanks everyone.

I think i'll go along the lines of using notices, I completely forgot about that feature!


All times are GMT. The time now is 04:00 PM.

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.03970 seconds
  • Memory Usage 1,709KB
  • 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)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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