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)
-   -   Profile Enhancements - Photo As Avatar (https://vborg.vbsupport.ru/showthread.php?t=245816)

Vitaly 07-02-2010 10:00 PM

Photo As Avatar
 
1 Attachment(s)
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.

RokuDaMerlin 07-04-2010 08:45 AM

pls upload the product + files here !!! the other run not -.-

Vitaly 07-04-2010 08:55 AM

Ups... sorry for mistake. Missed by accident. Fixed.

RokuDaMerlin 07-04-2010 09:04 AM

i have now install it ..
where can i say .. make all avatars round now ?
i dont fint a option for this ..

the other run verry good ;)

good job ;)

Vitaly 07-04-2010 09:23 AM

Go to ACP -> Options -> User Pucture Options. Set rounding you need. Check with new upload. If ok - rebuild avatars in ACP -> Maintenance -> Update Counters.

Updated mod description (how to install).

RokuDaMerlin 07-04-2010 09:30 AM

when i click the update counters "Rebuild Profile Photo Avatar Thumbnails"

come this

PHP Code:

Warnungfopen(../image.php?u=70&dateline=&type=profile) [function.fopen]: failed to open streamNo such file or directory in [path]/includes/functions_avatar.php (Zeile 36)
70 


Vitaly 07-04-2010 09:44 AM

1. Have you uploaded all files from ZIP or only imported XML ?
2. Move avarats to file system, don't keep those in database.

RokuDaMerlin 07-04-2010 09:50 AM

hmm where can i say the vb .. filebase not database save for avatars ?

hmm
i have all files upload !

Vitaly 07-04-2010 10:06 AM

ACP -> Avatars -> User Pictures Storage Type.

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

RokuDaMerlin 07-04-2010 10:14 AM

looks good thanks ;) i love it !! good job

Xencored 08-14-2010 12:10 AM

This is great!
Just so you know works great with these sizes
avatar 160x160
Profile pic 220x220

Xencored 08-19-2010 10:36 AM

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

Vitaly 08-19-2010 10:44 AM

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?

Xencored 08-19-2010 11:23 AM

Quote:

Originally Posted by Vitaly (Post 2086238)
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

Vitaly 08-19-2010 11:35 AM

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.

Xencored 08-19-2010 11:40 AM

Quote:

Originally Posted by Vitaly (Post 2086268)
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 :D
anyways ok am not fussed about animated Gifs but png's/Normal Gif's would be nice if it can be done

Thanks

okhissabigfish 08-29-2010 06:57 PM

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...

mobe00 08-30-2010 08:52 AM

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

Vitaly 08-31-2010 04:24 AM

Seems you have php soukhosin patch at dedicated server?

mobe00 08-31-2010 10:06 AM

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

Vitaly 08-31-2010 12:02 PM

Only from backup.

I've recorded bug with shared hosting, but can't promiss fast fix.

lcbd 09-06-2010 08:07 PM

Vitaly, would you consider extending your addon to work like this.

1. When a member uploads a profile photo that you display the photo.
2. However, when a member has uploaded an avatar that you then display the avatar.

Note a, thus the profile photo is only used if the avatar isn't uploaded.
Note b, thus the avatar image takes preference over the profile photo if both exists.

Kind regards
Emmanuel van der Meulen

Videx 09-07-2010 12:57 AM

I'm wondering what's to stop a user from uploading an avatar for the profile pic? That's the first thing I would do to get around this.

Then again, I can count on one hand the number of my members that have bothered to upload a profile pic. And they're all smart enough to use that as an avatar if they wanted to.

tattooz 09-13-2010 08:45 PM

Love the idea of the mod but how do I change the text? Not only is it spelled wrong but the warning makes no sense. You are telling people NOT to upload an image? WTF??

"You can upload you real foto, to allow visitors see you. In this case, your face MUST be well seen. Please, check result after upoload.

Warning! Don't upload image, that violate requirements! In case of violation, your account can be locked"

tattooz 09-13-2010 08:50 PM

Quote:

Originally Posted by tattooz (Post 2097770)
Love the idea of the mod but how do I change the text? Not only is it spelled wrong but the warning makes no sense. You are telling people NOT to upload an image? WTF??

"You can upload you real foto, to allow visitors see you. In this case, your face MUST be well seen. Please, check result after upoload.

Warning! Don't upload image, that violate requirements! In case of violation, your account can be locked"

I found it and commented out the lines.
Thanks

tattooz 09-17-2010 07:43 PM

