Disappearing avatars

Started by wynnyelle, September 11, 2010, 12:26:43 AM

Previous topic - Next topic

wynnyelle

They load up with the post but wink out after like a split second. Sometimes they never show at all. Only certain ones, and it's always those, but it is different ones that don't work for different people.

It's one of the stranger things on our board. I won't say strangest, because we've had some really weird stuff.

Board is using 2.0. version 3.

Danny S.

Could you grab a copy of the avatar code from the index.template.php file? There may be a slight error in the coding.

Thanks!

Deaks

Groovystar I am marking this as solved as you have not responded in a month, if you still need assistance please tell us if this is every avatar what theme what forum version (RC1, RC2 or RC3) and if there are any error in the error log.
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

dsantana

Hi,
I have had this same issue and attached the code below. I have a custom theme too and I hope I've given you the right code?
I've attached the index.template,php as well.
site is www.vintagejetboats.com
Thanks in advance

// show the menu
echo '
<div class="gmhead-l">
<div class="gmhead-r">
<div class="gmheader">';

if ($context['user']['is_logged'])
{

if (!empty($context['user']['avatar']))
echo '
<div id="userareaavatarleft">', $context['user']['avatar']['image'], '</div>
<div id="userareaavatarright">', $context['user']['avatar']['image'], '</div>';

}
echo '



function template_userarea()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

echo ' <div id="userarea" >';
if ($context['user']['is_logged'])
{
// if (!empty($context['user']['avatar']))
// echo '
// <div id="userareaavatar">', $context['user']['avatar']['image'], '</div>';
echo '
<b>', $txt['hello_member_ndt'], ' ', $context['user']['name'], '</b> &nbsp;';
// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo $txt['msg_alert_you_have'], ' <a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt['msg_alert_messages'] : $txt['message_lowercase'], '</a>', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1'] , '. &nbsp;[';
echo '
<a href="', $scripturl, '?action=unread">',$txt['show_unread_since_visit'],'</a>&nbsp;/
<a href="', $scripturl, '?action=unreadreplies">',$txt['show_all_unread_replies'],'</a>&nbsp;/
<a href="', $scripturl, '?action=profile;area=showposts">',$txt['ownposts2'],'</a>]<br />
', $context['current_time'],'';
SMF 2.0 | VJB2.0 Custom Theme | Simple Portal 2.3.3

Illori

dsantana please open new topics for your issues

Advertisement: