vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - [1e2] Gravatar as Default Avatar for users without image: auto generate random avatar (https://vborg.vbsupport.ru/showthread.php?t=262196)

galerio 01-22-2012 07:02 PM

Thank you, I have seen the issue, but I don't have the Vbulletin Facebook App, so I can't see its source code and look for a solution. And I'm not going to purchase it by now. I'm sorry, but I can't give you support.

jorgejgm 01-25-2012 05:23 PM

Thanks Galerio. A shame.

jorgejgm 01-25-2012 05:40 PM

solved
In user_info.php (apps facebook)

Find:
PHP Code:

return vB_SITE_ROOT . (!empty($this->vb_avatarurl) ? $this->vb_avatarurl 'images/misc/unknown.gif'); 

and replace by:

PHP Code:

return (!empty($this->vb_avatarurl) ? $this->vb_avatarurl 'HTTP://YOURFORUM.XXX/images/misc/unknown.gif'); 


chikuru 02-26-2012 04:11 AM

Is this compatible with vb 4.1.10?

Thanks!

galerio 02-26-2012 09:01 AM

Yes it is, maybe I just need to update infos in txt file if you want gravatar also in sidebar and blog/cms, but it's a simple thing to do. I'll do it now.

Edit: added updated version compatible with 4.1.10

Kraxell 03-01-2012 03:37 PM

Mhm...not very effective because after every update the changes are lost. Is it possible to do that with templates?

galerio 03-01-2012 04:12 PM

Sorry, but there's no way to alter avatars in sidebar and blogs with a template change. It's something hardcoded in the source files.
But the avatars in showpost, profile and memberlist are already there also after an update.

w8baby 03-02-2012 06:30 PM

tried the edits in vb 4.1.11. works perfectly :). had to wait 5-10min for it to update sidebar

galerio 03-02-2012 06:59 PM

You should clean the sidebar block cache. Or wait for some hours.

postcd 04-08-2012 08:01 AM

Please can you make this mod so user can select from my custom avatars, nto gravatars (just adding another option in Mod config so i can set manually path to images.. (my def avatars directory)

thank you


All times are GMT. The time now is 10:14 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01037 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete