vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   conditional not working <if condition="$userinfo['field8']!='No'"> (https://vborg.vbsupport.ru/showthread.php?t=79921)

CrazyLady 04-14-2005 03:46 PM

conditional not working <if condition="$userinfo['field8']!='No'">
 
this conditional isn't working... can someone help me out? :ermm:

<if condition="$userinfo['field8']!='No'">
show text
</if>

thanx
CL

RichieBoy67 04-14-2005 03:49 PM

Can you explain?? which user field is number 8???

CrazyLady 04-14-2005 06:51 PM

I have created a NEW CUSTOM user field, it's field8. If the condition is met, there is an extra image on their profile, if the condition isn't met, there is no extra image.

lasto 04-14-2005 07:11 PM

i had a simialr problem - read this thread see if helps

https://vborg.vbsupport.ru/showthread.php?t=79044

Xenon 04-14-2005 07:11 PM

make sure the cases are correct.

if the option is 'no' then 'No' isn't the same ;)

CrazyLady 04-14-2005 07:17 PM

cases are good

tgmorris 04-14-2005 07:38 PM

Quote:

Originally Posted by CrazyLady
this conditional isn't working... can someone help me out? :ermm:

<if condition="$userinfo['field8']!='No'">
show text
</if>


thanx
CL

Try using <if condition="$bbuserinfo['field8']!='No'">Stuff</if>

CrazyLady 04-14-2005 07:57 PM

this condition is not based on the person logged in. Like if I were to view your profile, this condition would need to be based on you, not me.

tgmorris 04-14-2005 09:24 PM

Quote:

Originally Posted by CrazyLady
this condition is not based on the person logged in. Like if I were to view your profile, this condition would need to be based on you, not me.

Gotcha. I know it's an obvious question... are you sure it's defined in the php file and available for use in the template you have it in?

Link14716 04-14-2005 09:49 PM

Quote:

Originally Posted by tgmorris
Gotcha. I know it's an obvious question... are you sure it's defined in the php file and available for use in the template you have it in?

It is a custom profile field, so yes, it would be.

I don't see anything wrong with the conditional myself.

tgmorris 04-14-2005 09:54 PM

Quote:

Originally Posted by Link14716
It is a custom profile field, so yes, it would be.

I don't see anything wrong with the conditional myself.

Nor do I. Have you tried putting in a

print_r ($userinfo);

in the php file and see what gets displayed. I find this valuable from time to time to make sure things are really as I think they are. If you are worried about other users seeing it you can wrap the print_r in a conditional so it only executes for admins.

After that I'm out of ideas. :ermm:

Zachery 04-15-2005 01:14 AM

Quote:

Originally Posted by tgmorris
Nor do I. Have you tried putting in a

print_r ($userinfo);

in the php file and see what gets displayed. I find this valuable from time to time to make sure things are really as I think they are. If you are worried about other users seeing it you can wrap the print_r in a conditional so it only executes for admins.

After that I'm out of ideas. :ermm:

What template are you trying to display this in?

CrazyLady 04-15-2005 01:25 AM

Memberinfo


All times are GMT. The time now is 07:36 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.01101 seconds
  • Memory Usage 1,737KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)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