Stiofan O'Connor

Forum Replies Created

Viewing 15 posts - 7,636 through 7,650 (of 13,774 total)
  • Author
    Posts
  • in reply to: Some translations do not translate #279545

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    The problem is with the escaped apostrophe in the translation, i have removed it and the fix will be in the next version of payment manager, if you need it now just change the string from it’s to its and run the po file to scan the files.

    Thanks,

    Stiofan

    in reply to: GD Detail Images missing in the preview #279359

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I am not sure what you mean by the ” Insert Bar”? The search suggestion, if so it seems to work for me?

    Stiofan

    in reply to: Remove unwanted tab from listing detail section #279228

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You are welcome! 🙂

    in reply to: Cannot determine address at this location. #279224

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    Do you have the location manager installed?
    It could be a Google api problem, if you provide wp-admin info in a private reply i will check.

    Thanks,

    Stiofan

    in reply to: Remove unwanted tab from listing detail section #279221

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Thanks for the info, please check now.

    Stiofan

    in reply to: GD BoosterC funny domain name #279216

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I see the dates the folders were created are old.
    I can’t check anything without FTP also.

    Stiofan

    in reply to: Remove unwanted tab from listing detail section #279195

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    Try GD> Custom Post Types>Places(EDIT)>Advanced settings>Link Business (untick)

    If that does not solve then please provide wp-admin details and i will take a look.

    Thanks,

    Stiofan

    in reply to: Change order address #279149

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Glad you got it working 🙂

    Stiofan


    Stiofan O’Connor
    Site Admin
    Post count: 22956

    We added some more features so are currently testing them, hopefully it will be out on Monday.

    If you would like to beta test them please provide FTP info and i will upload them.

    Thanks,

    Stiofan

    in reply to: Highlighting An Ad Name or Title above Images and SEO #279146

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Thanks for the info, under Enfold>Header>Header Title and Breadcrumbs, you have it set to not show…

    Stiofan

    in reply to: Region is problem? #279105

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Google does not seem to return anything like that.. See image

    in reply to: GoogleGeolocation service at multilanguage #279076

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Google does not give us a region value, it gives us country and mostly city but it can give us lots of or no regions and we have to best guess if its correct.

    You can set the system to only use your defined locations, look under the locations maanger settings. If you need help just ask.

    Stiofan

    in reply to: Change order address #279068

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You can replace the whole function to output the address:

    first you would add this line to remove the current function

    remove_filter('geodir_custom_field_output_address','geodir_cf_address',10);

    And then add back your own function and change the order (i have not changed the order here)

    
    
    function _my_geodir_cf_address($html,$location,$cf,$p=''){
    
        // check we have the post value
        if(is_int($p)){$post = geodir_get_post_info($p);}
        else{ global $post;}
    
        if(!is_array($cf) && $cf!=''){
            $cf = geodir_get_field_infoby('htmlvar_name', $cf, $post->post_type);
            if(!$cf){return NULL;}
        }
    
        $html_var = $cf['htmlvar_name'];
    
        // Check if there is a location specific filter.
        if(has_filter("geodir_custom_field_output_address_loc_{$location}")){
            /**
             * Filter the address html by location.
             *
             * @param string $html The html to filter.
             * @param array $cf The custom field array.
             * @since 1.6.6
             */
            $html = apply_filters("geodir_custom_field_output_address_loc_{$location}",$html,$cf);
        }
    
        // Check if there is a custom field specific filter.
        if(has_filter("geodir_custom_field_output_address_var_{$html_var}")){
            /**
             * Filter the address html by individual custom field.
             *
             * @param string $html The html to filter.
             * @param string $location The location to output the html.
             * @param array $cf The custom field array.
             * @since 1.6.6
             */
            $html = apply_filters("geodir_custom_field_output_address_var_{$html_var}",$html,$location,$cf);
        }
    
        // Check if there is a custom field key specific filter.
        if(has_filter("geodir_custom_field_output_address_key_{$cf['field_type_key']}")){
            /**
             * Filter the address html by field type key.
             *
             * @param string $html The html to filter.
             * @param string $location The location to output the html.
             * @param array $cf The custom field array.
             * @since 1.6.6
             */
            $html = apply_filters("geodir_custom_field_output_address_key_{$cf['field_type_key']}",$html,$location,$cf);
        }
    
        // If not html then we run the standard output.
        if(empty($html)){
    
            global $preview;
            $html_var = $cf['htmlvar_name'] . '_address';
    
            if ($cf['extra_fields']) {
    
                $extra_fields = unserialize($cf['extra_fields']);
    
                $addition_fields = '';
    
                if (!empty($extra_fields)) {
    
                    $show_city_in_address = false;
                    if (isset($extra_fields['show_city']) && $extra_fields['show_city']) {
                        $show_city_in_address = true;
                    }
                    /**
                     * Filter "show city in address" value.
                     *
                     * @since 1.0.0
                     */
                    $show_city_in_address = apply_filters('geodir_show_city_in_address', $show_city_in_address);
    
                    $show_region_in_address = false;
                    if (isset($extra_fields['show_region']) && $extra_fields['show_region']) {
                        $show_region_in_address = true;
                    }
                    /**
                     * Filter "show region in address" value.
                     *
                     * @since 1.6.6
                     */
                    $show_region_in_address = apply_filters('geodir_show_region_in_address', $show_region_in_address);
    
                    $show_country_in_address = false;
                    if (isset($extra_fields['show_country']) && $extra_fields['show_country']) {
                        $show_country_in_address = true;
                    }
                    /**
                     * Filter "show country in address" value.
                     *
                     * @since 1.6.6
                     */
                    $show_country_in_address = apply_filters('geodir_show_country_in_address', $show_country_in_address);
    
                    $show_zip_in_address = false;
                    if (isset($extra_fields['show_zip']) && $extra_fields['show_zip']) {
                        $show_zip_in_address = true;
                    }
                    /**
                     * Filter "show zip in address" value.
                     *
                     * @since 1.6.6
                     */
                    $show_zip_in_address = apply_filters('geodir_show_zip_in_address', $show_zip_in_address);
    
                }
    
            }
    
            if ($post->{$html_var}) {
    
                $field_icon = geodir_field_icon_proccess( $cf );
                if ( strpos( $field_icon, 'http' ) !== false ) {
                    $field_icon_af = '';
                } elseif ( $field_icon == '' ) {
                    $field_icon_af = '<i class="fa fa-home"></i>';
                } else {
                    $field_icon_af = $field_icon;
                    $field_icon    = '';
                }
                
    
                $html = '<div class="geodir_more_info ' . $cf['css_class'] . ' ' . $html_var . '" style="clear:both;"  itemscope itemtype="http://schema.org/PostalAddress">';
                $html .= '<span class="geodir-i-location" style="' . $field_icon . '">' . $field_icon_af;
                $html .= ( trim( $cf['site_title'] ) ) ? __( $cf['site_title'], 'geodirectory' ) . ': ' : '&nbsp;';
                $html .= '</span>';
    
                if ( $post->post_address ) {
                    $html .= '<span itemprop="streetAddress">' . $post->post_address . '</span><br>';
                }
                if ($show_city_in_address && $post->post_city ) {
                    $html .= '<span itemprop="addressLocality">' . $post->post_city . '</span><br>';
                }
                if ($show_region_in_address && $post->post_region ) {
                    $html .= '<span itemprop="addressRegion">' . $post->post_region . '</span><br>';
                }
                if ($show_zip_in_address && $post->post_zip ) {
                    $html .= '<span itemprop="postalCode">' . $post->post_zip . '</span><br>';
                }
                if ($show_country_in_address && $post->post_country ) {
                    $html .= '<span itemprop="addressCountry">' . __( $post->post_country, 'geodirectory' ) . '</span><br>';
                }
                $html .= '</div>';
    
            }
    
        }
    
        return $html;
    }
    add_filter('geodir_custom_field_output_address','_my_geodir_cf_address',10,3);

    Thanks,

    Stiofan

    in reply to: near me problem #279067

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Change was in the serverside marker cluster file and will be in the next release.

    Thanks,

    Stiofan

    in reply to: GD Booster Messes Up Site #279066

    Stiofan O’Connor
    Site Admin
    Post count: 22956
    This reply has been marked as private.
Viewing 15 posts - 7,636 through 7,650 (of 13,774 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount