there are several user levels that get created in the db with a pligg install... any regular user that registers is considered to have a user level of 'normal' which gives the user rights to submit, vote, comment, etc..
if i wanted to create a site where i want to have only special users be able to do functions like submission how would i turn this off for all levels except that level and admin/god levels?
what files/database tables/fields are a good place to look.. line numbers would be really helpful... thanks guy :)
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| [SOLVED] rights/access according to user level? |
| |||
|
any ideas? basically i want to only restrict the submission process to a certain user level. thanks :)
|
| |||
|
thanks, What I've found is that its better to just restrict access to the page for any user of a non admins / [any predefined user level] users you can eliminate the link in the tpl file by doing a check but the submit.php page can still be accessed.... I have found some code in admin_index.php that seems to do the check im trying to perform: PHP Code: This code seems to decide whether the given user is of level admin or god How and where would I add this code in the submit.php file to do the same check and allow only admins/gods/ my custom user level users to access submit.php thanks! :) |
| ||||
|
Stevux was on the right track. I followed his lead and found a nice way to restrict submission to admin and god users. In submit.php around line 56 you'll find this important switch statement : PHP Code: PHP Code: A further step would be to make this restriction code conditional and to make the condition a user-configurable parameter in /admin_config.php so that god can choose at which user level submissions are allowed. I am sure that many site operators would appreciate this feature.
__________________ Jean-Marc Liotier |
| The Following User Says Thank You to liotier For This Useful Post: | ||
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Submit Antispam Addon v 0.1 | AnAlienHolakres3 | Pligg Modules | 24 | 11-23-2008 09:49 AM |
| [SOLVED] Warning (User Management) | Partyman | General Help | 2 | 09-03-2008 02:14 AM |
| god account now cannot change User Level | Rayden | General Help | 16 | 10-29-2007 12:40 PM |
| access right of admin level user | OnlyBlue | General Help | 4 | 08-12-2007 08:53 PM |
| Need help resetting user level and email | WatchDog | General Help | 4 | 08-22-2006 01:22 PM |





Linear Mode

