1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Usergroup Permission for Claim Listing 1.0.1

Adds usergroup based permissions for Xenking Directory Addon

  1. Sadik B

    Sadik B Well-Known Member

    sadikb submitted a new resource:

    Usergroup Permission for Claim Listing (version 1.0.0) - Adds a usergroup based permission for Claim Listing

    Read more about this resource...
  2. Sadik B

    Sadik B Well-Known Member

  3. Ladegro

    Ladegro Member

    Great addon. One feature would complete the package: only admins or moderators should (in our situation) be able to make a listing claimable. Then certain usergroups are able to claim the listing. The latter is implemented with your addon, but now I can only either have no "make claimable" button at all, or have it show up for every user.

    Would it be hard to implement this?
  4. Sadik B

    Sadik B Well-Known Member

    Hi, I don't understand. Even if the Claim button shows up for all users, it will show the Error message for the usergroups whom you do not give permission. So technically only users belonging to usergroups with "Claim Listing" permission given can only do so.
  5. Ladegro

    Ladegro Member

    I see the confusion...
    As I see it momentarily, there are two buttons: "make claimable" and "claim this listing".
    When I give permissions to claim a listing, one should be able to just see the button "claim this listing". Right now, he also sees on his own card: "make claimable", but I want that button to only show for administrators or moderators.

    I'm using the directory as a sort of addressbook for our community, so I want to be able to create all users, but let them claim the contact card and edit their details. So I want to give them that opportunity but not let them make it claimable again...

    Is something like that possible?
  6. discoian

    discoian Active Member

    I get an error when trying to access the directory with this plugin activated, the error is...

    Parse error: syntax error, unexpected T_STRING in /home/seagulls/public_html/library/ExtendDir/ControllerPublic/Directory.php on line 1

    Directory version is
    ExtendDir version is 1.0.1

    Any help would be gratefully received.
  7. Sadik B

    Sadik B Well-Known Member

    Re-Upload the files.
  8. discoian

    discoian Active Member

    Hi, thanks for this. I tried this several times and then forced a binary upload (it was set to AUTO) and it works a treat!
    Sadik B likes this.

Share This Page