Fork me on GitHub

Account Panel issues  Bottom

  • On my own site, I have recently upgraded from pn764 to zk111. Now the "Account Panel" (profile mod) has a couple anomalies I would like to clear up.

    1) all users have an "administration" link. If you click on it, it says

    Quote

    3rd-party
    Content
    Content modules
    This administration category is empty. You have probably ended up here because you have administrative access to a module which is not in the default administration category.

    I have checked permissions and see nothing related to this. Any ideas?

    2) pnForum has two links. One (with an icon) that works and links to

    Code

    index.php?module=pnForum&func=prefs

    The second has no icon and links to

    Code

    user.php?op=editpnForum

    Any idea how to get rid of the second one?
  • Hi Craig!
    The first one, the admin panel link, appears to the users with Edit access:
    :: | :: | EDIT
    that's the rule checked to include that Account option.
    Then it's checked the access to each module to show the Admin icon, but if it's empty the user don't have EDIT permission to any of the Content modules? icon_confused

    In Dizkus i see only one option, the Preferences one.
    Check the pnaccountapi.php file of pnForum and remove the second one as you want.

    Greetings icon_wink

    --
    - Mateo T. -
    Mis principios... son mis fines
  • mateo - here is my permissions settings:
    • Admins .* .* Admin
    • All groups Avatar:: pers:.*: None
    • Users PostCalendar:: .* Add
    • Users .* .* Comment
    • Unregistered Web_Links:: .* None
    • Unregistered pnForum:: .* None
    • Unregistered pnForum_Centerblock:: Forum Activity:: None
    • Unregistered .* .* Read
    • nocomments .* .* None


    Nothing with Edit rights with the possible exception of PostCalendar.

    As for the other, I don't understand what you mean. do you mean the DB?
  • nestormateo

    In Dizkus i see only one option, the Preferences one.
    Check the pnaccountapi.php file of pnForum and remove the second one as you want.

    I've sinced looked this over and there is only one call for an account entry in pnRoum's accountapi.php file. So, how is it that I have two? how do I begin to trouble shoot this? the old one is a rally old-style link...
  • Hey! I just figured this out! The old pnForum distribution has a folder called "user" in the main module directory. From this folder, this other link is called. So, I deleted the folder. I wonder what it was for?
  • craigh

    • Users PostCalendar:: PostCalendar:: .* .* Add

    Nothing with Edit rights with the possible exception of PostCalendar.

    This is exactly causing this to happen. I have the same issue with pagesetter: users are allowed to submit a new pubitem (edit-rights) for pubtype x, and a group of editors is allowed to submit (approve) those items (add-rights). All users now have the admin-panel icon, with no modules listed.

    --
    -- Teb
    -- Dutch Zikula Community


    Support questions in a Personal Message will be ignored. Use the forums at all times!
  • I just eliminated the pnaccountapi.php file from the Admin module since nobody on my site really needs that feature. :D
  • craigh

    all users have an "administration" link.

    Me too, and no group with the "edit" permission.

    I noticed that here in the zikula community site there is not the "admin" link in my profile, so ther must be some kind of setting (that broke with the upgrade?).

    Aybody has idea?
    And more than this, how can I chose whick link can be visible in the profile panel?
    I dislike to see "log out" "intraweb main" and "user list", how can I set them off?
  • Indeed, but the plugin which creates the array here at community explicitly checks for the administrative permission...and Admins do see it.

    Snippet from the plugin here at community (Don't ask me for the complete source) :P

    Code

    /* My Account */
        if (!$smarty->isloggedin) {
            $sublinks = array(
                array(null, _NAV_MYACCOUNT_LOGIN, '/module-Users-loginscreen.htm', null),
                array(null, _NAV_MYACCOUNT_REGISTER, '/module-Users-register.htm', null),
                array(null, _NAV_MYACCOUNT_RECOVER, '/module-Users-lostpassword.htm', null)
            );
        } else {
            $sublinks = array(
                array(null, _NAV_MYACCOUNT_ADMIN, $smarty->baseurl.'admin.php', null),
                array(null, _NAV_MYACCOUNT_PROFILE, '/module-Profile.htm', null),
                array(null, _NAV_MYACCOUNT_MESSAGES, '/module-Messages.htm', null),
                array(null, _NAV_MYACCOUNT_LOGOUT, '/module-Users-logout.htm', null)
            );
            if (!SecurityUtil::checkPermission('::', '::', ACCESS_ADMIN)) {
                unset($sublinks[0]);
            }
        }
        $menu[] = array('Profile', _NAV_MYACCOUNT, '/module-Profile.htm', $sublinks);


    But you could simply do this instead of the fancy stuff.

    Code

    <li>nonadminlink</li>
    <!--[pnsecauthaction realm="0" comp="::" inst="::" level="ACCESS_ADMIN" assign="admin"]-->
    <!--[if $admin eq true]-->
    <li>adminlink</li>
    <!--[/if]-->


    --
    David Pahl
    Zikula Support Team
  • It's weird
    I have the privilegies but i can't see the Admin link in My Account panel either icon_razz
    The pnaccountapi.php is there and testing
    :: | :: | EDIT
    it's granted... so, it should be there, but it's not...

    --
    - Mateo T. -
    Mis principios... son mis fines
  • icon_redface Sorry, I was playing with my Kubuntu 'panel' just before this post. With that task bars are referred to as panels-- and I was confusing it with the nav bar on this site. The code above reflects that and not the Zikula Account Panel.

    Guess I should go back to the old-folks-home and get my meds, rather than walk the streets babbling foolishly.

    So no I do not see an Admin link here at Community.

    --
    David Pahl
    Zikula Support Team
  • 0 users

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