Status
Not open for further replies.

angus

Customer
Hello!

Since version 1.1 there are avatars of the users next to the usernames in the what´s going on block.
Please be not angry with me, but that looks totally ugly.

How can I disable these avatars?

Angus
 
Last edited:
Upvote 0
This suggestion has been closed. Votes are no longer accepted.
Really no way???

What about a change of templates. Somewhere there must be the code to set an avatar.
 
Last edited:
It's not handled by a template, and file edits aren't supported. If it's really bothering you then you can remove the if block that starts with
PHP:
if ($vbulletin->options['avatarenabled'])
from /dbtech/infopanels/hooks/forumhome_loggedinuser.php but we're unable to provide support for changes or problems that occur as a result of changes like these :)
 
Thank you very much.

I think more people will enjoy if you could install such an option.

Angus
 
Last edited:
Yes, as much I enjoy having them in forum home for logged in users. There needs to be an option. :)
I prefer to have them but if someone does not...
 
I agree just updated and its the most uglist thing when u have over a 1000 members online, get rid or add option to disable. Could you display the full block details to remove to get rid please

---------- Post added 21st December 2011 at 22:42 ---------- Previous post was 19th December 2011 at 23:16 ----------

Guess not, disable that as unusable, like most of the DBtech mods :-(
 
Instructions for how to remove it in wait of an option have been posted earlier in this thread :)
 
It's not handled by a template, and file edits aren't supported. If it's really bothering you then you can remove the if block that starts with
PHP:
if ($vbulletin->options['avatarenabled'])
from /dbtech/infopanels/hooks/forumhome_loggedinuser.php but we're unable to provide support for changes or problems that occur as a result of changes like these :)

Can you please be a bit more specific as to the exact code that needs to be removed here? Thank you so much. It really does not look good when you have a lot of members online.
 
I am unable to get the double commas to show like you do. Ensure you have removed the following entire code from /dbtech/infopanels/hooks/forumhome_loggedinuser.php

PHP:
if ($vbulletin->options['avatarenabled'])
{
    if (!function_exists('fetch_avatar_url'))
    {
        // Get the avatar function
        require_once(DIR . '/includes/functions_user.php');
    }
    
    if ($userid == $vbulletin->userinfo['userid'])
    {
        if (!$vbulletin->userinfo['avatarurl'])
        {
            // Get avatar URL
            $avatarurl = fetch_userinfo($userid, 2, 0, 1);
            
            // Add avatar info to loggedin array (VB Y U FORCE ME TO DO THIS)
            $loggedin['avatarpath']         = $avatarurl['avatarpath'];
            $loggedin['hascustomavatar']     = $avatarurl['hascustomavatar'];
            $loggedin['avatardateline']     = $avatarurl['avatardateline'];
            $loggedin['avwidth']             = $avatarurl['avwidth'];
            $loggedin['avheight']             = $avatarurl['avheight'];
            $loggedin['avheight_thumb']     = $avatarurl['avheight_thumb'];
            $loggedin['avwidth_thumb']         = $avatarurl['avwidth_thumb'];
            $loggedin['filedata_thumb']     = $avatarurl['filedata_thumb'];
            $loggedin['avatarid']             = $vbulletin->userinfo['avatarid'];
            $loggedin['avatarrevision']     = $vbulletin->userinfo['avatarrevision'];
            
            // Yay it's available in vB3 after all :D
            fetch_avatar_from_userinfo($loggedin);
        }
        else
        {
            // Just in case...
            $loggedin['avatarurl'] = $vbulletin->userinfo['avatarurl'];
        }
    }
    else
    {
        // Yay it's available in vB3 after all :D
        fetch_avatar_from_userinfo($loggedin);
    }
    
    // Set musername
    $loggedin['musername'] = '<img border="0" src="' .  $loggedin['avatarurl'] . '" alt="" width="20" height="20" /> ' .  $loggedin['musername'];
}
 
+1 for adding this option in a new version. It doesn't look too great when you have lots of users on-line at ones, especially for those people who have smaller monitor sizes.
 
I can make up the subject because I think that option check / uncheck to show or not the avatars (as groups) would be appropriate.

Thank you for the work you do
 
Status
Not open for further replies.

Legacy InfoPanels

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