Stiofan O'Connor

Forum Replies Created

Viewing 15 posts - 4,081 through 4,095 (of 13,774 total)
  • Author
    Posts
  • in reply to: Connect Recurring Payments Across Subdomains #392758

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Cherly,

    We don’t do customisation, but if you explain more i will give my best advice.

    I don’t understand one point, you are using GD and Invoicing on site 3, but what are you using on site 2? Are you selling GD listings there or what?

    Thanks,

    Stiofan

    in reply to: New Listing Status #392757

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Ok i think this is what i would do…
    Set the default status to “Pending Review” and then add a hook on post_save that checks the conditions and sets the status publish only if met, example below (NOT TESTED):

    
    
    function _my_save_post_actions($post_id, $post, $update) {
        // if an update then bail.	
        if($update){ return;}
    
    	// a post type check
    	if ( isset($post->post_type) && $post->post_type=='gd_place' && $post->post_status!='publish') {
    		// unhook this function so it doesn't loop infinitely
    		remove_action( 'save_post', '_my_save_post_actions', 10 );
    
    		// we want to publish all gd_place listings
    		wp_update_post(array(
                        'ID'    =>  $post_id,
                        'post_status'   =>  'publish'
                    ));
    
    		// re-hook this function
    		add_action( 'save_post', '_my_save_post_actions',10, 3 );
    	}
    
            // a user check
            $current_user_id = get_current_user_id();
            $allowed_user_ids = array(1,5,10,20);// list of allowed user ids
    	if ( in_array( $current_user_id, $allowed_user_ids) && $post->post_status!='publish') {
    		// unhook this function so it doesn't loop infinitely
    		remove_action( 'save_post', '_my_save_post_actions', 10 );
    
    		// we want to publish all gd_place listings
    		wp_update_post(array(
                        'ID'    =>  $post_id,
                        'post_status'   =>  'publish'
                    ));
    
    		// re-hook this function
    		add_action( 'save_post', '_my_save_post_actions',10, 3 );
    	}
    
    }
    add_action( 'save_post', '_my_save_post_actions',10,3 );

    hopefully that example is enough to get you going 🙂

    Thanks,

    Stiofan

    in reply to: Invoicing Stripe plugin #392754

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    HI Eileen,

    I activated but i could not see any problems on the frontend, can you explain what happens?

    Also you did not have our WP Easy Updates plugin installed so i did that for you, and you have many plugin that need updated.
    You need to enter your licence keys on the plugins page and then update, you can find your licences here:
    https://wpgeodirectory.com/your-account/
    https://wpinvoicing.com/your-account/

    Please update and check, if you still have problems let me know.

    Thanks,

    Stiofan

    in reply to: New Listing Status #392750

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Shane,

    Are these paid or free listings or mixed?
    I don’t think there is a way to alter this per CPT, but is that what you are asking or are you asking per user?

    Please explain a bit more and i’ll be able to suggest the best action.

    Thanks,

    Stiofan

    in reply to: Adding new franchises from existing listings #392748

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Cyril,

    I believe by default its the main listing owner that is intended to add the franchises, then if needs be the owner of the franchise can claim it but i will flag this for Kiran who built the addon to confirm this.

    Thanks,

    Stiofan

    in reply to: Invoicing Stripe plugin #392747

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Eileen,

    The user/pass do not seem to work, can you double check the details.

    Thanks,

    Stiofan

    in reply to: Default Location won't work #392744

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Carl,

    Your city longitude was malformed “-2.164885,12” there should never be any commas in GPS.

    I fixed it and the map is now showing.

    Thanks,

    Stiofan

    in reply to: new listing default status not working for me #392741

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Shane,

    Please start your own topic, this one has been marked as resolved.

    Stiofan

    in reply to: Default Location won't work #392740

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Carl,

    You can reply here and tick the box “Set as private reply” then only staff members will be able to see it.

    Thanks,

    Stiofan

    in reply to: WooCommerce Integration #392723

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Susie,

    I still don’t follow what you mean by the integration, but we have our own search page so i would not show woo categories or products there.

    Thanks,

    Stiofan

    in reply to: site page load speed #392722

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Jorge,

    We only give support for GD Booster and WP SUper Cache.

    Please open your own topic if you have problems, this topic is marked as resolved.

    Thanks,

    Stiofan

    in reply to: Help with migration #392717

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    The wp-admin details seem to be wrong, i did not check the others, please check the details and let me know.

    Thanks,

    Stiofan

    in reply to: Update plugins failed #392704

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Josi,

    It would seem this is some soft of file permissions problem, when i check the file permissions via ftp there are none, i have not seen this before and it will not let me set it to the correct values. The only person who can resolve this is your server admin/ hosting company.

    Thanks,

    Stiofan

    in reply to: CHANGE OF DOMAIN IN THE PLUGIN BOUGHT #392692

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    Your places are not showing, i am guessing your did a search replace in the DB? If you did this in a text editor you will have broken things, you should get the original DB, change only the “siteurl” and the “home” values in the options table so the site will load in the new url, then use the plugin “Better search replace” to change the urls.

    Thanks,

    Stiofan

    in reply to: Displaying Category Default Image On Listing Page #392657

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    this function will get it

    geodir_get_default_catimage($term_id, $post_type);

    Stiofan

Viewing 15 posts - 4,081 through 4,095 (of 13,774 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount