Page 1 of 1
SOLVED (partial): News Category permission
Posted: Sat Oct 27, 2007 7:54 pm
by qido
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
Re: News Category permission
Posted: Sat Oct 27, 2007 8:03 pm
by calguy1000
look in lib/classes/class.useroperations.inc.php
Re: News Category permission
Posted: Sun Oct 28, 2007 8:18 am
by qido
Still not sure what to do, still new at this.
Re: SOLVED (partial): News Category permission
Posted: Thu Nov 01, 2007 11:11 am
by qido
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.
Re: SOLVED (partial): News Category permission
Posted: Mon Jan 07, 2008 1:26 pm
by xmas3
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
Re: SOLVED (partial): News Category permission
Posted: Thu Oct 06, 2011 5:57 am
by eurekafag
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.