MyBB Community Forums

Full Version: where to edit avatar template for portal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
where can i find the template containing the avatar for the portal?
For that matter, the message template as well.
Should be portal_announcement.
(2008-11-30, 09:02 AM)Matt_ Wrote: [ -> ]Should be portal_announcement.

i cannot find it in there

when i view the source the code around the avatar is there but it is not in the template
Well {$avatar} is in that template, what do you want to do to it??
(2008-11-30, 05:36 PM)Matt_ Wrote: [ -> ]Well {$avatar} is in that template, what do you want to do to it??

Look at this part of portal_announcement template:

<td class="trow1" style="border: 0px;">
<table border="0" cellpadding="{$theme['tablespace']}" width="100%">
	<tr>
		{$avatar}
<td class="trow1" valign="top" style="border: 0px;">

Here it is from view source:

<td class="trow1" style="border: 0px;">
<table border="0" cellpadding="6" width="100%">
<tr>
<td class="trow1" width="1" align="center" valign="top"><img src="http://forums.beywiki.com/./uploads/avatars/avatar_1.gif" alt="" /></td>
<td class="trow1" valign="top" style="border: 0px;">

I want to alter bolded part, but I can't find it.
Bump?
It's not in the templates, it's in the source code (for some strange reason).

Edit portal.php, and circa line 476, find:

$avatar = "<td class=\"trow1\" width=\"1\" align=\"center\" valign=\"top\"><img src=\"{$announcement['avatar']}\" alt=\"\" {$avatar_width_height} /></td>";

I think that's the one you're looking for...
(2008-12-02, 09:08 AM)Tom.M Wrote: [ -> ]It's not in the templates, it's in the source code (for some strange reason).

Edit portal.php, and circa line 476, find:

$avatar = "<td class=\"trow1\" width=\"1\" align=\"center\" valign=\"top\"><img src=\"{$announcement['avatar']}\" alt=\"\" {$avatar_width_height} /></td>";

I think that's the one you're looking for...

thanks very much Smile

pretty awful that this is in the source though
(2008-12-02, 09:13 AM)Bey Brad Wrote: [ -> ]thanks very much Smile

pretty awful that this is in the source though

Your welcome Smile

It's in the source code because it needs to create an extra <td> if there is an avatar - if there isn't, then the <td> isn't needed. I guess it's 6 of 1... Undecided