AVATAR problem

Creating and modifying plugins.
Post Reply
1blue
Regular
Posts: 7
Joined: Sun Sep 03, 2006 1:07 pm

AVATAR problem

Post by 1blue »

After I did read all post about problems with avatars
show for authors still don't understand anytihng
and don't understand what need make more if want show author picture
in my blog and even where locate that picture after all
because never visible in my blog

I did try use gravatar plugins, user profiles plugin and...
after all now understand less off time from start
Anybody can help me with simple answer?
Please help...
Wes
:(
azel
Regular
Posts: 265
Joined: Thu Apr 21, 2005 4:28 am
Contact:

Post by azel »

Okay - here is what you do:

Enable the user profiles plugin. In your theme's img folder, drop in an image that says "1blue.jpg" or whatever your name is on your blog. Your image will show up after that.

If you don't want your name to show up under the picture, have a look at this thread: http://www.s9y.org/forums/viewtopic.php ... erprofiles

Hope that helps!
1blue
Regular
Posts: 7
Joined: Sun Sep 03, 2006 1:07 pm

Avatar problem

Post by 1blue »

Hi Azel
I did all that
And I did next in user profiles
File extension ..................jpg
Show user picture within entry?....Yes
Use Gravatar rather than local image?....No
Gravatar picture size....80
Location of default Gravatar image.....http://www.1blueplanet.net/avatar/1blueplanet.jpg

Maximum Gravatar rating.....R
Show comment count?....................append to comment body


And picturee is in folder:
http://www.1blueplanet.net/avatar/1blueplanet.jpg

and never show up
:(
jerwarren
Regular
Posts: 42
Joined: Fri Feb 10, 2006 8:55 pm

Post by jerwarren »

Maybe your style template doesn't support user images?

take a look at cookingwithkooks.org, that site is using the avatar plugin (but is using gravatars rather than local images)
azel
Regular
Posts: 265
Joined: Thu Apr 21, 2005 4:28 am
Contact:

Post by azel »

If you want to use your Gravatar as opposed a local image, you should set Use Gravatar rather than local image? to Yes. But be aware that it looks for the Gravatar associated with your email address at the gravatar.com site.

If you're trying to get a local image on your server, it needs to be located in your theme's image folder. Just drop your 1blueplanet.jpg in your Bex theme/img folder.
1blue
Regular
Posts: 7
Joined: Sun Sep 03, 2006 1:07 pm

Avatar problem

Post by 1blue »

Hi Azel
I really did try all of this
And even reinstall plugins for avatars (gravatar)
I located pics in img folder of template
and nothing after all

:(

really is crazy
All in s9y works so great and that crazy avatar never worked to me
Really no understand
1blue
Regular
Posts: 7
Joined: Sun Sep 03, 2006 1:07 pm

avatar problem

Post by 1blue »

why sombody don't make some normaly plugin for avatar show
where users can upload own image like in forum
I really don't understand why thisplugin doesn't work at me never
I would like use local images and not gravatar and seems like no possible
:(
azel
Regular
Posts: 265
Joined: Thu Apr 21, 2005 4:28 am
Contact:

Post by azel »

Oops.....I think your authorpic must be named exactly the way it displays in your blog? Sorry I didn't specify that. ^_^

So you should have an image called "1BluePlanet.jpg" as your authorpic, if you are going that route. I installed the plugin but I didn't try the Gravatar settings, but perhaps it might be the same case? Maybe 1BluePlanet.jpg for your avatar folder?
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

I just checked the Gravatar plugin, and I don't see any place it loads images from the Serendipity directory. I see support for Gravatar and favicons from websites, but that's it.

That said, if you find the end of function pickAvatar(), around line 264, where it says

Code: Select all

        } elseif ($use_fallback) {
            $this->pickAvatar($othertype, $eventData, $cache, false);
        }
and change it to

Code: Select all

        } elseif ($use_fallback) {
            if (serendipity_getTemplateFile($eventData['author']) === false) {
                $this->pickAvatar($othertype, $eventData, $cache, false);
            } else {
                // Local image was found!  Add to comment
                $eventData['comment'] = '<img src="' . serendipity_getTemplateFile($eventData['author']) . class="favatar" title="Favatar" style="float: right; margin: 2px" />' . $eventData['comment'];
            }
        }
That should at least allow you to use local images. It doesn't give users a way to upload them; I'm afraid until someone decides to overhaul the plugin, you'll have to do that manually.
Judebert
---
Website | Wishlist | PayPal
1blue
Regular
Posts: 7
Joined: Sun Sep 03, 2006 1:07 pm

avatar problem

Post by 1blue »

I did it and..
Now me got next error

Parse error: syntax error, unexpected T_CLASS in /home/bluenet/public_html/plugins/serendipity_event_gravatar/serendipity_event_gravatar.php on line 269

and in line 269 is

$eventData['comment'] = '<img src="' . serendipity_getTemplateFile(

Any suggestion?

:(
jerwarren
Regular
Posts: 42
Joined: Fri Feb 10, 2006 8:55 pm

Post by jerwarren »

OHHHH. You want Authorpic.. Do you have THAT plugin installed? The gravatar/favatar plugin is only for COMMENTS. The file that's named like your username and in your templates folder is called by the Authorpic plugin, not that gravatar/favatar plugin.

Try installing authorpic and see if that does what you want.
1blue
Regular
Posts: 7
Joined: Sun Sep 03, 2006 1:07 pm

avatar problem

Post by 1blue »

I did it finnaly
Just needed reinstall user profiles plugin and now works
Seems was some mistake there
Thank you for help to everyone
many gretings
See you online

:)
Post Reply