News:

On Deck: Next is "Bluemoon" For SMF 2.1.4! ;)

 

Recent Topics

Members
Stats
  • Total Posts: 10,783
  • Total Topics: 1,380
  • Online today: 33
  • Online ever: 879
  • (Jan 21, 20, 05:49:15 PM)
Users Online
Users: 0
Guests: 27
Total: 27

Reference: Missing avatar on topic & post pages

Started by rpatin, Sep 21, 11, 07:19:11 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rpatin

I'm loving the Reference theme on my site, but have run into one "issue" (unless it was intentionally designed this way). Anyway, on the topic and post pages, avatars disappear. Instead, only the text (Hey, so-and-so - Show unread posts - etc.) appears at the top of the page.

How can I make it so that avatars appear on every page?

Thanks for your help!

Crip

Hi,
..could U share a link-to Theme?  Version?
I have become comfortably numb!


No PM's for Support unless invited! 

I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -
TOTM Winner.

rpatin

The link is: www.tcvikings.com

I am using Reference version 2.0.

Username: test
Password: testing123

Again, the avatar disappears when viewing the topic list (for example, visit "The 411") or a post.

Thanks for the help!

Crip

Quote from: rpatin on Sep 21, 11, 12:57:54 PM
Again, the avatar disappears when viewing the topic list (for example, visit "The 411") or a post.


Thanks,
I saw that happen , the reason it disappears  is the "(index.template.php)" & looks like this viewing Source..


<div id="my-avatar" class="clearfix"><img src="avatars/Students/test.jpg" alt="" class="avatar" /></div>


... this must have been added , it's not in the original Theme.
I have become comfortably numb!


No PM's for Support unless invited! 

I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -
TOTM Winner.

rpatin

Hmmm...still having the same problem even after copying your unmodified index.template.php file to my site.

I noticed another small problem that I was able to resolve. The "There are XX members awaiting approval" link wasn't showing up by my avatar. I ended up making this change to the index.template.php file:

Original:
<div id="my-avatar" class="clearfix">', $context['user']['avatar']['image'], '</div>';
echo '
<ul class="reset">
<li><b>', $txt['hello_member'], ' ', $context['user']['name'], '</b></li>';
  echo '
<li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>
  <li>', $context['current_time'],'</li>
</ul>';
}

// Otherwise they're a guest - this time ask them to either register or login - lazy bums...


Modified:
<div id="my-avatar" class="clearfix">', $context['user']['avatar']['image'], '</div>';
echo '
<ul class="reset">
<li><b>', $txt['hello_member'], ' ', $context['user']['name'], '</b></li>';
  echo '
<li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>
  <li>', $context['current_time'],'</li>
          </ul>';

         // Is the forum in maintenance mode?
         if ($context['in_maintenance'] && $context['user']['is_admin'])
            echo '
               ', $txt['maintain_mode_on'], '';

         // Are there any members waiting for approval?
         if (!empty($context['unapproved_members']))
            echo '
               ', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=admin;area=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], ' ', $txt['approve_members_waiting'], ' ';

         if (!empty($context['open_mod_reports']) && $context['show_open_reports'])
            echo '
               <a href="', $scripturl, '?action=moderate;area=reports">', sprintf($txt['mod_reports_waiting'], $context['open_mod_reports']), '';
         echo '';

      }

   // Otherwise they're a guest - this time ask them to either register or login - lazy bums...


This resolved the approval link issue, but I'm still having a problem with the missing avatar.

Crip

that code :: // Is the forum in maintenance mode? // :: was not in the theme , many of my Themes don't..
---
this is a screenshot of my Ref on Demo-site , The Avatar shows..
See pix ::

[attachment deleted by admin]
I have become comfortably numb!


No PM's for Support unless invited! 

I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -
TOTM Winner.

rpatin

Thanks for the help. I'll keep messing around with it. Perhaps it is an issue with a mod or setting on my end. I'll post if the problem is resolved.

Thanks!