SOLVED (partial): News Category permission

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
qido
Forum Members
Forum Members
Posts: 13
Joined: Wed Apr 05, 2006 3:57 pm

SOLVED (partial): News Category permission

Post 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
Last edited by qido on Thu Nov 01, 2007 11:12 am, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: News Category permission

Post by calguy1000 »

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.
qido
Forum Members
Forum Members
Posts: 13
Joined: Wed Apr 05, 2006 3:57 pm

Re: News Category permission

Post by qido »

Still not sure what to do, still new at this.
qido
Forum Members
Forum Members
Posts: 13
Joined: Wed Apr 05, 2006 3:57 pm

Re: SOLVED (partial): News Category permission

Post 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.
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.
xmas3
Forum Members
Forum Members
Posts: 41
Joined: Sat Jul 28, 2007 9:22 am
Location: Bratislava / Slovakia

Re: SOLVED (partial): News Category permission

Post 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
eurekafag
New Member
New Member
Posts: 2
Joined: Thu Oct 06, 2011 5:52 am

Re: SOLVED (partial): News Category permission

Post 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.
Post Reply

Return to “CMSMS Core”