Fork me on GitHub

Watch

GitHub Core

Show your support for Zikula! Sign up at Github account and watch the Core project!




GitHub Modules

Forum Activity

Forum feed

» Visit forum | » View latest posts

module only visible by administrator  Bottom

  • So, I installed OpenRealty on a realtor friend of mine's website...He logged in and added properties. I logged in and viewed them. All was well in the world. Well, we just found out today that people who aren't administrators (we're both admins and are the only members) are not seeing the properties.

    http://www.kyle4hire.com
    That's the website (you'll recognize the theme). ;)
    Click on "Kyle's listings" in the Main Menu and you'll see the OpenRealty module but you won't see the two properties my buddy added.

    http://homepage.mac.com/jayhawk/.Pictures/module1.names.jpg
    Just to add a bit more, Every item in the main menu uses a common address in the format -- [News] and [Members_List], etc., but the OpenRealty link didn't work when I did this [OpenRealty], so I had to use http://kyle4hire.com/index.php?module=OpenRealty instead (there is one other link, but it's to an external site so that's to be expected. Is this (the OR example) okay or could this be the root of my troubles above?

    TIA!
  • Did the install instructions tell you how to place a link on the menu? Did you try {OpenRealty}
    You may need to set permissions to allow all users to see the module!
  • Thank you for responding. This module had no documentation, so I was winging it and learning at the same time. Hmph!

    I finally got it to work, but I worry that I may have done too much. I changed permissions for unregistered users from comments to Moderate and that allows them to see the properties. It does not allow them to click on administrator, so I think it's okay, but I just figured this out and need to read up on what Moderate means. :)

    Thanx again.
  • Exactly what any particular permission level allows a user to do is dependant upon what the developer has coded it to allow. Odds are, for something like this, Moderate doesn't let them do anything (search the code for ACCESS_MODERATE).

    --
    Home Page | Find on Facebook | Follow on Twitter
  • found it twice in only one document (pnuserapi.php) -- can i change it to COMMENT safely in this file and replace the online file with my corrected file?

    Code

    if(!pnSecAuthAction(0, 'OpenRealty::', '::', ACCESS_MODERATE)) $sql .= " AND $realtyhomescolumn[or_status] = 'Active'";

        $sql .= " ORDER BY $realtyhomescolumn[or_featured] DESC";
        $result = $dbconn->SelectLimit($sql, $numitems, $startnum-1);

    //      pnSessionSetVar('errormsg', $sql);

    and

    Code

    if(!pnSecAuthAction(0, 'OpenRealty::', '::', ACCESS_MODERATE)) $sql .= " AND $realtyhomescolumn[or_status] = 'Active'";

        $result = $dbconn->Execute($sql);
  • 0 users

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