PDA

View Full Version : different sidebar blocks usergroups


emp1re
01-27-2013, 08:54 AM
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, 12:42 PM
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:

<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, 09:12 PM
Tnx.. i wil give it a shot.