Serendipity-Buch

Handbuch für Serendipity bestellen

Das offizielle, umfassende Serendipity-Handbuch für Einsteiger und Profis ist nun im Handel und kann online bei Amazon oder OpenSourcePress, oder auch bei jedem Buchhändler, bestellt werden!

Forum-Information

Before posting about errors, make sure that the answer cannot already be found in our FAQ or by searching this forum!
Posting is restricted to registered users (registering is free and simple!) due to recent spam attacks. When having trouble with this board, contact garvin(-at)s9y(-dot)org.

Board index Plugins AVATAR problem

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

Postby 1blue » Sun Sep 03, 2006 1:12 pm

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
:(

User avatar
azel
Regular
 
Posts: 265
Joined: Thu Apr 21, 2005 4:28 am

Postby azel » Sun Sep 03, 2006 3:03 pm

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

Postby 1blue » Sun Sep 03, 2006 4:15 pm

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: 40
Joined: Fri Feb 10, 2006 9:55 pm

Postby jerwarren » Sun Sep 03, 2006 6:59 pm

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)

User avatar
azel
Regular
 
Posts: 265
Joined: Thu Apr 21, 2005 4:28 am

Postby azel » Sun Sep 03, 2006 7:46 pm

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

Postby 1blue » Sun Sep 03, 2006 10:01 pm

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

Postby 1blue » Sun Sep 03, 2006 10:31 pm

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
:(

User avatar
azel
Regular
 
Posts: 265
Joined: Thu Apr 21, 2005 4:28 am

Postby azel » Sun Sep 03, 2006 10:37 pm

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?


User avatar
judebert
Regular
 
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL

Postby judebert » Mon Sep 04, 2006 6:24 am

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

Postby 1blue » Mon Sep 04, 2006 7:54 am

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: 40
Joined: Fri Feb 10, 2006 9:55 pm

Postby jerwarren » Mon Sep 04, 2006 6:55 pm

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

Postby 1blue » Mon Sep 04, 2006 8:16 pm

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

:)



Return to Plugins

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests