Login     Sign up
Photo Tagging Integration: How do you call up (just the owner of a photo) in photos.php?
Karen (@karen)
Join date: Aug 22nd 2010
Community posts: 19
View Profile
Send Message

Hi I'm working on a Photo Tagging script like in Facebook and I can't figure out how to limit Tagging tools to the owner of the photo. Right now I'm using:

if ($client['id'] == $row['uid'] && allow_access(2))

in photo.php to somewhat restrict access but every single user of the site can still access each others Photo Tagging tools -which I don't want. I want only the owner of the photo to be able to Tag his or her photos. Any help would be appreciated. :)

164 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

the allow_access(2) is not necessary, because that is a logged in general member and always have a $client['id']

164 months ago
Karen (@karen)
Join date: Aug 22nd 2010
Community posts: 19
View Profile
Send Message

Thank you Falcone! One more: How would I do the same thing (ensure that only the owner have access) from the template page.tpl.php page?

I just realized that the "app" i'm working on needs to load a specific javascript file only for the owner of the account, not any member. Thanks, you are da man!

164 months ago