Kiran

Forum Replies Created

Viewing 15 posts - 5,251 through 5,265 (of 6,022 total)
  • Author
    Posts
  • in reply to: external JavaScript loaded in incorrect order #377521

    Kiran
    Moderator
    Post count: 7069

    Hi Fabricio,

    Please check now it working fine after adding external JS “wp-job-manager-embeddable-job-widget/assets/js/embed.js” to GD Booster > JS/CSS Files Exclusion From Combines.

    Let us know.

    Thanks,
    Kiran

    in reply to: Supreme: which file edit to change listing layout? #377519

    Kiran
    Moderator
    Post count: 7069

    Hi There,

    There is a hook “sd_detail_entry_author” available to filter author avatar. The code is available in file /supreme-directory/inc/geodirectory-compatibility.php. Please update supreme-directory theme or file geodirectory-compatibility.php with the latest development version “https://github.com/kprajapatii/supreme-directory”.

    After updating use following code snippet to meet your requirement.

    
    
    
    // Show listing image as a author thumbnail for non claimed listing.
    function gd_custom_sc_detail_author_avatar( $avatar ) {
        global $preview, $post;
        
        if ( defined( 'GEODIRCLAIM_VERSION' ) && empty( $preview ) && !empty( $post->ID ) ) {
            $duplicate_of = geodir_is_wpml() ? get_post_meta( (int)$post->ID, '_icl_lang_duplicate_of', true ) : NULL;
            $is_claimed = !$duplicate_of ? (int)geodir_get_post_meta( $post->ID, 'claimed', true ) : (int)geodir_get_post_meta( $duplicate_of, 'claimed', true );
            
            if ( !$is_claimed ) {
                $default_image_src = SD_DEFAULT_FEATURED_IMAGE;
                
                if ( has_post_thumbnail() ) {
                    $post_image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'thumbnail' );
                    $post_image_src = !empty( $post_image[0] ) ? $post_image[0] : $default_image_src;
                } else {
                    if ( isset( $post->default_category ) && $post->default_category ) {
                        $default_cat = $post->default_category;
                    } else {
                        $default_cat = geodir_get_post_meta( $post->ID, 'default_category', true );
                    }
                    
                    $default_catimg = geodir_get_default_catimage( $default_cat, $post->post_type );
                    $post_image_src = !empty( $default_catimg['src'] ) ? $default_catimg['src'] : $default_image_src;
                }
                
                $avatar = '<img src="' . $post_image_src . '"  height="100" width="100" />';
            }
        }
        
        return $avatar;
    }
    add_filter( 'sd_detail_entry_author', 'gd_custom_sc_detail_author_avatar', 10, 1 );
    

    Thanks,
    Kiran

    in reply to: API Endpoint #377513

    Kiran
    Moderator
    Post count: 7069

    Hi D.D

    There are two parameters favorites_only & favorites_by_user available to filter out the favorites listings.

    favorites_only – used for whether to show only listings favorited by user. Use favorites_only=true to filter only favorited listings.
    favorites_by_user – used to filter the listings favorited by particular user. Use favorites_by_user=12 to filter favorited listings by user 12. Do not add favorites_by_user parameter to filter the favorited listing for current logged user.

    Example:
    /wp-json/geodir/v1/places/?favorites_only=true – Shows the favorited place listings by current logged in user.
    /wp-json/geodir/v1/places/?favorites_by_user=true&favorites_by_user=12 – Shows the favorited place listings by user ID 12.

    Thanks,
    Kiran

    in reply to: Missing Email Notifications #377508

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    in reply to: Missing Email Notifications #377506

    Kiran
    Moderator
    Post count: 7069

    Hi Ron,

    I have done some tests by using my own email addresses and i successfully received normal emails & bcc emails. Check screenshots in next reply.
    So please try with another email addresses and let us know.

    Thanks,
    Kiran

    in reply to: JavaScript Error #377504

    Kiran
    Moderator
    Post count: 7069

    Thanks for letting us know 🙂

    in reply to: JavaScript Error #377400

    Kiran
    Moderator
    Post count: 7069
    in reply to: JavaScript Error #377397

    Kiran
    Moderator
    Post count: 7069

    Hi,

    Please try after clearing GD Booster cache.
    If clearing GD Booster cache does not fix the problem then let us provide site admin & FTP login details so we can look into more.

    There is an JavaScript error on page: “Google Maps API error: DeletedApiProjectMapError https://developers.google.com/maps/documentation/javascript/error-messages#deleted-api-project-map-error

    Check this how to fix it: https://developers.google.com/maps/documentation/javascript/error-messages#deleted-api-project-map-error & http://stackoverflow.com/questions/38199452/google-maps-api-deletedapiprojectmaperror#answer-38203980

    Kiran

    in reply to: external JavaScript loaded in incorrect order #377393

    Kiran
    Moderator
    Post count: 7069

    @radioservices Please create your own topic and post admin credentials there as you are not owner of this topic.

    Kiran


    Kiran
    Moderator
    Post count: 7069

    Hi Yosef,

    Hebrew characters also supported in GD import/export, but in your case seems there is an invalid character in CSV rows.
    You can enable debugging by using WP_DEBUG in wp-config.php file to find particular row that contains invalid characters.

    Let us provide CSV file we have to look into CSV rows, also port your site admin credentials.

    Thanks,
    Kiran

    in reply to: external JavaScript loaded in incorrect order #377389

    Kiran
    Moderator
    Post count: 7069

    Hi Fabricio,

    Checked page url that shown in screenshot but seems that page does not exists.
    Please let us know how to recreate from our side.

    Thanks,
    Kiran


    Kiran
    Moderator
    Post count: 7069

    Thank you for letting us know

    in reply to: HTTP 500 error #376990

    Kiran
    Moderator
    Post count: 7069

    I am also not sure what was the problem! Just let us know if you face this problem in future.

    Kiran

    in reply to: Featured Listings Not on Top #376903

    Kiran
    Moderator
    Post count: 7069

    Hi Paul,

    Thanks for raising this, we will look and fix if that was the problem.

    Yes, you can add is_featured column in sample file and add values 0 or 1.
    Also, you can do Export Listings > add/edit listings > Import Listings.

    The second option will be best, because it contains all the fields, so no need to add custom field columns.

    Thanks,
    Kiran

    in reply to: HTTP 500 error #376902

    Kiran
    Moderator
    Post count: 7069

    Hi Tamara,

    Thanks for providing info.

    Now it don’t shows HTTP 500 error message, i have checked with successfully created free & paid package listings. I did not have any changes.

    Please check & confirm from your side.

    Thanks,
    Kiran

Viewing 15 posts - 5,251 through 5,265 (of 6,022 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount