Quote:
Originally Posted by Lynne
I'd suggest you start over with the plugin because you've totally messed up the structure of the submenu.
|
Nah, no need. It's not 'messed up' it's layout is exactly how I intend it to look, with multiple drop downs etc. It works perfectly without the condition in it.
Quote:
Originally Posted by Lynne
But, you need to break out of writing to it in order to do the condition - you just put the condition right in the middle of it! Basically:
PHP Code:
$tablinks = 'a bunch of stuff'; if (is_member_of($vbulletin->userinfo, 5, 6, 13, 14)) { $tablinks .= 'more stuff if condition is true'; } $tablinks .= 'and more stuff';
|
From this example I understand. I'm not really a coder so I didn't understand what the $tablinks did, now with that example, I do.
Thanks again.