• 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

No permission to download

Sadik B

Well-known member
#1
sadikb submitted a new resource:

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

This is a very simple addition to Surrey Forum's XenkingDirectory Addon. We had a requirement on one of the forums, that only "Premium Members" can claim directory listings. So we added a new permission to User groups called "Can Claim Listing".

So if you install this and do not give permission to claim listings then users who click on claim will see the error defined in the...
Read more about this resource...
 
#3
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?
 

Sadik B

Well-known member
#4
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?
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
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?
 

discoian

Active member
#6
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 1.1.8.3
ExtendDir version is 1.0.1

Any help would be gratefully received.
 

Sadik B

Well-known member
#7
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 1.1.8.3
ExtendDir version is 1.0.1

Any help would be gratefully received.
Re-Upload the files.