![]() |
$post[avatarurl] and avatar problem
Hi,
I'm trying to make plugin to show custom avatar. i cut from template postbit: Code:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if> Code:
if($show['avatar']){ The problem is $post[avatarurl] not showing right. i manual echo $post[avatarurl] and the result it empty. But it have result when i try echo $show['avatar'] or echo $post[userid] Does anyone here know how to do the right way to have $post[avatarurl] with right value? Thanks |
What hook location are you using for your plugin?
Also, please use the code tags, not the quote tags, when posting code. |
Quote:
|
Try postbit_display_complete
|
Quote:
Anyway, i've change the hook to postbit_display_complte, it still can't echo the value of $post[avatarurl] |
It works just fine for me. However, you do realize that using echo will just spit it out when the plugin is evaled, right? So you just end up with a bunch of avatars on the top of the page (did you look there? Or did you look in your source code for it?)
|
All times are GMT. The time now is 12:11 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|