Status
Not open for further replies.
I'm actually in the process of adding support for a template edit to the Logged In Users template to InfoPanels that will enable avatars on logged in users :)

It'll be an officially supported feature in the next version of InfoPanels :)
 
Okay I have upgrade to 4.1.4 and had the avatars on logged in users on 4.1.3.
I am doing my style over again due to style conflict and would like the avatars.
What do I need to edit? I am having a little trouble pin pointing the template. :)
 
I don't remember actually, I can't seem to find it in the templates :(
Perhaps you could do a compare to your backup style and find the changes that I made.
 
Yes I am wanting these avatars back just poking around here trying to figure it out. I miss them ;)
Code:
<ol id="wgo_onlineusers_list2" class="commalist">

Edit: the above is a mess...Please don't make me wait any longer at Fillip H. :) You know what your busy! :)
Hey Ozzy47 would you be able to help me on this one. :) those little avatars in infopanels in was going on...I had them once but I had to redo my style after upgrading to 4.1.4
 
Last edited:
Ok I am trying to figure out how to do it, I will post back here if I find a solution.
 
GoodApples do you have the Enable "Separate Staff" enabled in DragonByte Tech: Info Panels - General Options?
 
@GoodApples

Well after pulling my hair out I finally got it sorted, this will work if you have separate staff enabled or not, I figured out first how to make it work with separate staff disabled, then got it to work with it enabled.

So here we go. Step 1 and 2 do in all styles you wish, Step 3 is only done once:

Step 1: Open your forumhome_loggedinuser template and all code replace with:
PHP:
<li>{vb:stylevar dirmark} <vb:if condition="$loggedin[avatarurl]"> 
<img height="20" width="20" class="inlineimg" src="{vb:raw loggedin.avatarurl}" border="0" /></vb:if> <a class="username" href="{vb:link member, {vb:raw loggedin}}">{vb:raw loggedin.musername}</a>{vb:raw loggedin.invisiblemark}{vb:raw loggedin.buddymark}</li>


Step 2:
Open your forumhome template and find:
PHP:
  <li> {vb:stylevar dirmark}<a class="username" href="{vb:link member, {vb:raw loggedin}}">{vb:raw loggedin.musername}</a>{vb:raw loggedin.invisiblemark}{vb:raw loggedin.buddymark}</li>


Replace with:
PHP:
<li>{vb:stylevar dirmark} <vb:if condition="$loggedin[avatarurl]"> 
<img height="20" width="20" class="inlineimg" src="{vb:raw loggedin.avatarurl}" border="0" /></vb:if> <a class="username" href="{vb:link member, {vb:raw loggedin}}">{vb:raw loggedin.musername}</a>{vb:raw loggedin.invisiblemark}{vb:raw loggedin.buddymark}</li>
If you want to large size or small avatar then, you would change this in the above codes:
height="20" width="20"

Step 3: Now go into ftp, find this file, dbtech/infopanels/hooks/forumhome_loggedinuser.php

Edit the file and either replace with the following code:
PHP:
<?php

if (!class_exists('vB_Template'))
{
    // Ensure we have this
    require_once(DIR . '/dbtech/infopanels/includes/class_template.php');
}

cache_permissions($loggedin);

$word = 'member';
if ((bool)($loggedin['permissions']['genericoptions'] & $vbulletin->bf_ugp_genericoptions['showgroup']))
{
    // This are a staf grup
    $word = 'staff';
}

require_once('./includes/functions_user.php'); if($userid)
   
$loggedin[avatarurl] = fetch_avatar_url($loggedin[userid]);

if (!$loggedin[avatarurl]) {
                    
$loggedin[avatarurl] = $stylevar['imgdir_misc'] . 'images/misc/unknown.gif'; 
    } 
else 
    { 
$loggedin[avatarurl] = $vbulletin->options['bburl'] . '/' . 

$loggedin[avatarurl][0];
                  }

if (fetch_online_status($loggedin))
{
    $show['comma_leader'] = ($onlinegroups["$word"] != '');
    $templater = vB_Template::create('forumhome_loggedinuser');
    $templater->register('loggedin', $loggedin);
    $onlinegroups["$word"] .= $templater->render();
}

require_once('./includes/functions_user.php'); if($userid)
   
$loggedin[avatarurl] = fetch_avatar_url($loggedin[userid]);

if (!$loggedin[avatarurl]) {
                    
$loggedin[avatarurl] = $stylevar['imgdir_misc'] . 'images/misc/unknown.gif'; 
    } 
else 
    { 
$loggedin[avatarurl] = $vbulletin->options['bburl'] . '/' . 

$loggedin[avatarurl][0];
                  }
?>


Or overwrite the file with the one in the attached zip file.

Before Edits:
14df977462ec97.png


After Edits:
14df97746b96fa.png


Now I can rest :cool:
 

Attachments

Last edited:
Status
Not open for further replies.

Similar threads

Legacy InfoPanels

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
871
Customer rating
0.00 star(s) 0 ratings
Back
Top