bbPress Plugin Browser »

Avatar Upload (0.8.3)

Download

Version: 0.8.3

Other Versions

Last Updated: 2011-7-8

Requires bbPress Version: 0.8.2 or higher

Compatible up to: 0.8.2.1

Author Homepage »

Plugin Homepage »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(21)

Your Rating

Author: Louise Dade


  1. Hi I have installed the plug in following forum http://peopleandlanguages.com/ which is alpha 1.0- I think did all instructions you have written correct. I can see the avatar tab under the user profile (mine the admin for example). However, when I hover over the avatar tab it wants to bring me to the http://peopleandlanguages.com/profile/admin/avatar. However, when I click on it, it brings me to the forum that is http://peopleandlanguages.com/. Therefore, something is wrong as I do not have any option to upload anything. Thanks, Mark

    Posted: 3 years ago #
  2. I don't think anyone has gotten this plugin to work on the alpha yet. The alpha is too new and this plugin is old. There are probably several compatibility problems, beyond the one you see.

    You might just have to stick with gravtars for awhile.

    Posted: 3 years ago #
  3. ck thanks for the quick reply. BBpress is lite and fast and even at this jucture in its development, I prefer it to any other forum software. Thanks

    Posted: 3 years ago #
  4. A very small suggestion for the next release :

    It's more correct to use '$user->user_nicename' to create the avatar file on the server instead of '$user->user_login'.

    Posted: 3 years ago #
  5. Claudiuro

    Member

    Hi,
    I have a question. If i set the permissions for the folder where avatars are uploaded to 777 (meaning the world would get right to read/write/execute), the uploaded avatar images show and everything works fine. If I remove the right to execute from world (666), then the avatar images don't show anymore. Is this a security hole to leave that folder with 777? In this case, is there a workaround for it?

    Thank you.

    Posted: 3 years ago #
  6. 777 doesn't mean "world writable" it means "server writable" or anyone on the server can read/write to it. It's a necessary workaround unfortunately since PHP (and apache) runs as a different user than your account.

    There is one other way and it's much more complex and I don't think it works on windows servers (switching the PID to the local account when writing). I attempt to use this technique in bb-attachments and it could be adopted here but won't work for everyone.

    Posted: 3 years ago #
  7. Claudiuro

    Member

    Thank you _ck_, always the most reliable source :).

    Posted: 3 years ago #
  8. sawndiddle

    Member

    I was wondering, is there a way to have this addon, but if there is no uploaded icon, it uses their gravatar icon, and if no gravatar, it uses their default?

    Posted: 3 years ago #
  9. 666 as the plugin states works for uploading but does not show avatars. I'll try 777...

    Posted: 3 years ago #
  10. pircy

    Member

    It will works fine, except;
    There is allways the same link to the gravatar ;http://www.gravatar.com/avatar/70b93c476a76a47be5c59f7ad00e7741?s=80&d=http%3A%2F%2Fwww.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D80&r=g

    Even i have uploaded an avatar... i see the link to gravatar and not to my picture...

    What's the problem here ?

    tnx

    Pol

    Posted: 3 years ago #
  11. I'll throw my hat in the request pool for a fix for this but no rush, hopefully the new users will take to gravatar.

    I'm on the latest stable bbpress version. The upload worked like a charm after moving the files around in the server and making the uploads folder writeable but no luck on getting the avatar to actually show.

    Posted: 3 years ago #
  12. The "Additional Info" is not too detailed.

    Here is the instructions on how to get the plugin (currently) on your bbPress site:

    1. Download and upload the plugin to your bbPlugins directory.
    2. Activate the plugin in the bbPress Admin section.
    3. Follow the file movement instructions:
    In the "additional-files" folder (inside this Avatar Upload plugin directory) there is several files. These need to be moved elsewhere.

    • Move the entire "avatars/" folder to your bbPress root directory. (Including the "default.png" inside.)
    • Move the "avatar-upload.php" to the bbPress root directory.
    • Move the "avatar.php" (inside the "my-templates" folder) to your template(s) (theme(s)). Example: Move "my-templates/avatar.php" to "forums/bb-templates/kakumei/" (So it is like "forums/bb-templates/kakumei/avatar.php".)

    I hope this helps any clueless people :D

    Posted: 3 years ago #
  13. I did do that, but same thing :(

    Posted: 3 years ago #
  14. Hello everyone!

    I started using this plugin 1 year ago, i really like it. I never had problems with it until now.

    It activates nicely and "Avatar" button shows up in profile. However, when i press it, the link takes me to the front page instead of avatar uploading page. I checked the link, it looks like this:
    http://www...my website/forum/profile/...my profile.../avatar

    to be more exact:
    http://www.tyrabhakti.lt/forumas/profile/neziniux/avatar

    I reinstalled the plugin 3 times, making sure that files are in their respective directories. But the "Avatar" button and "Upload Avatar" link (inserted into the template) keep on taking me to the forum front.

    Am i missing something? Luckily the old avatars from previous installations show up at least. Thanks in advance.

    Posted: 3 years ago #
  15. To get Avatar tab in the profile working under Alpha-2 -
    edit avatar-upload.php in the bbpress root
    change line 7 from
    bb_auth(); // logged in?
    to
    bb_auth('logged_in'); // logged in?

    For increased compatibility in templates and maintain the alternative to use the default gravatars from settings, you want to experiment with this code in the plugin itself:
    on about line 187 - insert the following code:

    function avatarupload_display_filtered ($avatar, $id_or_email, $size, $default) {
    	if( $a = avatarupload_get_avatar(bb_get_user_id($id_or_email),1,0) )
    		{
    		return '<img src="'.$a[0].'" width="'.$a[1].'" height="'.$a[2].'" alt="'.$a[4].'" class="'.$class.'" />';
    		}
    	return $avatar;
    }
    add_filter('bb_get_avatar','avatarupload_display_filtered',10,4);
    Posted: 3 years ago #
  16. Arggg - cut and pasted too soon - replace the code above with

    function avatarupload_display_filtered ($avatar, $id_or_email, $size, $default) {
    	if( $a = avatarupload_get_avatar(bb_get_user_id($id_or_email),true,true,false) )
    		{
    		$avatar = preg_replace('/src=".*?"/', 'src="'.$a[0].'"', $avatar);
    		$avatar = preg_replace('/style=".*?"/', 'height="'.$size.'" width="'.$size.'"', $avatar);
    		}
    	return $avatar;
    }
    add_filter('bb_get_avatar','avatarupload_display_filtered',10,4);
    Posted: 3 years ago #
  17. Hey gang,
    I've got Avatar Upload working with .9.0.2 unless someone tries to upload an image greater than my width & height settings.

    I've got my avatars folder set to 777 for permissions. But basically when you click the upload button it takes you to a blank page. Has anyone else run into this? I definitely think its a permissions issue somewhere but I can't seem to figure out where.

    My development server doesn't have this problem at all. Suggestions?

    Thanks!

    Posted: 3 years ago #
  18. Works like a champ for me. Coming over from phpBB, this plugin is like a dream come true. ;)

    Posted: 3 years ago #
  19. JamesS

    Member

    Just installed the plug in and all seems to work well except the avatars don't actually show in the posts. I upload a shot, it confirms the upload and shows the image on the avatar upload page of my profile. The avatar does not show on the main profile tab, but does show when I navigate back to the avatar tab. Also, the avatars are appearing in the avatars directory.

    Any ideas?

    Thanks!

    Posted: 3 years ago #
  20. JamesS

    Member

    Never mind, I'm a fool.

    Posted: 3 years ago #

RSS feed for this topic

Add a Comment »

You must log in to post.