vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   memberinfo_block_friends conditional (https://vborg.vbsupport.ru/showthread.php?t=220693)

TheInsaneManiac 08-12-2009 04:20 AM

memberinfo_block_friends conditional
 
Conditionals are my weakness. I tried this in the memberinfo_block_friends template, but it will not display the content even though in my profile I have Yes selected. Suggestions?

<if condition="$prepared['field80'] === 'Yes'">

Lynne 08-12-2009 04:32 AM

User $userinfo, not $prepared.

TheInsaneManiac 08-12-2009 04:44 AM

Tried that before I tried prepared. I also tried bbuserinfo.

<if condition="$userinfo['field80'] === 'Yes'">

Lynne 08-12-2009 04:54 AM

Try printing it out without a conditional first just to see if you can get it to print.

What do you have Display Page set for it (in the edit profile field manager)?

TheInsaneManiac 08-12-2009 06:45 AM

Quote:

Originally Posted by Lynne (Post 1865632)
Try printing it out without a conditional first just to see if you can get it to print.

What do you have Display Page set for it (in the edit profile field manager)?

Other. So it shows up in the options.

And yea it prints fine without the conditional. I'm just having it so members can disable a few things that they can't disable with the way VBulletin is currently set up.

Lynne 08-12-2009 02:23 PM

Well, is Yes something they actually have to manually set or is it what you think the default is? And are you sure it is Yes and not yes?

TheInsaneManiac 08-14-2009 01:13 AM

I used a drop down box for the selection and in the dropdown list I selected Yes. In the profile field I also have it set up as Yes.

Lynne 08-14-2009 01:36 AM

Look in the database and see exactly what is in that field for that particular user you are using the condition on.

Also, try doing the condition the opposite way and see if it works - ie. if NOT equal to Yes.


All times are GMT. The time now is 01:16 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00968 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete