Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Photo As Avatar Details »»
Photo As Avatar
Version: 0.4, by Vitaly Vitaly is offline
Developer Last Online: Jul 2014 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 4.0.x Rating:
Released: 07-02-2010 Last Update: 07-03-2010 Installs: 28
Uses Plugins Auto-Templates
Re-useable Code Additional Files  
No support by the author.

port of vb3 version, with mass-check feature.

This mod completely disables standard avatar functionality and generates avatars automaticaly from profile photos. That helps with 2 points:
  • "Socialize" you forum. Real visitors likes to se their faces.
  • Simplify usage. Many people don't understand, why they can upload pictures in 2 places, and what is the difference.
Also, this mod makes sexy rounded corners for avatar. It seems strange, but forum impression become much better. See attached images.

Features:
  • Automatically generates avatars from profile photos
  • Round corners for avatars
  • PNG avatar format, compatible with any skin background
  • Mass rebuild avatars via ACP
  • Mass check/remove avatars from ACP (rebuild counters)
How to install:
  • !!! ACP -> Avatars -> User Pictures Storage Type. Move to filesystem, if not.
  • Upload files from appropriate folder and import product XML
  • Go to ACP and change settings each group. Those are recommended:
    • 160х160px - profile photo size
    • 80x80 - avatar size
  • Go to ACP -> Options -> User Pucture Options. Select corner rounding you like.
  • Go to ACP -> Rebuild counders. Run "Rebuild avatars from photos"
This mod is developped here http://github.com/rcdesign/vb-photo_as_avatar . Patches are welcome.

PS. Screenshots from vb3 version, don't care.

Download Now

File Type: zip vb-photo_as_avatar-0.4.zip (10.8 KB, 301 views)

Screenshots

File Type: jpg ppaa_avatar.jpg (21.7 KB, 0 views)
File Type: jpg ppaa_photo.jpg (84.3 KB, 0 views)
File Type: jpg ppaa_profile.jpg (39.9 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 08-14-2010, 12:10 AM
Xencored Xencored is offline
 
Join Date: Sep 2008
Location: UK, Scuny
Posts: 1,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is great!
Just so you know works great with these sizes
avatar 160x160
Profile pic 220x220
Reply With Quote
  #13  
Old 08-19-2010, 10:36 AM
Xencored Xencored is offline
 
Join Date: Sep 2008
Location: UK, Scuny
Posts: 1,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Vitaly any idea why its only allowing "jpeg's" to be used
i did have png and gifs on also. But now there not
Thanks
Reply With Quote
  #14  
Old 08-19-2010, 10:44 AM
Vitaly's Avatar
Vitaly Vitaly is offline
 
Join Date: Apr 2004
Location: Russia, St.Petersburg
Posts: 428
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If i remember correct, that was specially hardcoded for some reasons.

Do you really have PHOTOS in non-jpeg formats? Could you describe use-case?
Reply With Quote
  #15  
Old 08-19-2010, 11:23 AM
Xencored Xencored is offline
 
Join Date: Sep 2008
Location: UK, Scuny
Posts: 1,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Vitaly View Post
If i remember correct, that was specially hardcoded for some reasons.

Do you really have PHOTOS in non-jpeg formats? Could you describe use-case?
Easy'er for members
plus most of my images i use are png's

Gifs for movement's
Thanks
Reply With Quote
  #16  
Old 08-19-2010, 11:35 AM
Vitaly's Avatar
Vitaly Vitaly is offline
 
Join Date: Apr 2004
Location: Russia, St.Petersburg
Posts: 428
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

But this mod is for PHOTOS, and it will never handle animated gifs. That's a complex task, wich require much more coding than exists now.
Reply With Quote
  #17  
Old 08-19-2010, 11:40 AM
Xencored Xencored is offline
 
Join Date: Sep 2008
Location: UK, Scuny
Posts: 1,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Vitaly View Post
But this mod is for PHOTOS, and it will never handle animated gifs. That's a complex task, wich require much more coding than exists now.
It says photos As Avatar
anyways ok am not fussed about animated Gifs but png's/Normal Gif's would be nice if it can be done

Thanks
Reply With Quote
  #18  
Old 08-29-2010, 06:57 PM
okhissabigfish okhissabigfish is offline
 
Join Date: May 2008
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

confused Vitaly, what does this mean??
ACP -> Avatars -> User Pictures Storage Type.

Quote:
I didn't checked mod with DB stirage - it's quite useless and make server load.

PS. Do the same for all.
ACP -> Attachments -> Storage type
ACP -> Groups -> Storage type
novice here.. all other instructions are complete

EDIT___________________ i got it __________________ great! Looks Good...
Reply With Quote
  #19  
Old 08-30-2010, 08:52 AM
mobe00 mobe00 is offline
 
Join Date: Jan 2010
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok ..installed and did everything in the instructions..but got lots of errors when i did the rebuild step. So i reversed it ..took my pictures back to database and uninstalled the mod..but now i cant see any avatars in my threads or on the forum sideblocks. The profiles if i look at them have the profile pic but no avatars. How do i fix this. cause this script messed up my site. Looks like this mod deleted all the avatars in the members profiles

Check http://www.vannihagen.no/forum.php

here are some of the errors i get

Maintenance

Warning: fopen() [function.fopen]: open_basedir restriction in effect. File(/tmp/5d4b9bc533d7a2868670486bfc249e7dtmp_avatar_img) is not within the allowed path(s): (/customers/vannihagen.no/vannihagen.no:/var/www/diagnostics:/usr/share/php) in [path]/includes/functions_avatar.php on line 37

Warning: fopen(/tmp/5d4b9bc533d7a2868670486bfc249e7dtmp_avatar_img) [function.fopen]: failed to open stream: Operation not permitted in [path]/includes/functions_avatar.php on line 37
1

Warning: fopen() [function.fopen]: open_basedir restriction in effect. File(/tmp/1e5c0bf511dd0e1a811bbd7b701cbe31tmp_avatar_img) is not within the allowed path(s): (/customers/vannihagen.no/vannihagen.no:/var/www/diagnostics:/usr/share/php) in [path]/includes/functions_avatar.php on line 37

Warning: fopen(/tmp/1e5c0bf511dd0e1a811bbd7b701cbe31tmp_avatar_img) [function.fopen]: failed to open stream: Operation not permitted in [path]/includes/functions_avatar.php on line 37
2

Warning: fopen() [function.fopen]: open_basedir restriction in effect. File(/tmp/69b15426369b1786bd926a62953f3159tmp_avatar_img) is not within the allowed path(s): (/customers/vannihagen.no/vannihagen.no:/var/www/diagnostics:/usr/share/php) in [path]/includes/functions_avatar.php on line 37

Warning: fopen(/tmp/69b15426369b1786bd926a62953f3159tmp_avatar_img) [function.fopen]: failed to open stream: Operation not permitted in [path]/includes/functions_avatar.php on line 37
7

Warning: fopen() [function.fopen]: open_basedir restriction in effect. File(/tmp/66ac615b21e4c0af5e1a6a5b86877b08tmp_avatar_img) is not within the allowed path(s): (/customers/vannihagen.no/vannihagen.no:/var/www/diagnostics:/usr/share/php) in [path]/includes/functions_avatar.php on line 37

Warning: fopen(/tmp/66ac615b21e4c0af5e1a6a5b86877b08tmp_avatar_img) [function.fopen]: failed to open stream: Operation not permitted in [path]/includes/functions_avatar.php on line 37
13
Reply With Quote
  #20  
Old 08-31-2010, 04:24 AM
Vitaly's Avatar
Vitaly Vitaly is offline
 
Join Date: Apr 2004
Location: Russia, St.Petersburg
Posts: 428
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seems you have php soukhosin patch at dedicated server?
Reply With Quote
  #21  
Old 08-31-2010, 10:06 AM
mobe00 mobe00 is offline
 
Join Date: Jan 2010
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im at a shared server. How do i get the avatars back ? or is that not possible ?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:40 PM.


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.09526 seconds
  • Memory Usage 2,340KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete