vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Img instead of Blogs # in postbit (https://vborg.vbsupport.ru/showthread.php?t=161877)

Sarthek 11-04-2007 06:28 AM

Img instead of Blogs # in postbit
 
Hi,

this should be simple for someone who-know-how.

We would like to have blog img under avatars instead of Blogs #.

Blue IMG should be under avatars of users who have more than 0 blogs.
Grey IMG should be under avatars of users who have 0 blogs.

Opserty 11-04-2007 10:14 AM

I don't know what the variable is for number of blogs but you can use an if condition in the postbit(_legacy) template. It would go something like:
Code:

<if condition="$post[blogs]">
    <img src="path/to/blue/img.gif" alt="$post[username] has $post[blogs] blogs" />
<else />
    <img src="path/to/grey/img.gif" alt="$post[username] has no blogs" />
</if>

I'm not sure if $post[blogs] is the correct variable but you can try looking for yourself or wait till someone comes along who knows.

Sarthek 11-04-2007 10:44 AM

Hi, thanks for posting. However it seems if $post[blogs] is not correct variable, as it write below all avatars Users has no post.

Sarthek 11-07-2007 06:51 AM

Anyone?


All times are GMT. The time now is 09:14 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.00966 seconds
  • Memory Usage 1,709KB
  • 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
  • (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