Stiofan O'Connor

Forum Replies Created

Viewing 15 posts - 11,581 through 11,595 (of 13,774 total)
  • Author
    Posts
  • in reply to: Map markers does not display #33966

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    hi peter please see here: we will be releasing a patch tomorrow:
    https://wpgeodirectory.com/support/topic/broken-category-icons/#post-33965

    in reply to: Broken Category Icons #33965

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    it takes a bit of getting sued too sorry, it’s hard to know everyones skill level.

    Basically replace this functions at the very end to the taxonomy_functions.php file

    
    
    function geodir_get_term_icon($term_id = false,$rebuild=false)
    {
        global $wpdb;
    	if(!$rebuild){$terms_icons = get_option('gd_term_icons');}
    	else{$terms_icons = '';}
    
    	if(empty($terms_icons)){
    		$default_icon_url = get_option('geodir_default_marker_icon');
    		$taxonomy = geodir_get_taxonomies();
            $post_types = geodir_get_posttypes();
            $tax_arr = array();
            foreach($post_types as $post_type){
                $tax_arr[]= "'".$post_type."category'";
            }
            $tax_c = implode(',',$tax_arr);
            $terms = $wpdb->get_results("SELECT * FROM $wpdb->term_taxonomy WHERE taxonomy IN ($tax_c)");
    		//$terms = get_terms( $taxonomy );
    
            //print_r($terms );exit;
    
    		foreach( $terms as $term ) {
    			$post_type = str_replace("category", "", $term->taxonomy);
    			$a_terms[$post_type][] = $term;
    
    		}
    
    		foreach ($a_terms as $pt=>$t2) {
    
    			foreach ($t2 as $term) {
    
    				//print_r($term);
    				$term_icon = get_tax_meta($term->term_id, 'ct_cat_icon', false, $pt);
    				if ($term_icon) {
    					$term_icon_url = $term_icon["src"];
    				} else {
    					$term_icon_url = $default_icon_url;
    				}
    				$terms_icons[$term->term_id] = $term_icon_url;
    			}
    		}
    
    		update_option('gd_term_icons',$terms_icons);
    	}
    
    	if ($term_id && isset($terms_icons[$term_id])) {
    		return $terms_icons[$term_id];
    	}elseif($term_id && !isset($terms_icons[$term_id])) {
    		return get_option('geodir_default_marker_icon');
    	}
    
    	return $terms_icons;
    }
    in reply to: Icons not shown on maps or popular categories #33950

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Thanks, please let me know what u find.

    Stiofan


    Stiofan O’Connor
    Site Admin
    Post count: 22956

    i have been on another problem, i will get to this next.
    Stiofan


    Stiofan O’Connor
    Site Admin
    Post count: 22956

    provided wp-admin details are not working.
    Please also provide FTP.

    Thanks,

    Stiofan

    in reply to: How do I set theme compatibility after upate? #33925

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi, Can you explain exactly what you want it to be like and we can help better. Also if you provide wp-admin via private reply then we can try and set it up for you the way you want it.

    Thanks,

    Stiofan

    in reply to: Icons not shown on maps or popular categories #33676

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I am not sure what you mean by that, can you explain how to replicate?

    Thanks,

    Stiofan

    in reply to: Search Function not working #33644

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi bob please check now, your default sort_by was being used instead of the search sort by…

    Stiofan

    in reply to: /location/ #33557

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi David, can you provide a better explanation of how/were you want to call the tag url? Why not hardcode for example?

    Thanks,

    Stiofan

    in reply to: Speed of the CSV Import Process #33447

    Stiofan O’Connor
    Site Admin
    Post count: 22956
    This reply has been marked as private.
    in reply to: Automatic updates reset my settings #33424

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Try going and changing a setting in your GDF settings and then changing it back, it’s likely your CSS file needs re-saved.

    Stiofan

    in reply to: Comparing page load time? #33418

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You have to remember this is first time loads with cache disabled, most of the time the JS/CSS files will be cached by browser etc…

    I used to use cloudflare all the time but recently had a few problems with them and i have disabled it on all my sites, but i would still give them a try, i just have not had the time to investigate my problems with them. Just be aware not to enable “rocketloader”

    Thanks,

    Stiofan

    in reply to: Broken Category Icons #33414

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    OK thanks, i have look into it further and it was a bug, you can find the changes here: https://github.com/GeoDirectory/geodirectory/commit/5208f06182361c0fbd5e11e0febc9d99e5d358bb

    You can provide wp-admin details and i will apply the fix if you are not sure or the release will be out tomorrow.

    Thanks,

    Stiofan

    in reply to: Comparing page load time? #33413

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I can say that i will be looking at improving all aspects of load times in the very near future. But 1.25mb is not a large page size these days, most yelp pages are about 2mb.

    Thanks,

    Stiofan

    in reply to: Broken Category Icons #33390

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi, Please try going into any category and clicking save, let me know if this fixes it.

    Stiofan

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