Stiofan O'Connor

Forum Replies Created

Viewing 15 posts - 3,946 through 3,960 (of 13,774 total)
  • Author
    Posts
  • in reply to: Supreme Social Media #393916

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Any way that can be moved one spot over so it’s with the other social media links? Currently, it appears at the first link.

    It makes it a lot more complicated but…

    
    
    add_filter('sd_details_output_social','_my_extra_social_details',10);
    function _my_extra_social_details($output){
    	global $post;
    
    	if(isset($post->geodir_instagram) && $post->geodir_instagram){
    
    if (strpos($output, 'fa-external-link-square') !== false) {
    $output = str_replace('fa-external-link-square"></i></a>','fa-external-link-square"></i></a><a rel="nofollow" target="_blank" href="' . esc_url($post->geodir_instagram) . '"><i class="fa fa-instagram"></i></a>',$output);
    }elseif (strpos($output, 'fa-facebook-official') !== false) {
    $output = str_replace('fa-external-link-square"></i></a>','fa-facebook-official"></i></a><a rel="nofollow" target="_blank" href="' . esc_url($post->geodir_instagram) . '"><i class="fa fa-instagram"></i></a>',$output);
    }elseif (strpos($output, 'fa-twitter-square') !== false) {
    $output = str_replace('fa-external-link-square"></i></a>','fa-twitter-square"></i></a><a rel="nofollow" target="_blank" href="' . esc_url($post->geodir_instagram) . '"><i class="fa fa-instagram"></i></a>',$output);
    }else{
    $output = str_replace('<div class="sd-contacts">','<div class="sd-contacts"><a rel="nofollow" target="_blank" href="' . esc_url($post->geodir_instagram) . '"><i class="fa fa-instagram"></i></a>',$output);
    }
    
    // replace some icons
    $output = str_replace('fa-facebook-official','fa-wordpress',$output);
    
    	}
    	return $output;
    }

    Stiofan

    in reply to: Location Validation when adding a new listing #393909

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Basically you just dont want them changing the region/city manually? If so then should it not work like that already if you hide them? The GPS info will not be filled in unless they select the google address or they drag the map.

    Stiofan

    in reply to: Location Validation when adding a new listing #393817

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I can’t think of a super easy way to do this. If you can explain the idea more maybe i can think of something? Is it just addresses you are worried about?

    Stiofan

    in reply to: HTML Widgets Disapear #393813

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Great! thanks for letting us know 🙂

    in reply to: No FB link #393812

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    That link leads to “The link you followed may have expired, or the page may only be visible to an audience you’re not in.”

    Stiofan

    in reply to: Payment manager strings translation with WPML #393798

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    you can check for user translations here : https://wpgeodirectory.com/translate/projects

    Stiofan

    in reply to: editor user has no map #393773

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    They have settings to disable it for a certain CPT https://theme-fusion.com/fb-doc/technical/fusion-builder-custom-post-types/ it does not seem to be working.

    Stiofan

    in reply to: editor user has no map #393763

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    from the error message it is at about 135mb
    Its not working, you may need to contact the author of the buidler plugin to ask why its running on a CPT its disabled on.

    Thanks,

    Stiofan

    in reply to: Payment manager strings translation with WPML #393762

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I’ll mark this resolve but please realise its the wrong way and to change it ASAP.

    Stiofan

    in reply to: Additional Text Showing Up #393761

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    If you edit that post in the backend you will see something is adding a “Head & Footer Code” section, this is for code not text 🙂 remove the text there and all will be good.

    Thanks,

    Stiofan

    in reply to: editor user has no map #393759

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    OK thanks, the error output is
    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 22200 bytes) in /public_html/wp-content/uploads/fusion-builder-avada-pages/veterinarian.php on line 574

    The fusion builder is disabled on that CPT so it should not even be running there.

    I would guess increasing the PHP memory limit to 256mb would fix this in the short term but you should really ask the author of that plugin why its running on a CPT its disabled on.

    Thanks,

    Stiofan

    in reply to: editor user has no map #393751

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Where did u send it? What is the ftp host url?

    in reply to: editor user has no map #393749

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    It seems to be a problem related to fusion builder even though it is disabled for that CPT.

    If you provide FTP info i will double check.

    Stiofan

    in reply to: Location Region #393745

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    OK thanks,

    Not tested but something like this should do what you want.

    add_action(‘geodir_add_listing_geocode_js_vars’,’_my_region_name_changes’,20);

    
    
    function _my_region_name_changes(){
    echo "if(getState=='Edinburgh'){getState = 'Edinburgh & Lothians';}";
    }

    I would recommend adding the “code snippets” plugin to add the code, if you have any problems you can provide wp-admin details in a private reply (only staff can see) and i will take a look.

    You would also have to manually change the default location region to the exact text, the & might cause problems, if it does you might have to use “and” or a dash or slash.

    Thanks,

    Stiofan

    in reply to: Supreme Social Media #393744

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Looks like we both misread the question 🙁

    If you named your custom field html “instagram” then this code will add it:

    
    
    add_filter('sd_details_output_social','_my_extra_social_details',10);
    function _my_extra_social_details($output){
    	global $post;
    
    	if(isset($post->geodir_instagram) && $post->geodir_instagram){
    		$output = str_replace('<div class="sd-contacts">','<div class="sd-contacts"><a rel="nofollow" target="_blank" href="' . esc_url($post->geodir_instagram) . '"><i class="fa fa-instagram"></i></a>',$output);
    	}
    	return $output;
    }

    Thanks,

    Stiofan

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