Vivvo CMS Support Forum Home | Free Trial | Online Demo | Docs and Manuals | Order Now   

Go Back   Vivvo CMS Support Forums > Project Tools > Vivvo CMS Bug Tracker > Bug

Issue Type Bug   Project Vivvo CMS Bug Tracker
Xenforo Bridge user avatar bug
Category Uncategorized
Affected Version 4.5 RC1
Priority 5 - Medium
Status Unconfirmed
Fixed Version (none)
Submitted 08-02-2011
Assigned Users (none) Tags (none)

issueid=193 08-02-2011 02:52 AM
Vivvo User
Xenforo Bridge user avatar bug

The code in the Xenforo Bridge to return the user avatar is incorrect.

The code is :

Code:
		function get_picture_href($size = 'summary_large'){
			if($this->avatar_date){
				return VIVVO_PLUGIN_XENFORO_URL .'data/avatars/m/0/'. $this->user_id.'.jpg';
			}else{
				return VIVVO_THEME .'img/avatar.gif';
			}
		}
This will only return avatars for the first 999 users.

Replace with this code to get the correct avatar location for all users:

Code:
		function get_picture_href($size = 'summary_large'){
			if($this->avatar_date){
				$avatar_path = "data/avatars/m/";
				$avatar_path .= floor($this->user_id / 1000) . "/" . $this->user_id;
				$avatar_path .= ".jpg";
				return VIVVO_PLUGIN_XENFORO_URL . $avatar_path;
			}else{
				return VIVVO_THEME .'img/avatar.gif';
			}
		}
Reply

08-04-2011 12:28 PM
Vivvo User
 
Update: This code adds gravatar support for the Xenforo bridge (this should replace the code above):

Code:
		function get_picture_href($size = 'summary_large'){				
			if($this->avatar_date){
				// check for gravatar
				if ($this->gravatar) {
					$avatar_path = "http://www.gravatar.com/avatar/" . md5(strtolower(trim($this->gravatar))) . "?s=96";
					return $avatar_path;
				} else {
					$avatar_path = "data/avatars/m/";
					$avatar_path .= floor($this->user_id / 1000) . "/" . $this->user_id;
					$avatar_path .= ".jpg";
					return VIVVO_PLUGIN_XENFORO_URL . $avatar_path;
					//return VIVVO_PLUGIN_XENFORO_URL .'data/avatars/m/0/'. $this->user_id.'.jpg';
				}
			}else{
				return VIVVO_THEME .'img/avatar.gif';
			}
		}
Reply
02-17-2013 07:22 AM
enjoydiablo3
 
This topic is pretty good and the writer's views are unique and easy to understand.I like it very much, and by the way I want to share some interesting and very useful websites to you.

With a wide list of items that the company sells, you can equip your character as you want and go play like a pro.Equipment is very important,so get the easy to use and cheap one play an important role.The buy diablo 3 Goldis an excellent place.

Maybe someone like the Diablo 3 I think Cheap Guild Wars 2 Gold is a brilliant choice.Beside of this Runescape is also very popular,go to Diablo 3 Gold won't let you down.
Reply

Issue Tools
Subscribe to this issue

Order now:

Order your copy of Vivvo now and get:
bullet Six months free upgrades
bullet Free support
bullet Full source code
bullet Immediate download
bullet Starting at only $295.00
Order now

Support HelpDesk:

You can submit a trouble ticket in the support area at any time, using your client area email and password.

Vivvo CMS Resource Center:

The Vivvo CMS Resource Center is your window to a variety of resources that showcase Vivvo's features and technologies. So whether you're brand new to Vivvo or a seasoned user, you can find the information you need right here!

Latest Additions:

Contact us:

Email inquiries
sales@vivvo.net
(Sales inquiries)
support@vivvo.net
(Support inquiries)

All times are GMT +1. The time now is 03:28 PM.
Contact Us - Vivvo Home - Archive - Privacy Statement - Top

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.