New listings in pending status cannot be retrieved if they are in pending status

This topic contains 26 replies, has 2 voices, and was last updated by  Vladimire Calixte 5 years, 1 month ago.

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

Open Support Ticket
  • Author
    Posts
  • #477939

    Vladimire Calixte
    Free User
    Post count: 85

    It has come to our attention that listings in pending status (on therapyforblackmen.org) cannot be retrieved by the person who made them. If they are published, they can be retrieved but then there is no longer a ‘Confirm preview and go to checkout’ button available. Testing shows that the only way to save a profile as pending is to click the checkout button and then fail to supply billing information and make a payment.

    The page to retrieve a listing can be found by clicking ‘View Your Profile’ under the Therapists menus. The following is the shortcode on that page:

    [gd_listings post_type=”gd_therapist” post_author=”current_user” post_number=”1″]

    We need to get this resolved ASAP. Is there a modification to the shortcode that we can make? Is this a bug?

    #477941

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    Using the GD dashbaord widget they should be able to see them?

    Stiofan

    #477958

    Vladimire Calixte
    Free User
    Post count: 85

    We don’t want to use the widget; we want the shortcode to work in an intelligent manner.

    #477963

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    The dashboard widget takes them to the author page which is specifically designed for this purpose, it will also show author actions on the listing such as edit, delete, upgrade etc.

    Stiofan

    #477965

    Vladimire Calixte
    Free User
    Post count: 85

    So you are saying that you won’t support your own shortcodes?

    #477966

    Vladimire Calixte
    Free User
    Post count: 85

    We were using the dashboard widget but did not like it which is precisely why we tried using your shortcode. The only problem is it seems to have a bug which you could fix easily.

    #477967

    Vladimire Calixte
    Free User
    Post count: 85

    We also don’t want to upgrade to V2 any time soon.

    #477977

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Vladimire,

    That is not the point of the shortcode, and we don’t plan on adding that functionality, even if we did get it to show the pending listings the author actions are not set to show there so they would not see an edit link.

    Thanks,

    Stiofan

    #477988

    Vladimire Calixte
    Free User
    Post count: 85

    I see. Well, that is VERY disappointing but I understand your position.

    #477993

    Vladimire Calixte
    Free User
    Post count: 85

    This will interest you I’m sure. I just ran a test and the profile brought up through the shortcode DOES have an edit link in the sidebar. So what you have been saying is wrong and all that would be needed is to also make the profile display to the owner even if it is pending.

    #477997

    Vladimire Calixte
    Free User
    Post count: 85

    Please fix the bug in your shortcode!!

    #477998

    Vladimire Calixte
    Free User
    Post count: 85

    I should have confirmed that I saw the edit link goes to the profile in edit mode and there is an update button that actually works as well!

    #477999

    Vladimire Calixte
    Free User
    Post count: 85

    I would also accept some PHP code to modify the buggy behavior… I could add it to functions.php in the site’s child theme.

    #478006

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Firstly this is not a bug, it is working as intended, the edit link i mention is on the actual archive view not the listing page…

    The below code should do what u want but i have not tested, you can try applying it with the code snippets plugin

    
    
    add_filter('geodir_filter_widget_listings_where','_my_show_user_pending_edit', 10, 2);
    function _my_show_user_pending_edit($where, $post_type ){
    $args = isset($GLOBALS['gd_query_args_widgets']) ? $GLOBALS['gd_query_args_widgets'] :'';
    
    if(!empty($args['post_author']) && $args['post_author']==get_current_user_id()){
    global $wpdb;
    $where = str_replace(".post_status = 'publish' ",".post_status = 'publish' OR $wpdb->posts.post_status = 'pending' ",$where); 
    }
    
        return $where;
    }

    Stiofan

    #478009

    Vladimire Calixte
    Free User
    Post count: 85

    Um, there is also an edit link on the listing page when the owner is logged in believe it or not.

    Thank you for the code; I will give it a try and report back.

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

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

Open Support Ticket