Photo Tagging Integration: How do you call up (just the owner of a photo) in photos.php? |
| |||
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. :)
|
| |||
the allow_access(2) is not necessary, because that is a logged in general member and always have a $client['id']
|
| |||
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!
|