Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: remove all user options
aratgt
Junior Member

Posts: 4
Registered: 12/18/2006
Location: Georgia Tech
Member Is Offline
posted on 12/18/2006 at 04:20 PM Reply With Quote
remove all user options


Is there a way to remove the delete/edit options for all users?
I need users only to be able to add events.
I want the admin to be the only group that can delete/edit events.
Thanks.
View User's Profile View All Posts By User U2U Member
chronister
Member

Posts: 23
Registered: 8/24/2006
Member Is Offline
posted on 12/20/2006 at 03:39 AM Reply With Quote

try looking in the users config page.

create a user and then assign the permissions you want. add / delete / edit others ...

simple
View User's Profile View All Posts By User U2U Member
aratgt
Junior Member

Posts: 4
Registered: 12/18/2006
Location: Georgia Tech
Member Is Offline
posted on 12/20/2006 at 05:03 AM Reply With Quote

Yes I did that but the delete option is for the admin to delete the user. It does not
affect the delete/edit function for the user. I have one user, say Staff, and lots of
people that log in as that user to add events. I only want user Staff to be able to add events.
I want to be the one that determines whether the event should be deleted/edited.
If I could find the code to remove [delete] [edit] from the user page would help.
Because the passwords are not encrypted, I don't allow users to create their own
identities. So I have all users log in as the same person and I don't want one person
to be able edit/delete another persons' (logged in as the same user) event.
Hope I'm not confusing the issue. Thank you for the quick reply and I'll keep plugging
away to find the solution.
View User's Profile View All Posts By User U2U Member
aratgt
Junior Member

Posts: 4
Registered: 12/18/2006
Location: Georgia Tech
Member Is Offline
posted on 12/20/2006 at 02:45 PM Reply With Quote

I found the proper code and commented it out. Problem solved.
Page works as requested.
View User's Profile View All Posts By User U2U Member
HappyFeet
Junior Member

Posts: 4
Registered: 12/20/2006
Location: Eastern USA
Member Is Offline
posted on 12/20/2006 at 11:41 PM Reply With Quote

aratgt,

Could you give the file name you edited and maybe past the code you edited also for a little more help.

Thanks in advance
View User's Profile View All Posts By User U2U Member
aratgt
Junior Member

Posts: 4
Registered: 12/18/2006
Location: Georgia Tech
Member Is Offline
posted on 12/22/2006 at 06:26 AM Reply With Quote

The file was calendar.php
I changed the command in lines ~722 and 723 to read

if($a_groups[$__SESSION__['group']]['ev_edit'] || $__SESSION__['admin'] == $

i.e., at the end of the line ['admin'] used to read ['user']
This may not be the technically correct way to fix my problem, but
the page displays the way I want it to now.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Free/Trial Script Download Free Download
Product Documentation Documentation
Documentation page
Change Log
Support Forum Support Forum
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004