Espetial Roles for each Custom Post Type
This topic contains 12 replies, has 2 voices, and was last updated by giuseppe cuttone 8 years, 2 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: custom post type, payment manager, roles
-
AuthorPosts
-
August 10, 2016 at 3:27 pm #244637
Hi,
like defoult wordpress has 4 roles (administrator, author, editor, collaborator and suscriptor).
The suscriptor can’t post in the blog.
the collaborator can post in the blog, but the post need approvation
the editor can post in the blog without need approvation
the author can post and edit in the blog its post and others posts.
Its is clear…
So I have 2 question:
1 – With GeoDirectory I can set if LISTING need approvation or don’t need approvation, but I don’t find where I can set who can add listing. I have understand that like defoult suscriptor can add listing.
I’d like understand if I can delete this option (add listing) at the suscriptors, and let add listing only at the collaborator.
2 – I’d like create news roles in order to assign specific capability for each Custom Post Type.
For example I want create the role “gd_place” and let only at the users with this role to add listing in the CPT “gd_places”.
I want also create the role “gd_hotel” and let only at the users with this role to add listing in the CPT “gd_hotel”.
In order to do that I have used the plugin MEMBERS
https://wordpress.org/plugins/members/
It has a specific section for add NEW CAPABILITY.
So I have created the role VISITOR and I have crated the follow news capability:
delete_gd_place
edit_gd_place
edit_published_gd_place
publish_gd_place
and I have denied them.
But the user visitor can create listing…
I dont know if the “capability codecs” are wrong, or if is not possible to do that with MEMBERS PLUGIN.
The plugin say running with Custom Post Type, and it has a specific section for “Custom Capability”, so I think codec I used are wrong…
Can you help me?
Thanks for your support.August 10, 2016 at 3:34 pm #244639This reply has been marked as private.August 10, 2016 at 4:05 pm #244656Hi,
#1 everyone can add listings, you would need to add custom code if you want to specify what user types can and can not.
#2 This again would require customisation which is above what we provide via support. If you need this feature you should try posting in the jobs section: https://wpgeodirectory.com/support/forum/geodirectory-jobs/Thanks,
Stiofan
August 10, 2016 at 5:27 pm #244712Hi,
1. Can you provide me codec for let add listing only to collaborators. And can you explain where i need past this code? I am not informatic… please give me all detail I need. Thanks.
2. Ok.
P.D.: wordpress is used for a lot of users and there is a lot of SPAM… Let as defoult solution add listing at the suscriptors I think it can be a problem… I sugest add in geodirectory setting a dropdown window where administrator can decide who can add listing. Please, let me know if you apreciate my sugestion, and will add it in the next update.
Thanks very very much for you support.
I wait your answare.
ByeAugust 10, 2016 at 5:51 pm #244715#1 u could use the function geodir_is_page:
if (geodir_is_page(‘add-listing’)) {
// run check for user type and redirect to a page if not the right one
}We have an addon recaptcha u can add to prevent spam.
Thanks,
Stiofan
August 11, 2016 at 6:41 pm #245445Hi, in order to resolve my problem, I have had a look at the following addon:
https://wpgeodirectory.com/downloads/payments-manager/
Maybe it is good for my website, but I have one doubt about it.
My clients are “Real Estate enterprise”. So they need add a lot of listing (for example 100 listing).
I have understood that with this addon the user can publish one listing during X time (I choose the time). It is good.
But for each listing the user need to do one payment. So if the user must add 100 listing they need to do 100 payment.
Here there is the problem… paypal charges one “Fixed Commission” of 0,30 euros for each payment.
If the user must pay 50 euros for 100 listings, they must do 100 payment of 0,50 euros. So paypal will charge me 0,30 like commission for each payment and I win only 0,20…. With this solution my business is down…
So my question is:
Is there a way to let user pay only one times and allow it add number of listing (for example 50 or 100) I decided when I create the “package”?
Or can you give me other solution…?
Thanks for your support.August 11, 2016 at 7:26 pm #245464We will be releasing a new payments manager in the next few weeks which will resolve this 🙂
Stiofan
August 12, 2016 at 9:32 am #245623Wow, you are converted me in a happy person…
It is a very very very good news.
Only few question about “Payment Manager”:
1. There will be 2 different Payment Manager addons, or you are modifying the old “Payment Manager addon”?
2. With the new releasing, can I delete the free option for add listing, and to offer only “payment solutions” for add listings in determinated Custom Post Types?
3. If question number 2 is “yes”, administrator can add listing using:
– csv importer
– Back end Form
– Front end Form
in the Custom Post Type where only is enabled payment solutions (and there is no free option for add listing)?
Thanks very very very much for all the questions you have answered me till now…
I hope you have a good work.
ByeAugust 12, 2016 at 5:30 pm #245877#1 It will be split into two, a package manager and a invoice manager.
#2 You can do this anyway and that functionality will remain yes.
#3 I am not sure what you mean here but yes they can be added by all methods.
You can choose to have free or non free packages now, you can and you can set if a CPT can be added via the front end or not (paid)Thanks,
Stiofan
September 21, 2016 at 9:12 am #270304Hi,
One month ago I asked you about solution in order to let users add a lot of listings with only one payment.
You answared me that you are making a new addon for to do that.
Are there news about the new addon you are making?
When aproximatelly you release it?
in one/two weeks?
in one month?
Thanks for your support.October 22, 2016 at 9:10 am #289568Hi @stiofan, for to improve PAYMENT MANAGER ADDON, the news addon for “package manager” and a “invoice manager” are ready in one or two weeks?
Or finaly is not possible to do that?
Please, let me know.
I hope you have a good work.October 22, 2016 at 10:19 am #289587New payment system should be released next week. You will be able to invoice for anything, but if invoicving for multiple listings you would have to manually set them published/draft.
Stiofan
October 22, 2016 at 5:12 pm #289822Hi @stiofan,
ok I understand.
But published/draft option is not aplied to specific POST TYPE…
It is an option refered at all POST TYPE.
Depending the post type, it is more interesting let to user publish, or make a draft.
So, maybe, it will be convenient let the administrator to select which post type will be make like “published”, and which will be make like a “draft”.
Do you think like me? And will do this change…
Let me know. -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket