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
-
- Posts:4
Only Admin To Edit Optional Data-Script Register Users
Admin
Posts:805
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.
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
Posts:4
Please tell me how to do that..
Admin
Posts:805
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.
For other changes in "class.UserPage.php", I not involve.