Love the mod, only problem I see is when you go into the profile and scroll down to "friends", it is not showing any avatars. I did the rebuild thing a couple times, but no go.

Any ideas?

southie 10-02-2010 10:41 AM

i installed the mod, it works on my member.php pages for the user profiles and everywhere else, but on the forum side blocks and on other mods i have installed that use avatars for comments its not showing the profile pics. any way to fix this ?

southie 10-02-2010 08:51 PM

nm. i got it working now. nice mod marked it as installed and about to vote it now. would love to see more profile mods

southie 10-03-2010 04:49 AM

i see a bug when a user uploads a profile photo

this error msg appears on the redirect page

Warning: fopen(../image.php?u=150&dateline=1286082305&type=p rofile) [function.fopen]: failed to open stream: No such file or directory in [path]/includes/functions_avatar.php on line 36

Fusion2 10-23-2010 02:38 PM

If someone doesnt upload a photo, does it use the default avatar or user-selected avatar?

Fusion2 10-30-2010 01:44 PM

Quote:

Originally Posted by southie (Post 2106228)
i see a bug when a user uploads a profile photo

this error msg appears on the redirect page

Warning: fopen(../image.php?u=150&dateline=1286082305&type=p rofile) [function.fopen]: failed to open stream: No such file or directory in [path]/includes/functions_avatar.php on line 36


I am getting several of the same errors everytime i try to do the rebuild function...

gmptp 08-25-2011 04:10 AM

I just tried also same error below for v3.8.7 (same goes to v4 as per this thread similar error), will the developer come forward to advice please............

--------
Warning: fopen(../image.php?u=1&dateline=1314244202&type=pro file) [function.fopen]: failed to open stream: No error in [path]\includes\functions_avatar.php on line 36

Warning: fopen(/tmp/c20b4b7e7348d88006f179d1f0cbc252tmp_avatar_img) [function.fopen]: failed to open stream: No such file or directory in [path]\includes\functions_avatar.php on line 37


i've already move from dbase to file system for avatar and attachment and social group but still getting line 36/37 error, what could be wrong? help.............


---------------
PS. Do the same for all.
ACP -> Attachments -> Storage type
ACP -> Groups -> Storage type
https://vborg.vbsupport.ru/showt...=245816&page=2

sudhir 09-01-2012 10:55 AM

this mod is not working on my forum

jjameson 01-10-2013 09:47 PM

Is this mod compatible with 4.2? OR is there another way to use profile pics as avatars?

onespot 03-10-2013 11:03 PM

Doesn't work :-\

marianoaran 07-16-2013 12:05 AM

Hello, I installed this in vB 4.2.1 and it seems to work ok, but I have to manually go to ACP> Maintenance > General Update tools > Rebuild Profile Photo Avatar Thumbnails for the avatars to show.

Is this supposed to update the avatars right after the user uploads their photo profile?

Bubble #5 08-13-2013 04:55 PM

Not sure if this is working correctly or not for 4.2.1

It's partially there but not formatted like in your example. There is no photo_samle.gif showing up.

Any help would be appreciated. :)

Bubble #5 08-14-2013 11:48 PM

Just verified, this hack is NOT working on 4.2.1. Not only that but it will prevent animated avatars from working, and mess up your settings because the avatar link will no longer show up. See this thread for more information;

http://www.vbulletin.com/forum/forum...r-issues/page2

tbworld 08-15-2013 12:42 AM

Quote:

Originally Posted by Bubble #5 (Post 2438922)
Just verified, this hack is NOT working on 4.2.1. Not only that but it will prevent animated avatars from working, and mess up your settings because the avatar link will no longer show up. See this thread for more information;

http://www.vbulletin.com/forum/forum...r-issues/page2

If you look at the last time a mod is updated you can summarize that it is not up to date. If your going to state that it does not work in the current version, it is better that you state what does not work in the current version. instead of a blanket statement (I know you tried). It is kind of given that styles might be askew in an older modification, that doesn't mean the modification does not have true value.

The gracious author clearly states that it does not work for animated avatars. You checking the modification out and giving feedback is admirable, but be careful that you are not discrediting our awesome free mod authors.

To the right person this mod is just a few simple fixes away from being very useful.

Thanks for the ear. :)

Bubble #5 08-15-2013 12:53 AM

Quote:

Originally Posted by tbworld (Post 2438932)
it is better that you state what does not work in the current version.

Which is precisely why I left a link explaining the issue ;)


All times are GMT. The time now is 06:05 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.02070 seconds
  • Memory Usage 1,830KB
  • 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
  • (1)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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