im using the gravatar extension but no default image is showing, i right click the image thats supposed to be there and the image path is correct as seen by going directly to the url ie. http://localhost/image.jpg but in the applixcation is shows a blank image any isdeas
Gravatar supports some default missing images. If you set the gravatar component propert ‘default’ to null or an empty string the default blue G avatar will be shown for the users who don’t have one. You can also use “identicon” “monsterid” and “wavatar” as default avatars.
what if i want to use a local avatar in case the user does not have one
Then just enter the full path url for that avatar image.
and i have done that, still shoes no image. but when i right click, view image it shows.
heres my view
'email' => $model->email, // email to display the gravatar belonging to it
'hashed' => false, // if the email provided above is already md5 hashed then set this property to true, defaults to false
'default' => 'http://127.0.0.1/site/images/avatar.jpg', // if an email is not associated with a gravatar this image will be displayed default http://www.mysite.com/default_gravatar_image.jpg',
// by default this is omitted so the Blue Gravatar icon will be displayed you can also set this to
// "identicon" "monsterid" and "wavatar" which are default gravatar icons
'size' => 120, // the gravatar icon size in px defaults to 40
'rating' => 'PG', // the Gravatar ratings, Can be G, PG, R, X, Defaults to G
'htmlOptions' => array( 'alt' => 'Gravatar Icon' ), // Html options that will be appended to the image tag
I just went a head and tested this to see if that actually worked with an images located on localhost and it did for me. So make sure you use the correct image URL. When you copy and paste that image into the browser does that work?