vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Conditionals Help!! (https://vborg.vbsupport.ru/showthread.php?t=211064)

Sweeks 04-13-2009 12:05 PM

Conditionals Help!!
 
I am trying to show some data on the MEMBERINFO template which I want only to show if the user is viewing their own profile and not everyone else so I think I need a conditional for it. I have searched the conditionals lists Ive found online but no success so far. Hope someone can help :)

Thank you.
________
Payment Protection Insurance Dicussion

nexialys 04-13-2009 12:10 PM

if $bbuserinfo[userid] == $vbuserinfo[userid] >

this is when you hit the visitor to the visited...

Sweeks 04-13-2009 12:12 PM

It isnt working :(

HTML Code:

<if $bbuserinfo[userid] == $vbuserinfo[userid]>
<div>
$variable here
</div>
</if>

It wont allow me to save.

--------------- Added [DATE]1239628574[/DATE] at [TIME]1239628574[/TIME] ---------------

I have also tried this but not working:

HTML Code:

<if condition="$bbuserinfo[userid] == $vbuserinfo[userid]">
<div>
$myvariable
</div>
</if>

That allows me to save but the data disappears completely on all profiles :(

--------------- Added [DATE]1239628786[/DATE] at [TIME]1239628786[/TIME] ---------------

I have also tried this but back to square one.

HTML Code:

<if condition="$bbuserinfo[userid] == $bbuserinfo[userid]">
<div>
$myvariable
</div>
</if>

________
Herbal Health

EnIgMa1234 04-13-2009 12:55 PM

Quote:

Originally Posted by Sweeks (Post 1790152)
It isnt working :(

HTML Code:

<if $bbuserinfo[userid] == $vbuserinfo[userid]>
<div>
$variable here
</div>
</if>

It wont allow me to save.

--------------- Added [DATE]1239628574[/DATE] at [TIME]1239628574[/TIME] ---------------

I have also tried this but not working:

HTML Code:

<if condition="$bbuserinfo[userid] == $vbuserinfo[userid]">
<div>
$myvariable
</div>
</if>

That allows me to save but the data disappears completely on all profiles :(

--------------- Added [DATE]1239628786[/DATE] at [TIME]1239628786[/TIME] ---------------

I have also tried this but back to square one.

HTML Code:

<if condition="$bbuserinfo[userid] == $bbuserinfo[userid]">
<div>
$myvariable
</div>
</if>


Try this:
Code:

<if condition="$bbuserinfo[userid] == $prepared[userid]">
<div>
$variable here
</div>
</if>


Sweeks 04-13-2009 12:59 PM

Great thank you so much!!!

I now need the reverse of the first one lol

So I would have basically if it isnt your own profile show $mysecondvariable on this users profile who isnt my own profile if you get me. I hope this is possible :D

Thanks so much.
________
SILVER SURFER VAPORIZER REVIEWS

EnIgMa1234 04-13-2009 02:27 PM

Quote:

Originally Posted by Sweeks (Post 1790178)
Great thank you so much!!!

I now need the reverse of the first one lol

So I would have basically if it isnt your own profile show $mysecondvariable on this users profile who isnt my own profile if you get me. I hope this is possible :D

Thanks so much.

Code:

<if condition="$bbuserinfo[userid] !== $prepared[userid]">
<div>
$mysecondvariable
</div>
</if>


Lynne 04-13-2009 02:38 PM

Quote:

Originally Posted by Sweeks (Post 1790178)
Great thank you so much!!!

I now need the reverse of the first one lol

So I would have basically if it isnt your own profile show $mysecondvariable on this users profile who isnt my own profile if you get me. I hope this is possible :D

Thanks so much.

Quote:

Originally Posted by EnIgMa1234 (Post 1790236)
Code:

<if condition="$bbuserinfo[userid] !== $prepared[userid]">
<div>
$mysecondvariable
</div>
</if>


Or just add an else to the first one:
Code:

<if condition="$bbuserinfo[userid] == $prepared[userid]">
<div>
$variable here
</div>
<else />
<div>
$mysecondvariable
</div>
</if>


Sweeks 04-13-2009 02:39 PM

Awesome, thank you very much!!! I would give rep if I could :)
________
MAINE MEDICAL MARIJUANA DISPENSARY


All times are GMT. The time now is 01:02 AM.

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.01218 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_code_printable
  • (6)bbcode_html_printable
  • (4)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