TheCripZone SMF Themes Site

All Things Public => Theme Support => Topic started by: rpatin on Sep 21, 11, 07:19:11 AM

Title: Reference: Missing avatar on topic & post pages
Post by: rpatin on Sep 21, 11, 07:19:11 AM
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!
Title: Re: Reference: Missing avatar on topic & post pages
Post by: Crip on Sep 21, 11, 07:35:39 AM
Hi,
..could U share a link-to Theme?  Version?
Title: Re: Reference: Missing avatar on topic & post pages
Post by: rpatin on Sep 21, 11, 12:57:54 PM
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!
Title: Re: Reference: Missing avatar on topic & post pages
Post by: Crip on Sep 21, 11, 01:38:13 PM
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.
Title: Re: Reference: Missing avatar on topic & post pages
Post by: rpatin on Sep 21, 11, 10:30:43 PM
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.
Title: Re: Reference: Missing avatar on topic & post pages
Post by: Crip on Sep 22, 11, 06:36:28 AM
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]
Title: Re: Reference: Missing avatar on topic & post pages
Post by: rpatin on Sep 22, 11, 04:24:57 PM
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!