vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Need more <if condition=> help please :) (https://vborg.vbsupport.ru/showthread.php?t=70341)

Rick Sample 10-08-2004 07:02 PM

Need more <if condition=> help please :)
 
I want to have a boarder around my AIM, YIM, etc icons. The boarder is through my div class=info.

Here is what I have so far:
<if condition="$show['messageicon']"><div class="info">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</if></div>

I know the part with the [messageicon] is wrong, not sure what else is either, any help would be great!

Zachery 10-08-2004 07:23 PM

Well, either there is no $show[messageicon] or its a global (vboptions) setting

use this,

<if condition="$post[icqicon] OR $post[aimicon] OR $post[msnicon] OR $post[yahooicon]"><div class="info">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div></if>

Also, make sure you are properly nesting your code,

having a div tag outside of an if condition (when it starts inside) ccould cause you some major headaches. All code should close in the order it was opend.

Most of the time in HTML 4 this would be ok:
<b><i><u>weeee</b></i></u>
However, in XHTML that would not be correct and the validator will shoot some errors your way, instead it should look like this in XHTML:
<b><i><u>weeee</u></i></b>
:)

Dean C 10-08-2004 07:27 PM

Moved to General vBulletin Questions :)

Rick Sample 10-08-2004 07:30 PM

Worked perfectly!

Thanks for the tip, too :)


All times are GMT. The time now is 04:08 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.00937 seconds
  • Memory Usage 1,708KB
  • 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
  • (4)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