News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

non appearing avatars....

Started by dsantana, March 21, 2011, 08:12:50 PM

Previous topic - Next topic

dsantana

I saw another post on this issue and it was unresolved and I added to it....
I was asked to start a new topic by Illori.

My avatars don't always appear... All stats in signature line...
Thanks...

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

redone

Do you have the same issue with the default theme too? Or is this limited to just custom themes?

~RedOne

Advertisement: