View Full Version : add Blog Entries: 1 to postbit_legacy
raiderlax
Thu 30th Aug '07, 4:48pm
What is the code to add Blog Entries: 1 to the post_bit legacy for say a custom style??
Thanks :)
Wayne Luke
Thu 30th Aug '07, 4:58pm
<div class="smallfont">
<br />
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<div>
$vbphrase[posts]: $post[posts]
</div>
<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>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
</div>
raiderlax
Thu 30th Aug '07, 10:43pm
sorry I'm confused, what part do I add to make it show up?
Do I add the: because I did add that and it's not showing up, please what to do?
$template_hook[postbit_userinfo_right]
slappy
Thu 30th Aug '07, 11:59pm
See this Thread where is seems to have been gotten to work on postbit_legacy.
http://www.vbulletin.com/forum/showthread.php?p=1413085
I believe it's supposed to be: $template_hook[postbit_userinfo_right_after_posts]
Regards,
raiderlax
Sun 2nd Sep '07, 2:32pm
Thank you slappy I have done this although I have a slight problem:
1.When I put this in the template for my skin, it comes up with this(see attached pic 1), see the problem is is that the word "Blog Entries:" has to be bold like the other parts, how do I do this?
2. When there is someone who has no blog entries it comes up with this (see 2nd pic), the problem is is that it just shows that line because of the style I am using (the div tags), so I need an /if condition or something to get rid of the line and than add it back when there are blog entries as seen in the first pic, how do I do this please?
ex. of an /if condition for join date on my template:
<if condition="$post['joindate']"><div class="user_info"><strong>$vbphrase[join_date]:</strong> $post[joindate]</div>
</if>
raiderlax
Mon 3rd Sep '07, 5:41pm
Anyone please?
vBulletin® v3.8.0 Alpha 1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.