Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Unregistered -- News module
  • Posted: 31.08.2008, 12:01
     
    marc@marcpare.com
    rank:
    Freshman Freshman
    registered:
     December 2003
    Status:
    offline
    last visit:
    01.09.08
    Posts:
    29
    How do I go about preventing unregistered users from the news module. Do I do:

    unregistered | News:: | .* | none

    I can't seem to block them from the news module.

    Marc
  • Posted: 31.08.2008, 13:35
     
    Arthens
    rank:
    Helper Helper
    registered:
     March 2005
    Status:
    offline
    last visit:
    18.11.08
    Posts:
    166
    Try:

    unregistered | Stories:: | .* | none
  • Posted: 31.08.2008, 14:15
     
    marc@marcpare.com
    rank:
    Freshman Freshman
    registered:
     December 2003
    Status:
    offline
    last visit:
    01.09.08
    Posts:
    29
    Thanks Arthens ... now how did "News" end up being "Stories" ?? Works a treat!

    Cheers

    Marc
  • Posted: 31.08.2008, 23:16
     
    Arthens
    rank:
    Helper Helper
    registered:
     March 2005
    Status:
    offline
    last visit:
    18.11.08
    Posts:
    166
    I don't know (maybe it's a .7 or PHP-nuke inheritance), but you can find the permission scheme of each module in its pnversion.php file.
    You can also find the complete list of available permissions clicking on "instance" or "component" in the permission table header.

    Bye,
    Giacomo
  • Posted: 01.09.2008, 09:16
     
    marc@marcpare.com
    rank:
    Freshman Freshman
    registered:
     December 2003
    Status:
    offline
    last visit:
    01.09.08
    Posts:
    29
    Thanks for the tips Arthens. I had checked the "instance" and "component" for the list but just assumed it was called "News". I now see that it is not there and Stories is there. Maybe at some point this will change?

    My permissions set up works well.

    Marc
  • Posted: 01.09.2008, 09:57
     
    espaan
    rank:
    Helper Helper
    registered:
     August 2003
    Status:
    offline
    last visit:
    22.11.08
    Posts:
    465
    Hey file a feature request ticket in the ValueAddon News and the Core project in Cozi.
    On the other hand, the News module itself might also need a new name. You can use it for more than just News icon_smile
    Like for example In the blogger distribution you might want to call the News module Posts, which is the name used in Wordpress for example for articles.



    edited by: espaan, Sep 01, 2008 - 09:50 PM

    --
    http://www.erikspaan.nl
    http://www.avwijchen.nl

    Involved in: BlankTheme, StoriesExt, Menu templates, SmugView and zikula.nl
  • Posted: 01.09.2008, 14:18
     
    Topiatic
    rank:
    Professional Professional
    registered:
     November 2003
    Status:
    online
    Posts:
    1675
    Doesn't simply changing a modules display name accomplish this already?

    --
    Under Construction!
  • Posted: 01.09.2008, 14:39
     
    Arthens
    rank:
    Helper Helper
    registered:
     March 2005
    Status:
    offline
    last visit:
    18.11.08
    Posts:
    166

    Topiatic

    Doesn't simply changing a modules display name accomplish this already?


    No, the permission check is hardcoded and it's indipendent from translation and name changes (fortunately I'd say :) it'd be a nightmare if simply changing the name you could break the permission rules)
  • Posted: 01.09.2008, 17:55
     
    marc@marcpare.com
    rank:
    Freshman Freshman
    registered:
     December 2003
    Status:
    offline
    last visit:
    01.09.08
    Posts:
    29
    Sounds more like the core members/developers/foundation should get together and decide on the module's name and readjust the permission check so that it coincides with the same name. Just to avoid any confusion with permissions. It is still not too late in the game to make the change as Zikula is still fresh with the community.

    Marc
  • Posted: 01.09.2008, 20:45
     
    Topiatic
    rank:
    Professional Professional
    registered:
     November 2003
    Status:
    online
    Posts:
    1675

    Arthens

    Topiatic

    Doesn't simply changing a modules display name accomplish this already?


    No, the permission check is hardcoded and it's indipendent from translation and name changes (fortunately I'd say :) it'd be a nightmare if simply changing the name you could break the permission rules)


    Sorry I should have been clearer, I only meant in response to a module being called another name depending on usage... like Posts instead of News. I'm more wondering if this would translate to the 'title' and shorturls.

    --
    Under Construction!
  • Posted: 16.09.2008, 00:47
     
    BennuKhepera
    rank:
    Freshman Freshman
    registered:
     July 2008
    Status:
    offline
    last visit:
    22.09.08
    Posts:
    7
    I'm having the opposite problem....I want unregistered users to be able to view the news page...but only registered users and admins can. My Permission setting is

    allgroups | Stories:: | .* | read
  • Posted: 16.09.2008, 03:47
     
    Topiatic
    rank:
    Professional Professional
    registered:
     November 2003
    Status:
    online
    Posts:
    1675
    'All groups' includes 'Unregistered' (unlogged/anonymous) users, trade out 'All groups' with 'Users', which should be the default registration group.

    --
    Under Construction!
  • Posted: 17.09.2008, 11:22
     
    Arthens
    rank:
    Helper Helper
    registered:
     March 2005
    Status:
    offline
    last visit:
    18.11.08
    Posts:
    166

    BennuKhepera

    I'm having the opposite problem....I want unregistered users to be able to view the news page...but only registered users and admins can. My Permission setting is

    allgroups | Stories:: | .* | read


    Have you changed the default permission table?
    By default unregistered users can read everything.

    Can you post your permission table?
  • Posted: 23.09.2008, 01:17
     
    BennuKhepera
    rank:
    Freshman Freshman
    registered:
     July 2008
    Status:
    offline
    last visit:
    22.09.08
    Posts:
    7
    Yeah, I have to wait till I get home so I can pull it off of my test machine, but yeah I will post my perm table, probably tomorrow.

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula