PDA

View Full Version : Store Avatars and ProfilePics use fetch_attachment_path to location


nexialys
09-01-2005, 11:30 PM
strange request, it may be a little challenge for myself, but also a great deal for people that hates to have a lot of directories... example for user #1340:attach_path/1/3/4/0/1.attach
attach_path/1/3/4/0/1.thumb
attach_path/1/3/4/0/avatar1340_1.gif
attach_path/1/3/4/0/picture1340_1.gif
this is my interest... having the avatars and profile pictures stored in the same place we store the attachments... i'm going to do it for myself if i have nobody to help, but it would benefit everybody around, i think.. ;)

someone to help ?

also, it would be a plus if we can use the same technique to call the attachment thumbnails, to stop the hotlinking of images, so instead of shooting the url of the avatars, we display it's content from a file call: like image.php?u=1340&type=avatar

Andreas
09-01-2005, 11:39 PM
Every layer adds overhead, therefore I prefer having directly accesable Images.
Hotlinking can be "stopped" with mod_rewrite