The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
IF conditional concatenation help
Hi all, i'm trying to write an if condition to show an item to all usergroups except one but onlly in certain foorums, is this how it's done?
HTML Code:
<if condition="!is_member_of($bbuserinfo, X)"AND if condition="in_array($forumid, array(X,Y,Z))">
|
#2
|
|||
|
|||
Almost, try this:
Code:
<if condition="!is_member_of($bbuserinfo, X) AND in_array($forumid, array(X,Y,Z))"> |
#3
|
||||
|
||||
Thanks for your reply, i tried that (and my version) and i still cannot get the link im trying to show in the postbit!
Here's what i have HTML Code:
<if condition="!is_member_of($bbuserinfo, 1) AND in_array($forumid, array(13,65,66,67,68,69,54,95))"> <a href="http://www.thecodecage.com/forumz/">Formula Language Convertor</a> </if> |
#4
|
|||
|
|||
try $post[forumid] in place of $forumid
|
#5
|
||||
|
||||
Thanks for that too
HTML Code:
<if condition="!is_member_of($bbuserinfo, 1) AND in_array($post[forumid], array(13,65,66,67,68,69,54,95))">
|
#6
|
|||
|
|||
Ok try this (i have tested, its working fine)
PHP Code:
|
2 благодарности(ей) от: | ||
Simon Lloyd, souperman |
#7
|
||||
|
||||
Yep that was it, thanks
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|