Can somebody tell me how to hide code tags with something else for unregistered users using if conditional statement?
|
You need to edit your bbcode templates, such as the template: bbcode_code
Put the entire template in a template conditional- something like: Code:
<if condition="$show[member]"> |
Quote:
|
I have an ad that I want to show to one particular social group. This is the code I tried but it didn't work:
if condition="$groups[groupid] == X if condition="$group[groupid] == X if condition="$grps[groupid] == X Are there any conditionals for social groups? |
Quote:
The only other possibility would be to try Code:
$vbulletin->GPC[groupid] Code:
<if condition="$vbulletin->GPC[groupid] == x"> |
I'm trying to use it in the ad location template ad_navbar_below. This didn't work either:
<if condition="$vbulletin->GPC[groupid] == x"> |
Yeah I looked through the code, this just isn't going to be possible with a template conditional. For who knows what reason the people who programmed social groups did not make them behave like forums and threads which would have been logical.
|
Thank you for trying to help.
|
I'm trying to make a conditional that will display in all forums except 8 forums,
Quote:
|
Quote:
HTML Code:
<if condition="$show['newthreadlink'] && !in_array($forum['forumid'], array(6,7,8,9,22,23,24,25))"> |
All times are GMT. The time now is 11:36 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|