The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Combine conditionals
I would like to combine these two conditionals:
PHP Code:
PHP Code:
PHP Code:
Thanks |
#2
|
||||
|
||||
Code:
<vb:if condition="is_member_of($bbuserinfo, 1,3,8) AND (in_array($forum['forumid'], array(1,2,3)))">show this to usergroups in forums</vb:if> |
#3
|
||||
|
||||
Thanks but that does not work.
|
#4
|
||||
|
||||
Where are you using this?
--------------- Added [DATE]1280458795[/DATE] at [TIME]1280458795[/TIME] --------------- Code:
<vb:if condition="is_member_of($bbuserinfo, 1,3,8) AND in_array($foruminfo['forumid'], array(1,2,3))">show this to usergroups in forums</vb:if> |
#5
|
||||
|
||||
SHOWTHREAD template inside the head tag <head> </head>.
|
#6
|
||||
|
||||
Why don't you use one of the showthread hooks for this? What are you want to show if the condition is met?
|
#7
|
||||
|
||||
I'm trying to show an ad that covers the whole screen but this ad should only be shown to guests and unconfirmed members in all forums but two.
At the moment PHP Code:
I had it working with 3.8.4 but I just upgraded like a day ago to vb 4.0.5. |
#8
|
||||
|
||||
What was the exact code for 3.8.4?
|
#9
|
||||
|
||||
hmm, give this a try:
Quote:
|
#10
|
||||
|
||||
Thank you guys!
SecondV, that worked |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|