Fork me on GitHub

News module user permissions  Bottom

  • Hello, I'm using Zikula 1.2 and News 2.4.1 for the announcements section of a church website that I am currently setting up. This is my first day using Zikula and I'm having some trouble with the permissions. I've been poking around for the past couple hours but can't seem to figure this out.

    I would like to configure my permissions so that certain users can log in and post news announcements without having to go through the workflow process of having a site admin approve it, and also have full access to edit and remove other people's announcements. I made a new user group named News Admins. I went to the Permission Rule List and created a new rule:

    Group: News Admins
    Component: News::
    Instance: .*
    Permission Level: Admin Access

    I then edited my test user account to join it to the News Admins group. However, when testing it out I still cannot directly submit news articles, and when I try to go to index.php?module=News&type=admin, it says that I have not been granted access.

    It is probably something simple with the rule that I am missing, since I'm a bit of a newbie and not entirely sure what all that means. I've read around and tried a couple things but none of it works. Could someone please advise me on how I can accomplish this?

    Also, I noticed on the download page for the News module that it says it is "obsolete", is there a better module to accomplish something like this?

    Thanks in advance!
  • EDIT: Found where allowed HTML was under Security Settings and fixed the formatting issues. I could still use help with permissions though.

    On a semi-related note, I'm using scribite! with News, as recommended. But it looks like when I actually go to read the news articles, the HTML for font color and stuff is not being parsed. Instead it just shows the formatting code with the text of the news article. I've tried each of the editors and they all produce the same problem. So I think it is something to do with my configuration of the News module or something else on my site.



    edited by: zaggeh, datetimebrief
  • Hello and welcome to Zikula!

    You have the right and current version of News. 2.4.1 is the most recent version. 2.5 is coming (soon?) but for now, you have the right version. I don't know why that says obsolete...

    not sure why your perms aren't working like you wish. I assume you've already read this page, but you might want to check it over again. Someone smarter than me (mateo, Teb, etc) will be able to help if that doesn't.

    You color issue is very likely related to your theme. your theme CSS is probably overwriting whatever colors are being generated by scribite. You can try viewing that page in another theme by adding theme= to the end of the URL to see if that is actually the problem - e.g. index.php?module=News&theme=Andreas08

    let us know how else we can help.
  • Thank you for your response.

    After much poking around, I finally discovered that the component name for the News module is Stories:: not News::. This is being changed for the News 2.5 release I think. All this confusion could have been avoided if I had checked the list of components. The Permissions document you provided me states: "It is important to note at this point that a list is provided of all the available components and instances. It can be accessed by clicking the Component link in the column header of the permissions table.", However, I did not realize at the time that it was referring to that big red question mark. So, problem solved for now.

    As for the color formatting issue, that was just an issue with the font and span HTML tags being disallowed and is resolved now.

    Thanks again.



    edited by: zaggeh, datetimebrief
  • Hi
    News 2.4.1. uses indeed still the old style permissions Stories::Story for the Component.
    This is indeed changing in News 2.5 (among other things icon_wink ), we finally changed it into the more logical News:: (Permission rules will be converted by the upgrade BTW). News 2.5 will be Zikula >= 1.2 only, since it will be gettext based. It was undoable to maintain both version (lang defines and gettext) while developing.

    In News 2.5 there will be a introductory article with a new News install, which explains some of these things with links to the HTML setttings for instance, since that is a common issue icon_smile

    Glad you got it working, good luck.

    I see that the curious Obsolete status is gone now, whoever did it, thanks



    edited by: espaan, datetimebrief

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • Thank you for your reply. I'm really enjoying News and think it is a wonderful module.

    About the Obsolete status issue... In the top portion of the module information page (http://community.zikula.org/module-Extensions-display-ot-component-componentid-29.htm), it does indeed say Status: Normal. However, if you scroll down to the grey box with information about News 2.4.1, it says Status: Obsolete there.
  • I just changed that to "normal" Erik.

This list is based on users active over the last 60 minutes.