![]() |
$post['usergroupid'] and <if> Questions
I'm trying to do this in the postbit_legacy:
Code:
<if condition="$post['usergroupid'] == 8"> (If the post OWNER's usergroup id is 8) Also, which conditions are allowed in the <if> statements? Are they similar/the same as php? |
Conditional for Usergroup is:
Code:
<if condition="is_member_of($bbuserinfo, x,y,z)"> |
Code:
<if condition="is_member_of($post, x,y,z)"> |
Ahh...I see. :)
|
Thanks very much! So conditions are basically the same as php?
Also, what other things can I use with $post? |
Whatever's in the post array. Also, keep in mind there is no "else if" template condition, due to the format of which vBulletin parses them.
|
Quote:
PHP Code:
|
Yes, you can nest conditionals, but they aren't "true" else ifs.
|
Quote:
|
how come it doesnt work for me ?
i'm editing it inside postbit_legacy, i code this, but cant . PHP Code:
when it show, it will become Group: (the group you are in) |
All times are GMT. The time now is 08:30 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|