Giri

Forum Replies Created

Viewing 15 posts - 376 through 390 (of 2,661 total)
  • Author
    Posts
  • in reply to: Translation lost #383806

    Giri
    Expired Member
    Post count: 3155

    Hi Edurado

    Your files should be placed in path like this

    wp-content/languages/directory-starter/de_DE.mo
    wp-content/languages/supreme-directory/de_DE.mo

    Let me know if thats the structure you use.

    thanks

    in reply to: Show complete address #383803

    Giri
    Expired Member
    Post count: 3155

    Hi Tania,

    Please try this code.

    
    
    function gd_custom_sd_details_output_address( $address = '' ) {
    	global $post;
    
    	$sd_address = '<div class="sd-address">';
    	if (isset($post->post_address) && $post->post_address) {
    		$sd_address .= apply_filters('sd_detail_post_add', $post->post_address, $post);
    	}
    	$sd_address .= '</div>';
    	$sd_address .= '<div class="sd-address">';
    	if ( geodir_is_page( 'detail' ) && !empty( $post ) && !empty( $post->post_neighbourhood )  && defined( 'GEODIRLOCATION_VERSION' ) ) {
    		if ( get_option( 'location_neighbourhoods' ) && $neighbourhood_info = geodir_location_get_neighbourhood_by_id( $post->post_neighbourhood, true, $post->post_location_id ) ) {
    			$sd_address .= '<div class="sd-neighbourhood" style="clear:both;"><span class="geodir-i-neighbourhood" style=""><i class="fa fa-location-arrow"></i> ' . __( 'Neighbourhood:', 'geodirectory' ) . ' </span> ' . $neighbourhood_info->hood_name . '</div>' . $social;
    		}
    	}
    	$sd_address .= '</div>';
    	$sd_address .= '<div class="sd-address">';
    	if (isset($post->post_city) && $post->post_city) {
    		$sd_address .= apply_filters('sd_detail_city_name', $post->post_city, $post);
    	}
    	if (isset($post->post_region) && $post->post_region) {
    		$sd_address .= ', ' . apply_filters('sd_detail_region_name', $post->post_region, $post);
    	}
    	if (isset($post->post_country) && $post->post_country) {
    		$sd_address .= ', ' . apply_filters('sd_detail_country_name', __($post->post_country, 'geodirectory'), $post);
    	}
    	$sd_address .= '</div>';
    
    	return $sd_address;
    }
    add_filter( 'sd_details_output_address', 'gd_custom_sd_details_output_address', 10, 2 );
    in reply to: caption issue #383802

    Giri
    Expired Member
    Post count: 3155

    Hi cora,

    You need to add custom css to style that.

    Something like this

    
    
    .logo-img .wp-caption.alignnone {
        width: 275px;
    }
    .logo-img .wp-caption.alignnone img {
        width: 46px;
        float: left;
    }

    Place that code in Geodirectory > Design > scripts > Custom CSS

    in reply to: lost gravatar #383611

    Giri
    Expired Member
    Post count: 3155

    John, I have no idea how to explain you.

    Let me make sure we are on the same page.

    You had override the gravatar2.png file last time and the changes lost when you update the theme.

    If that is your only problem, then I have provided a snippet which uses EXISTING hooks to MODIFY the gravatar image without modifying the supreme theme.

    If the code works now, then that means it would work in the future update too. Because the code is not placed inside the supreme theme but using a 3rd party plugin called code snippets.

    So how do you test?

    Just place the code, change the url part I mentioned and then see the avatar without claiming the listing. If you see your new avatar that means it works. If you see the old avatar then its not working.

    in reply to: caption issue #383610

    Giri
    Expired Member
    Post count: 3155
    This reply has been marked as private.
    in reply to: Translation lost #383604

    Giri
    Expired Member
    Post count: 3155

    Hi Eduardo,

    I have applied the changes. Please test and let me know if you still have any problem.

    Thanks

    in reply to: lost gravatar #383598

    Giri
    Expired Member
    Post count: 3155

    Forgot to mention, please create a code snippet with the code I provided.

    https://wordpress.org/plugins/code-snippets/

    Make sure to activate the snippet once you added the code.

    Thanks

    in reply to: lost gravatar #383595

    Giri
    Expired Member
    Post count: 3155

    Did you see the link I sent which had the marinegraphics logo instead of the wheel?

    Yes, I see the marinegraphics logo in your website. I’m not sure what you mean wheel. Are you talking about the gravatar logo “G” ? http://cdn.wpbeginner.com/wp-content/uploads/2012/08/gravatarlogo.jpg

    It is the authors avatar…a company logo. Is there any other place a logo would appear for a business that claimed a listing?

    Author logo appears only in detail page as far as I know.

    Thanks

    in reply to: lost gravatar #383593

    Giri
    Expired Member
    Post count: 3155

    Hi John,

    This is a customisation. In other words this snippet is made only for you.

    So its your responsibility to test and report me if you find any bugs since I have no access to your website.

    This is a few lines of code. So even if you find bugs there won’t be much.

    Test it in one website. If everything works fine then apply it in all websites.

    Here is the snippet.

    IMPORTANT: Replace the “YOUR IMAGE URL HERE” text with your gravatar image url. It should begin with

    http://
    
    
    
    add_filter('sd_detail_entry_author', 'sd_detail_entry_author_custom');
    function sd_detail_entry_author_custom() {
    	global $post, $preview;
    	if (!$preview) {
    		$author_id = $post->post_author;
    		$post_type = $post->post_type;
    		$entry_author = get_avatar(get_the_author_meta('email', $author_id), 100);
    	} else {
    		$user_id = get_current_user_id();
    		$post_type = $post->listing_type;
    		$entry_author = get_avatar(get_the_author_meta('email', $user_id), 100);
    	}
    
    	$post_id = $post->ID;
    
    	// WPML
    	$duplicate_of = geodir_is_wpml() ? get_post_meta((int)$post_id, '_icl_lang_duplicate_of', true) : NULL;
    	
    	if (!$preview && function_exists('geodir_load_translation_geodirclaim')) {
    		$geodir_post_type = get_option('geodir_post_types_claim_listing', array());
    
    		if (in_array($post_type, $geodir_post_type)) {
    			$is_owned = !$duplicate_of ? (int)geodir_get_post_meta($post_id, 'claimed', true) : (int)geodir_get_post_meta($duplicate_of, 'claimed', true);
    
    			if (!$is_owned) {
    				$entry_author = '<img src="YOUR IMAGE URL HERE"  height="100" width="100">';
    			}
    		}
    	}
    	
    	return $entry_author;
    }
    in reply to: alignment of [gd_cpt_categories] #383582

    Giri
    Expired Member
    Post count: 3155

    You are welcome.

    in reply to: lost gravatar #383581

    Giri
    Expired Member
    Post count: 3155

    I need to modify few lines of your existing code too.

    To answer your questions

    1. ?
    2. author gravatar only

    in reply to: alignment of [gd_cpt_categories] #383574

    Giri
    Expired Member
    Post count: 3155
    This reply has been marked as private.
    in reply to: alignment of [gd_cpt_categories] #383559

    Giri
    Expired Member
    Post count: 3155

    Hi Scott,

    I have added a filter in core. Can you provide your site admin details?

    I’ll apply the filter and add some custom code to move it to last.

    Thanks

    in reply to: Some ERROR in Pinpoint function #383557

    Giri
    Expired Member
    Post count: 3155

    I was talking about the mobile menu link (MENÚ=>Listing=>And so on). I used iphone 5s. It was pointing to #.

    in reply to: Translation lost #383556

    Giri
    Expired Member
    Post count: 3155

    Hi Eduardo,

    I have foxed that in DS.

    Can you post your login details? I’ll apply the fix.

    Thanks

Viewing 15 posts - 376 through 390 (of 2,661 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount