How I can extend XenForo_Template_Helper_Core class and override protected function?

infis

Well-known member
I need to change one method in this class which is protected.
What candidate solutions of this task are?
 
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'...
 
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';
 
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;)
 
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!
 
Top Bottom