vb.org Archive

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

Hell Bomb 01-06-2010 11:27 PM

not sure, started using vb4.0 yet

Mythotical 01-06-2010 11:37 PM

Not sure mandingo but this may work:

HTML Code:

<vb:if condition="$field['15'] == '0'">
$shoutbox
</if>

Hellbomb: Have you tried making sure you have the field set to No, if so try switching the 0 out for 1.

Hell Bomb 01-06-2010 11:41 PM

Yep tried both things you have mentioned.

mandingo 01-07-2010 12:08 AM

Quote:

Originally Posted by Steve M (Post 1949183)
Not sure mandingo but this may work:

HTML Code:

<vb:if condition="$field['15'] == '0'">
$shoutbox
</if>

Hellbomb: Have you tried making sure you have the field set to No, if so try switching the 0 out for 1.

Dint work,thanks for the help though.

Hell Bomb 01-07-2010 12:44 AM

Quote:

Originally Posted by mandingo (Post 1949196)
Dint work,thanks for the help though.

make sure you read the first post so you change the 15 to the id you use.

mandingo 01-07-2010 01:08 AM

Quote:

Originally Posted by hellbomb (Post 1949214)
make sure you read the first post so you change the 15 to the id you use.

Ya,I changed the id # etc,tried a few different things,not a big deal,more of a future reference thing. Only know how to show output of text from a profile field in postbit,wanna learn other tweaks from there at some point. Thanks.didn't mean to hijack your thread.*apologizes*

Mythotical 01-07-2010 05:19 PM

hellbomb, mandingo: I'm an idiot all around lol. Here is what you need to use.

HTML Code:

<if condition="$bbuserinfo[field15] == 'No'">
Shoutbox code here
</if>

That will work.

Keep in mind if the field number does not match the number you are using then please change the field number.

Hell Bomb 01-18-2010 04:14 AM

Thank you so much, just tested it and it works like a charm. If you ever need anything feel free to ask.


All times are GMT. The time now is 01:27 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.01017 seconds
  • Memory Usage 1,728KB
  • 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
  • (3)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete