Inside Paulo Abrantes' head
[ start | index | login or register ]
start > comment-start > 2007-04-07 > 1-13

1-13 commented start/2007-04-07/1

Created by AdaHsu. Last edited by AdaHsu, 3 years and 146 days ago. Viewed 1,724 times. #4
[diff] [history] [edit] [rdf]
labels
attachments
Well I think the simplest implementation is going for a convention, for example, upload an avatar to the user's snip with name avatar.png or .jpg or any other image extension. Then the user object would have hasAvatar() which would return true on and on the JSP we would do if snip.owner.avatar is true then show the image.

Seems more easy, >>http://site.gravatar.com/site/implement says use a <img src="http://www.gravatar.com/avatar.php?gravatar_id=<%= MD5( email ) %>" alt=""> will show the image which saved at gravatar.

so, when show the comments, check snip.owner.avatar to decide write a code '<div class="gravatar"><img src="...."></div>' to his own comment or not.

67 comments (by pabrantes, AdaHsu, derjohn) | post comment
Who am I?
paulo-roca2My name is Paulo Abrantes AKA pabrantes and I'm a software developer. I'm currently employed at >>CIIST working as a Java developer in >>FenixEDU.

This blog is mostly about Java programming, domain driven design and snipsnap bliki developing. Everything written in this blog is my personal opinion and it may not reflect the opinions of my employer and co-workers.


Blog subscription
subscribe by rss subscribe by email

Links
>> Home
>> Paulo's Profile
>> Post History
>> Add to Technorati Favorites
>> Paulo's Photo Gallery
>> WishList
>> Posting without Login

Search Blog
Fellow Bloggers

Recent Posts

Blog: Almost an year since last post
Java Programming: Bytecode Injection
Intermission: Sorry For Downtime
Software Developing: Studying The Bliki Domain Model
SnipSnap Developing: Trying to settle a roadmap
System Administration: Load Balancing with Apache
Blogging: Two years have passed
Software Developing: The SnipSnap Saga
Java Programming: Getting your code spicy with Groovy
Software Developing: Fluent Interfaces
Software Developing: Implementing a ShoutBox on SnipsSnip
Software Developing: SnipSnap, SnipIt and SnipSnip
Java Programming: Proxies and Access Control
Java Programming: Proxies and References
Java Programming: References' Package

For older posts, please refer to post-history for a complete Post History

Logged in Users: (0)
… and 4 Guests.
This is a modified version of snipsnap.org created by >>Paulo Abrantes