vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Forum specific (https://vborg.vbsupport.ru/showthread.php?t=240559)

romeo12 04-16-2010 07:30 AM

Forum specific
 
I was wondering how can i display certain things forum wise. Say i have sports section as well as tech section. I want to display some sports related contents on header/footer of sports section and tech related contents in tech section. What should i do? What code should i put?

Lynne 04-16-2010 02:05 PM

You could create a different style for each and apply it to the forum and just do it that way. Or just use a condition like:
HTML Code:

<if condition="$forumid == x">do this <else /> do that</if>

romeo12 04-26-2010 11:06 AM

Thanks Lynn it worked. But now i am in another problem. I want to display some ads in every page of my forum. I added the code in ad_forumdisplay_afterthreads Template, but now the ad displays only on outer forum and not when we view a thread. I want the ad to display even on pages when we view a thread, so for that i added $ad_location[ad_forumdisplay_afterthreads] in SHOWTHREAD template here
Quote:

$ad_location[ad_forumdisplay_afterthreads]
<if condition="$show['quickreply'] OR $show['ajax_js']">
<!-- ajax errors table -->
But still its not showing. Help me

--------------- Added [DATE]1272286526[/DATE] at [TIME]1272286526[/TIME] ---------------

Update :
Silly me :p
added code in ad_showthread_beforeqr and working fine now.


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