![]() |
$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) |
Quote:
|
PHP Code:
Group: (the groups you are in) er, editing in postbit_legacy, and it show on the person who posted. |
I don't understand what you're trying to say. :confused:
|
To get the group name you will need a plugin to run a query against the usergroup ID they are in. You would need to ask this over at www.vbulletin.org.
^ this is what i get over at vbulletin.com, i needs the full codes. |
All times are GMT. The time now is 12:30 PM. |
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:
|