Preview Listing page blank (Youtube/Google calendar)

This topic contains 24 replies, has 4 voices, and was last updated by  Giri 8 years, 5 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #229335

    Tim Martyn
    Full Member
    Post count: 51
    This reply has been marked as private.
    #229341

    Tim Martyn
    Full Member
    Post count: 51
    This reply has been marked as private.
    #229343

    Giri
    Expired Member
    Post count: 3155

    Replace your google_calendar with geodir_google_calendar

    geodir prefix is added by GD i guess.

    Try that and let me know

    #229370

    Giri
    Expired Member
    Post count: 3155

    bluegnu, I have tested the code in my local before giving it to you. So most probably you are not using the correct field name in my code.

    Instead of “google_calendar” try with “geodir_google_calendar”.

    If thats not working too, let me know I’ll check your website.

    Thanks

    #229371

    Tim Martyn
    Full Member
    Post count: 51

    Hi

    I’ve changed the code to:

    // Google calendar fix
    function skip_iframe_tag_on_google_cal($tags, $pkey) {
    if ($pkey == ‘geodir_google_calendar’) {
    $tags = ‘<iframe>’;
    }
    return $tags;
    }
    add_filter(‘geodir_save_post_key’, ‘skip_iframe_tag_on_google_cal’, 10, 2);

    It’s still not working I’m afraid. Let me know if you need anything like passwords/ftp etc.

    Many thanks again.

    Tim

    #229376

    Giri
    Expired Member
    Post count: 3155

    Ok, the problem you have only on preview page right?

    If yes, can you tell me whether youtube video works on preview page?

    Can you also give me the page url where I can test your issue?

    #229464

    Tim Martyn
    Full Member
    Post count: 51
    This reply has been marked as private.
    #229806

    Giri
    Expired Member
    Post count: 3155

    Hi there,

    I have checked your source code.

    <

    and

    >

    tags are converted to html encoded chars.

    
    
    
    $tags = '<iframe>';

    I have corrected that one.

    Now its working. Please test it.

    Please note, you will see calendar tab on preview page. But you won’t see google cal on preview page. I found this error while testing in my local.

    The XSS Auditor refused to execute a script in ‘http://localhost/whoop/listing-preview/’ because its source code was found within the request. The auditor was enabled as the server sent neither an ‘X-XSS-Protection’ nor ‘Content-Security-Policy’ header.

    I’ll discuss with stiofan and try to fix that problem. Except that i believe everything would work fine.

    Let me know if you still have any issue.

    Thanks

    #229831

    Tim Martyn
    Full Member
    Post count: 51

    Thanks Giri, that’s great. I really appreciate all your help with this – you’ve all been incredibly helpful. Huge thanks.

    #229832

    Giri
    Expired Member
    Post count: 3155

    You are welcome 🙂

Viewing 10 posts - 16 through 25 (of 25 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount