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, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #396196

    Shane Blevins
    Expired Member
    Post count: 25

    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.

    #396201

    Guust
    Moderator
    Post count: 29970

    You 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 Status

    Thanks

    #398155

    Shane Blevins
    Expired Member
    Post count: 25

    Guust,
    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?

    #398166

    Guust
    Moderator
    Post count: 29970

    Something like

    #geodir_price_package_4 {display: none;}

    Adjust as required.

    Thanks

    #398181

    Shane Blevins
    Expired Member
    Post count: 25

    Guust,
    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?

    #398185

    Guust
    Moderator
    Post count: 29970

    You 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

    #398192

    Shane Blevins
    Expired Member
    Post count: 25

    Guust,
    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.

    #398193

    Guust
    Moderator
    Post count: 29970

    The 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

    #398195

    Shane Blevins
    Expired Member
    Post count: 25

    Ok 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?

    #398218

    Guust
    Moderator
    Post count: 29970

    Why not just get them to prepare a CSV file for you to import?

    #398282

    Shane Blevins
    Expired Member
    Post count: 25

    Guust,
    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.

    #398471

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi 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

    #398515

    Shane Blevins
    Expired Member
    Post count: 25

    Hi 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!

    #398517

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi 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

    #398525

    Shane Blevins
    Expired Member
    Post count: 25

    Downloaded 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);

Viewing 15 posts - 1 through 15 (of 23 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount