Only Admin To Edit Optional Data-Script Register Users

jaypzzle
Posts: 4

Only Admin To Edit Optional Data-Script Register Users

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

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.

jaypzzle
Please tell me how to do that..

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.

Adv. Posts: 01

Similar Topics