PDA

View Full Version : If UsergroupNo = 1........correct format needed


cheekymonk3y
09-23-2007, 06:04 PM
Hiya,

I'd like to place an If statement in my postbit which checks the usergroup first. Basically
Do Stuff;
Could someone please give me the correct VB'ed version of that pseudocode.

Also, I'm looking for a reference for VB coding standards, like what hooks (right term?) can be called, where, how, etc. I looked around the VB.com website but couldn't find anything, though it should be there. Can someone point me in the right direction please.


Thank you.

Lynne
09-23-2007, 06:29 PM
I just posted about the usergroup issue here: https://vborg.vbsupport.ru/showthread.php?t=158554

Dismounted
09-24-2007, 05:12 AM
<if condition="is_member_of($vbulletin->userinfo, 1)">
DO STUFF
</if>
http://www.vbulletin.com/docs/html/codestandards

Eikinskjaldi
09-24-2007, 05:36 AM
Will that php work in a template dismounted?

Dismounted
09-24-2007, 05:42 AM
My code example will work in templates, it will only work in templates.

cheekymonk3y
09-24-2007, 09:01 AM
<if condition="is_member_of($vbulletin->userinfo, 1)">
DO STUFF
</if>
http://www.vbulletin.com/docs/html/codestandards
Thanks Lynne & Dismounted. And thanks for the link.