View Full Version : Img instead of Blogs # in postbit
Sarthek
11-04-2007, 06:28 AM
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:
<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?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.