vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   different sidebar blocks usergroups (https://vborg.vbsupport.ru/showthread.php?t=294441)

emp1re 01-27-2013 07:54 AM

different sidebar blocks usergroups
 
We have on our forum 2 style templates..

1 = default and the other one = commercial free.

Our forum is about trucks and their drivers... Therefor we use the sidebar for news information and traffic announcements also some commercial ads will be shown there.

Now thats our problem. We want the ads to be shown in the default template only and the news and traffic announcements should be shown on both templates.
Is there a possibilty to do that in de blocks manager or another way ?

i hope you understand what i mean.

kh99 01-27-2013 11:42 AM

Is your ad block a custom block with html? Then what you can do is create a new template, and copy the contents of the block_html template to your new template. Then add a conditional around the entire contents of your new template like:

Code:

<vb:if condition="!$show['member']">
rest of template here
</vb:if>


Now edit the ad block and enter your new template name in the "Template to Use" field.

emp1re 01-27-2013 08:12 PM

Tnx.. i wil give it a shot.


All times are GMT. The time now is 10:33 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.02480 seconds
  • Memory Usage 1,706KB
  • 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_code_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