PDA

View Full Version : Need Help With If Condtions


puertoblack2003
03-27-2020, 09:44 PM
well it's been awhile, and I can not find any one my reference documents i put together. But I restored one of my forum and adding some mods.

What I'm trying to do is give the user the option to show or hide the the whoisonline section to minimize space at the footer. I did this before on the last forum.

this is what I have <if condition="is_member_of($bbuserinfo, 2,3,4,5,6,7,8,16,88,96)"><if condition="$post[field26] == 'Yes' "> now this setup when it did it worked, I know I missing something I already have the profile field setup and the option to turn on or off in usercp. can someone look at it and see what i did wrong.

oh and I'm on vb v3.8 :o

--------------- Added 1585352481 at 1585352481 ---------------

well it's been awhile, and I can not find any one my reference documents i put together. But I restored one of my forum and adding some mods.

What I'm trying to do is give the user the option to show or hide the the whoisonline section to minimize space at the footer. I did this before on the last forum.

this is what I have now this setup when it did it worked, I know I missing something I already have the profile field setup and the option to turn on or off in usercp. can someone look at it and see what i did wrong.

oh and I'm on vb v3.8 :o

never mined i remember i had to use $bbuserinfo and not $post. its working

TheLastSuperman
04-09-2020, 05:10 PM
This was the droid, you were looking for! vB3 Conditionals:
https://vbulletin.org/forum/showthread.php?t=215032

For those browsing this thread but wanting vB4 Conditionals, reference this:
https://vbulletin.org/forum/showthread.php?t=231525

puertoblack2003
04-09-2020, 07:30 PM
This was the droid, you were looking for! vB3 Conditionals:https://vbulletin.org/forum/showthread.php?t=215032

For those browsing this thread but wanting vB4 Conditionals, reference this:
https://vbulletin.org/forum/showthread.php?t=231525


thanks, i ended up with this <if condition="is_member_of($bbuserinfo, 2,3,4,5,6,7,8,16,88,96)"><if condition="$bbuserinfo[field26] == 'Yes' "> the on and off switch works now. its been a while :)