vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How do you display templates under specific forum ids? (https://vborg.vbsupport.ru/showthread.php?t=204300)

NeroObsedian 02-05-2009 07:44 AM

How do you display templates under specific forum ids?
 
What code would I use if I wanted to display a template or piece of information within a single forum?

ie: Subject _Links _Bar01 = Forum01, Subject _Links _Bar02 = Forum02 etc.

Would I use a conditional for that?

bananalive 02-05-2009 11:34 AM

<if condition="$foruminfo[forumid]==26">
your code here
</if>

NeroObsedian 02-05-2009 02:02 PM

Quote:

Originally Posted by bananalive (Post 1735067)
<if condition="$foruminfo[forumid]==26">
your code here
</if>

Thanks bro! I appreciate the help.

*clicks the imaginary Thanks button*

Prince 02-09-2009 07:32 PM

Quote:

Originally Posted by bananalive (Post 1735067)
<if condition="$foruminfo[forumid]==26">
your code here
</if>

In postbit how could you exclude certain forum (multiple), and also have the ad appear at after the last post in the thread?

thanks!

bananalive 02-15-2009 10:32 AM

Quote:

Originally Posted by Prince (Post 1738993)
In postbit how could you exclude certain forum (multiple), and also have the ad appear at after the last post in the thread?

thanks!

PHP Code:

<if condition="$thread['forumid'] && !in_array($thread['forumid'], array(26,27))">
your code here
</if> 

I think there is hook location for last post in thread, but I'm not sure.

Dismounted 02-15-2009 11:08 AM

You can edit the SHOWTHREAD template, placing the code just after the postbits.

Prince 02-15-2009 03:50 PM

thanks guys. :)


All times are GMT. The time now is 01:02 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.02239 seconds
  • Memory Usage 1,723KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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