Need Developer to do this for me
This topic contains 22 replies, has 3 voices, and was last updated by Stiofan O’Connor 7 years, 1 month ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: draft, post publishing
-
AuthorPosts
-
September 17, 2017 at 11:04 pm #396196
Hi,
I need a developer/coder to help me out (for pay).
My geodirectory is a free directory and all post go into draft form.
I want the ability to give specific users the ability to publish directly (not go to draft form).
Please feel free to ask any questions.
My site is wwww.worldthreatdirectory.com if you want to see how it is currently running.September 17, 2017 at 11:29 pm #396201You should not need any coding.
1. Create a paid package at $100
2. Create a discount code for $100
3. Hide the link to this package from your site.
4. Give the direct link to the package to your special customers only.
5. So the discount will allow your special customers to add a “paid” listing for free.
6. Set “paid” listings to go straight to publish at GD > Prices and Payments > Paid Listing StatusThanks
September 29, 2017 at 10:53 pm #398155Guust,
Thank you very much for your help! Sorry for the delay on getting back to you, I’ve been traveling. I’ve done all above, the only question I have is how I hide the link to the package from my site. Could you elaborate on how I do that?September 30, 2017 at 12:55 am #398166Something like
#geodir_price_package_4 {display: none;}
Adjust as required.
Thanks
September 30, 2017 at 1:36 am #398181Guust,
Thank you for the quick reply, and I apologize ahead of time for my ignorance.
Where should I past that code?
Also I know my next question will be, where can I find the actual link to the package to provide the client?September 30, 2017 at 1:44 am #398185You can paste that line at GD > design > scripts > css
But first go and look at the Add Listing form and select the package you are about to hide.
That will give you the direct link you can give to your selected users.
It will also show the correct package ID to use in the CSS bit, where you may have to change the “4” to the ID of your package.Thanks
September 30, 2017 at 2:25 am #398192Guust,
You’re awesome! It all worked perfectly, thank you very much.
I have one final question. I see that doing it this way the client has to go through the checkout process each time they create a listing (and can use the coupon). Is there any way to have them only go through it once and then they have unlimited listings in that package (ie. don’t have to go through the checkout every time) Or is the system only suitable for a pay per listing style and not an unlimited. I thought that when I created the package it seemed as if they would be able to do multiple listings for the one price.
Sorry to have so many questions.September 30, 2017 at 2:31 am #398193The system is only suitable for a pay per listing format.
A listing will always need to go to a preview and then a publish.Thanks
September 30, 2017 at 2:54 am #398195Ok That makes since.
So would I be correct in the following thought. In order for me to allow an individual to post directly and avoid going through the payment process each time I would need to correct a different USER status for them in the WordPress settings (ie. subscriber, author, editor, etc..). I tried to change a tester account to author but see that the theme only seems to allow administrator backend access. I know with some other WP themes (focused on blogging) you can give a user author privalege and it only allows them to create post on the backend and nothing else.Would that be a custom job suitable for a programmer here . To make it where I can give an account ‘author’ access that allows them backend access to create listings and nothing else?
September 30, 2017 at 9:00 am #398218Why not just get them to prepare a CSV file for you to import?
September 30, 2017 at 4:05 pm #398282Guust,
That would be suitable for some but not all times. I use the GD in a relatively unique way. We allow police and other agencies to share time-critical information (say a kid was just kidnapped). That being the case anywhere we can shave down the time from the event to the police being able to list it could have serious benefits.October 2, 2017 at 3:03 pm #398471Hi Shane,
Something like this might do it (not tested)
add_filter('geodir_new_post_default_status','_allow_some_users_live'); function _allow_some_users_live($status){ $allowed_user_ids = array(); $user_id = get_current_user_id(1,12,123,1234); if(in_array($user_id,$allowed_user_ids)){ $status = 'publish'; } return $status; }
Stiofan
October 2, 2017 at 4:22 pm #398515Hi Stiofan and thanks for weighing in!
Could you tell me where I would paste that code?
Is it here as well (GD > design > scripts > css) or in the editor files somewhere?
Also am I correct in my assumption that I would write in the User Ids manually into that code?
Thanks for any guidance!October 2, 2017 at 4:26 pm #398517Hi Shane,
Yes you would enter the id’s manually in this case.
You can download a plugin called “code snippets” and add it that way.Thanks,
Stiofan
October 2, 2017 at 4:53 pm #398525Downloaded and activated. Should I run the snippet everywhere (that is one of three options) and do the numbers in this line represent the ids for the users I want to have that special access?
$user_id = get_current_user_id(1,12,123,1234); -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket