Page 1 of 1

Only Admin To Edit Optional Data-Script Register Users

Posted: 08 Oct 2016, 13:42
by jaypzzle
How can I set the admin to be the only capable of making changes to Edit Optional Data, while giving users option to change their passwords and photos.

I also like to remove Additional Data, Messages and Favorites

Only Admin To Edit Optional Data-Script Register Users

Posted: 08 Oct 2016, 16:04
by Admin
Hello,
You can make those modifications in the "usrbody.php" file.
Set to add the form for optional data (with id="usrform2") if $_SESSION['rank'] is 9.
If you want to remove the html elements for Additional Data, Messages and Favorites in that file, you have to make other changes in the class.UserPage.php file so the script to not use the references to those elements in the sql queries.

Only Admin To Edit Optional Data-Script Register Users

Posted: 08 Oct 2016, 22:51
by jaypzzle
Please tell me how to do that..

Only Admin To Edit Optional Data-Script Register Users

Posted: 09 Oct 2016, 09:18
by Admin
The simplest way to not display Additional Data, Messages and Favorites, it is to add: style="display:none;" in the html tags of these elements in "usrbody.php".
For other changes in "class.UserPage.php", I not involve.