vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   IF ELSE Condition to hide and show something (https://vborg.vbsupport.ru/showthread.php?t=269996)

PAKIDIL 09-09-2011 05:32 PM

IF ELSE Condition to hide and show something
 
hello,

i need help if someone click from file test.php tick on hide images . it doesn't show otherwise it shows as normal .

so what will be the condition code for this i search on net but i am little confused about how to use it .

if someone could help me in this thanks
best regards
waiting for reply

souperman 09-09-2011 05:48 PM

If you're using an external php file then you can just use regular php syntax.

PAKIDIL 09-09-2011 05:57 PM

any example please ? like

<if condition="file.php",show=yes > else= Hide>


something like that

thanks

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

anyone please ?

souperman 09-10-2011 04:53 PM

php code is:

if ($randomvariable == true)
{
do this...
}
else
{
do this
}

PAKIDIL 09-10-2011 11:00 PM

thanks but i need template code for this .

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

like : If someone click from usercp panel that there is option hide the image or show the image :

<if condition="$myusercp-setting-hide-image-variable">
hide ( should i have to write only " hide" or something else ?)
<else />
show (should i have to write only "show" or something else ? )
</if>

Is this correct ?

thanks
waiting for reply

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

any help please ?


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