Hi there...
I've been wondering if the following situation is possible...
Say you have a website for a bar and you have comments on the news, or other pages and a guestbook installed for the main site overall, but the DJ of the bar also has his own private page(s) with his own guestbook and news with comments etc.
Now... I can add the DJ to be able to edit his own pages, by selecting him as an additional editor for the specific pages - so that is all fine, however I was wondering how I could allow him to manage his OWN guestbook, news and comments (plus, maybe, other stuff, such as polls, uploads, gallery/album etc etc) WITHOUT him having access to the rest of the items on the site...?
As I can see, you can set a usergroup and give that usergroup access to only the module(s) you want them to use, however they will be able to access ALL the items that the module controls. I was wondering if it's possible to only allow access to one CATEGORY within the module, so basically speaking, the user in group 'DJ' would be able to access 'Guestbook' 'News' 'Comments' etc, but only items in the category 'DJ' within the modules... so he could only edit the DJ guestbook, DJ comments or DJ news (and its child categories)
I hope I've explained myself well enough...!
Any input greatly appreciated.
Setting individual permissions for modules - is this possible?
-
- Forum Members
- Posts: 206
- Joined: Tue Oct 25, 2005 4:50 pm
Re: Setting individual permissions for modules - is this possible?
A category permission like you want is IMHO curretly not possible.
The other/first way you suggested sounds better (install "personalized" modules for that) - it needs IMHO only some renamings inside module (modules name, folder name, permission text, database table name).
But be sure you are a advanced CMSms user (and know, what you have to do)
...
The other/first way you suggested sounds better (install "personalized" modules for that) - it needs IMHO only some renamings inside module (modules name, folder name, permission text, database table name).
But be sure you are a advanced CMSms user (and know, what you have to do)

-
- Forum Members
- Posts: 206
- Joined: Tue Oct 25, 2005 4:50 pm
Re: Setting individual permissions for modules - is this possible?
Ah... cyberman... once again you are a fountain of knowledge...
Now that is interesting...
RE: It not being possible, it would be an interesting one to add to the suggestions list...
RE: Level of CMSms... I would probably class myself as a medium rather than advanced user.
I'm quite interested in giving that a go... I can see what you are getting at - a case of renaming anything 'Guestbook' in the 'Guestbook' module, to 'DJ Guestbook', for example, yes?
Would this be easy to do? What I mean is, is there a definitive list of all that needs to be edited or is it quite clear to see what needs to be editied to do it?
Now that is interesting...
RE: It not being possible, it would be an interesting one to add to the suggestions list...
RE: Level of CMSms... I would probably class myself as a medium rather than advanced user.
I'm quite interested in giving that a go... I can see what you are getting at - a case of renaming anything 'Guestbook' in the 'Guestbook' module, to 'DJ Guestbook', for example, yes?
Would this be easy to do? What I mean is, is there a definitive list of all that needs to be edited or is it quite clear to see what needs to be editied to do it?
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Setting individual permissions for modules - is this possible?
There's no definitive list, but you'll need to:
a) Change anything that says 'GuestBook' to 'DJ_Guestbook' (spaces may cause problems in sone instances)
b) Change the table names
c) Check the install and upgrade routines and change any custom created permissions
d) Edit the lang file(s) as appropriate
e) Change the folder name from 'GuestBook' to 'DJ_Guestbook'
f) Change the GuestBook.module.php to DJ_Guestbook.module.php
a) Change anything that says 'GuestBook' to 'DJ_Guestbook' (spaces may cause problems in sone instances)
b) Change the table names
c) Check the install and upgrade routines and change any custom created permissions
d) Edit the lang file(s) as appropriate
e) Change the folder name from 'GuestBook' to 'DJ_Guestbook'
f) Change the GuestBook.module.php to DJ_Guestbook.module.php
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
-
- Forum Members
- Posts: 206
- Joined: Tue Oct 25, 2005 4:50 pm
Re: Setting individual permissions for modules - is this possible?
Thanks!
I have a little free time coming up over the next few weeks, so I shall give it a go...
Just another thought, would there be a way of editing an exported XML file so that you could actually install it as DJ_Guestbook, rather than Gueastbook? Or if you downloaded the files and then edited the method.install.php file so it installed it all as DJ_Guestbook?...
I have a little free time coming up over the next few weeks, so I shall give it a go...
Just another thought, would there be a way of editing an exported XML file so that you could actually install it as DJ_Guestbook, rather than Gueastbook? Or if you downloaded the files and then edited the method.install.php file so it installed it all as DJ_Guestbook?...
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Setting individual permissions for modules - is this possible?
Not easily, the code is all base64 encoded so that the characters don't do weird things.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Setting individual permissions for modules - is this possible?
There's an easier way to get a modified xml module filedjkirstyjay wrote: would there be a way of editing an exported XML file so that you could actually install it as DJ_Guestbook, rather than Gueastbook?

Install a local server like xampp from apachefriends.org. Install CMSms there. Install modules you want there. Modify modules to your needs. Now you can go to Extensions > Modules in admin area. There you will found an export function for every module (orange XML button in right column).
-
- Forum Members
- Posts: 206
- Joined: Tue Oct 25, 2005 4:50 pm
Re: Setting individual permissions for modules - is this possible?
Yes, I did that... but the XML file was encrypted, as Calguy mentioned.
I wanted the unmodified XML file, so I could see if I could modify it as an XML and then it would install automatically with the modifications... That way if others wanted to do the same as me in the furture, I could always publish the code with the modified bits highlighted or something, so that others would just have to do a search and replace and install the the different mods as whatever names thet want... I may want DJ_Guestbook or DJ_Comments, but others might want to run several websites on the same CMS for example, and have a different guestbook, news, etc, for each website only editable by the website owner...
The possibilities are limitless...
It might be good if when installing ANY module, you could name it yourself... Just a suggestion
I wanted the unmodified XML file, so I could see if I could modify it as an XML and then it would install automatically with the modifications... That way if others wanted to do the same as me in the furture, I could always publish the code with the modified bits highlighted or something, so that others would just have to do a search and replace and install the the different mods as whatever names thet want... I may want DJ_Guestbook or DJ_Comments, but others might want to run several websites on the same CMS for example, and have a different guestbook, news, etc, for each website only editable by the website owner...
The possibilities are limitless...

It might be good if when installing ANY module, you could name it yourself... Just a suggestion
