The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
The code wasn't intended to work in a template; it was intended to work in an independent PHP-rendered page.
You are getting into uncharted territory for me here; I <THINK> what you need to do is write a PHP-based plugin that sets a global var that you can then evaluate in the template. The plugin would look similar to the code I gave you earlier, except it wouldn't need the includes. if(is_member_of($vbulletin->userinfo, REGISTERED_USER_GROUP)) $m_IsRegisteredUser = TRUE; else $m_IsRegisteredUser = FALSE; Then, in your template code, you would have this: <if condition="$m_IsRegisteredUser"> Do Registered User Stuff <else> Do Non-Registered User stuff </if> Now, I haven't got the foggiest idea if this will actually do what you want, but it might be worth a shot. |
#12
|
|||
|
|||
think i got it
<if condition="is_member_of($bbuserinfo[usergroupid], array(2,3,5,6,9))"> do this <else /> do that </if> one thing that confuses me is that im using vb350 and i taught vb350 uses userinfo and not bbuserinfo but when i tried bbuserinfo it didnt work!!! |
#13
|
|||
|
|||
Did that work? I didn't think you could call functions from within the conditionals?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|