News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

How to give my site access to avatars in the attachments folder.

Started by Touti, October 27, 2009, 08:35:21 PM

Previous topic - Next topic

Touti

Hi all,

I've created a block in my tinyportal that shows a google maps with spots where my members live.  Using the custom_profile_fields mod I added fields to the profiles for my members to enter a name and the coordinates they want to show on the map.

I also want to show their avatar in the info window on the map when people click on a spot.  I've got it working for members using a SMF avatar of those who put a link but it's not working when members uploaded their avatar.  The reason is that access to the attachments folder is blocked by the .htaccess file.

Although this is not a problem specific to SMF, I'm hoping that someone here can help me fix that.  How can I modify the .htaccess files for my own domain to have access to the avatars in it ?


Touti

Nevermind, I figured out how to get it from the 'action=dlattach;attach=###;type=avatar"  command.

Advertisement: