Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 27 Mar 2020, 22:44
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Need Help With If Condtions

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

--------------- Added 27 Mar 2020 at 23:41 ---------------

Originally Posted by puertoblack2003 View Post
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
never mined i remember i had to use $bbuserinfo and not $post. its working
__________________
Android Custom Creations

Last edited by puertoblack2003; 27 Mar 2020 at 23:41.
Reply With Quote
  #2  
Old 09 Apr 2020, 19:10
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
 
Join Date: Sep 2008
Real name: Michael Miller Jr
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
__________________
Daddy Does Dios and Figs!
https://www.linkedin.com/in/thelastsuperman

Search - Use the search feature to find similar issues/answers.
Information - Include screenshots, copy/pasted error codes, url etc.
Fixed - Please return to your thread/post and let us know how it was fixed!
Thanks - For participating! Click the "Like" on a post if someone helped you!
Reply With Quote
  #3  
Old 09 Apr 2020, 21:30
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Originally Posted by TheLastSuperman View Post
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
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

the on and off switch works now. its been a while
__________________
Android Custom Creations
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 04:52.

Layout Options | Width: Wide Color: