• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How I can extend XenForo_Template_Helper_Core class and override protected function?

infis

Well-known member
#3
Thread must be close. It's impossible. Thank you, digitalpoint. XenForo is not provide easy access for addons developpers for add little functions such as 'avatar from url'...
 

Jake Bunce

XenForo moderator
Staff member
#4
Thread must be close. It's impossible. Thank you, digitalpoint. XenForo is not provide easy access for addons developpers for add little functions such as 'avatar from url'...
Avatars are served from the "data" directory. There is a configurable setting for this. Add this code to your library/config.php file:

Code:
$config['externalDataUrl'] = 'data';
 
R

ragtek

Guest
#5
You could also change the avatar callback method in $helperCallbacks on init_dependencies run
PHP:
  XenForo_Template_Helper_Core::$helperCallbacks['avatar'] = array('Ragtek_XXXX', 'helperNewAvatarUrl');
to change the avatar url
BUT ATTENTION: this works only for 1 add-on.
All other addons will overwrite the previous change;)
 

infis

Well-known member
#6
No. User want use url for avatar such as gravatar (clear url, not email). And I can't change logic of work gravatar functions from check data in input gravatars field to generation right code in final html code.
Thank for your answers!