Need help?, Having trouble? • View our Documentation for Guides, Standards and Functions • Name and Organize your Topics and Content correctly in the corresponding Forums for best support results • Attaching Log Files and Screenshots when reporting issues will help • Provide with an URL to live example if one exists • Please read the How to Report an Error post • Please read and comply with the Code of Conduct
I can't use those infusions because I have a lot of extra work to do what I want with this. I want only a link on the photo page added by user called "test" that he can edit his own photo. Same edit way that administrator have in administration panel. In "/administration/photos.php" I'm sure the code that I need exists there, but I don't know what part. Any help?
Copy file administration/photos.php, delete code congruent with checking access for Admin (that, users have access for the file) and edit code that User and Admin can edit his own photo. Ah, and you must add field in database that then will be save ID User who add photo (and in submitton.php add code for save ID User). Sorry, my english in written is not perfect :P
if (!defined("iAUTH") || !isset($_GET['aid']) || $_GET['aid'] != iAUTH) { redirect("../index.php");}
Looks like this is the line for checking. What can i do to allow every member have acces at editing? If I delete it I can't get "aid=xxxxxxxx" in the link..
Need help?, Having trouble? • View our Documentation for Guides, Standards and Functions • Name and Organize your Topics and Content correctly in the corresponding Forums for best support results • Attaching Log Files and Screenshots when reporting issues will help • Provide with an URL to live example if one exists • Please read the How to Report an Error post • Please read and comply with the Code of Conduct