vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Little Question (https://vborg.vbsupport.ru/showthread.php?t=216412)

Stormraven 06-18-2009 01:41 AM

Little Question
 
I have done some work on some css boxes to go around the join date, location, post count in the postbit_legacy template page. I have put boxes around everything, including the aim, icq, msn and skype icons. Although if no one fills in their icq, msn, skype and aim details then the box still appears with nothing in it. I have pointed it out in the screenshot below:

You may have to look hard because the empy box is below the one with the mood icon in it:
http://img189.imageshack.us/img189/1063/capturecgr.jpg.

How can I get rid of that box, but for only the people who don't enter their aim, icq, msn and skype details?

Kind Regards
Stormraven.

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

No one going to help me?

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

No one going to help me?

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

Bump :(

Lynne 06-19-2009 01:51 AM

You would have to put a condition around the box. Something like:
HTML Code:

<if condition="$post[icqicon]">
then show it
</if>


Stormraven 06-19-2009 02:22 AM

Around which bit? Is it somwhere in this code? I tryed to put it somewhere here but all the icons dissapeared even if somone had entered their aim names etc.

Code:

$template_hook[postbit_userinfo_right_after_posts]
                                <if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
                                <if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
                                $template_hook[postbit_userinfo_right]
                                <div class="postinfo">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
                        </div><br />


Lynne 06-19-2009 02:44 AM

Put a conditon around this part:
HTML Code:

<div class="postinfo">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
HTML Code:

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


Stormraven 06-19-2009 02:53 AM

Brilliant, worked like a charm. Thankyou so much Lynne.

Kind Regards
Stormraven.


All times are GMT. The time now is 01:21 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.01002 seconds
  • Memory Usage 1,725KB
  • 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)bbcode_code_printable
  • (3)bbcode_html_printable
  • (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