vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   User Profiles - Users with No Visitor Messages (https://vborg.vbsupport.ru/showthread.php?t=287243)

Amaury 09-05-2012 02:21 AM

Quote:

Originally Posted by Lynne (Post 2362773)
I can't see the text on the screenshot, but you want to put the condition around the full html you don't want to be shown.

This should be better:

http://i101.photobucket.com/albums/m...edLastVM-1.jpg

So I would make that this?

<vb:if condition="$prepared['vm_total']"><dd> {vb:raw prepared.vm_total}</dd></vb:if>

Lynne 09-05-2012 02:27 AM

No, I can't see that better. Images are resized here. But, try what you wrote on your test site and see if it is what you want.

Amaury 09-05-2012 02:55 AM

Quote:

Originally Posted by Lynne (Post 2362779)
No, I can't see that better. Images are resized here. But, try what you wrote on your test site and see if it is what you want.

Alright, it worked.

http://i101.photobucket.com/albums/m...Garcia/VMs.png

Original Code:
Code:

<dt>{vb:rawphrase total_messages}</dt>
        <dd> {vb:raw prepared.vm_total}</dd>
    </dl>
    <dl class="blockrow stats">
        <dt>{vb:rawphrase most_recent_message}</dt>
        <dd>{vb:raw prepared.lastvm_date}<vb:if  condition="!$show['detailedtime']"> <span class="time">{vb:raw  prepared.lastvm_time}</span></vb:if></dd>
    </dl>
    <ul class="group">
        <li><a href="javascript://" onclick="return  tabViewPicker(document.getElementById('visitor_messaging-tab'));">{vb:rawphrase  visitor_messages_for_x, {vb:raw  prepared.username}}</a></li>

Modified Code:
Code:

<vb:if condition="$prepared['vm_total']"><dt>{vb:rawphrase total_messages}</dt></vb:if>
        <vb:if condition="$prepared['vm_total']"><dd> {vb:raw prepared.vm_total}</dd></vb:if>
    </dl>
    <dl class="blockrow stats">
        <vb:if condition="$prepared['vm_total']"><dt>{vb:rawphrase most_recent_message}</dt></vb:if>
        <vb:if condition="$prepared['vm_total']"><dd>{vb:raw  prepared.lastvm_date}<vb:if condition="!$show['detailedtime']">  <span class="time">{vb:raw  prepared.lastvm_time}</span></vb:if></dd></vb:if>
    </dl>
    <ul class="group">
        <vb:if condition="$prepared['vm_total']"><li><a href="javascript://"  onclick="return  tabViewPicker(document.getElementById('visitor_messaging-tab'));">{vb:rawphrase  visitor_messages_for_x, {vb:raw  prepared.username}}</a></li></vb:if>

Also, while it does work, I'm not sure if the "if condition" text (vm_total) is the right text for them all.


All times are GMT. The time now is 01:37 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.00968 seconds
  • Memory Usage 1,727KB
  • 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
  • (2)bbcode_code_printable
  • (2)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
  • (3)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