Hi
I am editing the News module so a specific group that can add news in a specific category, it is the basic idea from this post
http://forum.cmsmadesimple.org/index.php/topic,15220.0.html
but instead of user name I want to use group name.
What is the syntax to call the user login associated group name?
qido
SOLVED (partial): News Category permission
SOLVED (partial): News Category permission
Last edited by qido on Thu Nov 01, 2007 11:12 am, edited 1 time in total.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: News Category permission
look in lib/classes/class.useroperations.inc.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.
Re: News Category permission
Still not sure what to do, still new at this.
Re: SOLVED (partial): News Category permission
With my lack of php and sql programming I have created a simple way to add group permission to news categories. This is very simple and probably not a very pretty modification of the News module 2.3.0.3 but it works, well you can not have more then one group associated with a user but hopefully I can get it to work with some more practice.
Usage:
You write the group name that has permission to the given category under the news category menu Group permission text area.
I also added two new module permissions:
-Modify news from all categories
-Add/remove news categories
You need to uninstall the old news module because of these permission boxes, to make the modification work.
One file has to go to the template folder.
Usage:
You write the group name that has permission to the given category under the news category menu Group permission text area.
I also added two new module permissions:
-Modify news from all categories
-Add/remove news categories
You need to uninstall the old news module because of these permission boxes, to make the modification work.
One file has to go to the template folder.
- Attachments
-
[The extension mpg has been deactivated and can no longer be displayed.]
Last edited by qido on Thu Nov 01, 2007 11:18 am, edited 1 time in total.
Re: SOLVED (partial): News Category permission
Hi qido,
it looks great, its exactly what Im looking for!
But Im not able to let the changed module to work!
Firstly, I cannot find the 2.3.0.3 version at
http://dev.cmsmadesimple.org/frs/?group ... ase_id=877
If I use the 2.3.0.1 v., then after copying/rewriting the new files I am not able to create a new category.
Thank you very much for any help,
bye Miro
it looks great, its exactly what Im looking for!
But Im not able to let the changed module to work!
Firstly, I cannot find the 2.3.0.3 version at
http://dev.cmsmadesimple.org/frs/?group ... ase_id=877
If I use the 2.3.0.1 v., then after copying/rewriting the new files I am not able to create a new category.
Thank you very much for any help,
bye Miro
Re: SOLVED (partial): News Category permission
Sorry for bumping this but it's the only topic I've found about the news permissions. I need the same functionality but attachments have been deactivated for some reason so I can't get the corrected source. Can you provide that file(s) (possibly for the latest version of the news module)? Why isn't this code included in the mainstream module? It's not that uncommon for sites to have different editors for different categories.