Jacob B
08-10-2008, 03:44 PM
Hey guys,
I'm in the process of remodelling some templates for a product. What I'm looking to do is in the reply feature on this product, I want the user's avatar to be displayed next to their name. I thought it was just $customavatar but that doesn't appear to be working.
What code/phrase do I need to be able to pull their avatar into a reply bit on a product?
This is the code I've made so far:
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%">
<tr>
<td class="thead normal">
<span style="float: right;"><phrase 1="$reply[datelogged]" 2="$reply[replyusername]" 3="$reply[replyuserid]">$vbphrase[last_update_by]</phrase></span>
<if condition="$bbuserinfo[userid] == $reply[replyuserid] AND $show['can_edit_tickets'] OR $show['can_edit_any_tickets']">[<a href="helpcenter.php?$session[sessionurl]do=edit&rid=$reply[replyid]">$vbphrase[edit_reply]</a>]</if> <if condition="$bbuserinfo[userid] == $reply[replyuserid] AND $show['can_delete_tickets'] OR $show['can_delete_any_tickets']">[<a href="helpcenter.php?$session[sessionurl]do=ticketreplydelete&rid=$reply[replyid]">$vbphrase[delete_reply]</a>]</if>
</td></tr>
<tr valign="top">
<td class="alt2">
<table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
<tr>
<td class="alt2"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$customavatar</a></td>
<td nowrap="nowrap">
<a class="bigusername" href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$username</a>
</td>
</tr>
</table>
<tr>
<td class="alt1" valign="top">
$reply[message]
</td>
</tr>
</table>
<br />
I'm in the process of remodelling some templates for a product. What I'm looking to do is in the reply feature on this product, I want the user's avatar to be displayed next to their name. I thought it was just $customavatar but that doesn't appear to be working.
What code/phrase do I need to be able to pull their avatar into a reply bit on a product?
This is the code I've made so far:
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%">
<tr>
<td class="thead normal">
<span style="float: right;"><phrase 1="$reply[datelogged]" 2="$reply[replyusername]" 3="$reply[replyuserid]">$vbphrase[last_update_by]</phrase></span>
<if condition="$bbuserinfo[userid] == $reply[replyuserid] AND $show['can_edit_tickets'] OR $show['can_edit_any_tickets']">[<a href="helpcenter.php?$session[sessionurl]do=edit&rid=$reply[replyid]">$vbphrase[edit_reply]</a>]</if> <if condition="$bbuserinfo[userid] == $reply[replyuserid] AND $show['can_delete_tickets'] OR $show['can_delete_any_tickets']">[<a href="helpcenter.php?$session[sessionurl]do=ticketreplydelete&rid=$reply[replyid]">$vbphrase[delete_reply]</a>]</if>
</td></tr>
<tr valign="top">
<td class="alt2">
<table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
<tr>
<td class="alt2"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$customavatar</a></td>
<td nowrap="nowrap">
<a class="bigusername" href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$username</a>
</td>
</tr>
</table>
<tr>
<td class="alt1" valign="top">
$reply[message]
</td>
</tr>
</table>
<br />