Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #876391
    mathijs84
    Participant

    Thanks Rad,

    I will check that with my client for the first one.

    In the meanwhile, i need 1 more script added please.

    On this page: http://www.streamads.work-planning.com/producten/inboard-video/

    This is the script:

    <script type="text/javascript">
    window._ttf = window._ttf || [];
    _ttf.push({
           pid          : 50069
           ,lang        : "en"
           ,slot        : '#top .masthead .x-breadcrumb-wrap'
           ,format      : "inboard"
           ,components  : { skip: {delay : 0}}
           ,mutable     : true
           ,css         : "padding: 10.5px 0px;"
    });
    
    (function (d) {
            var js, s = d.getElementsByTagName('script')[0];
            js = d.createElement('script');
            js.async = true;
            js.src = '//cdn.teads.tv/media/format.js';
            s.parentNode.insertBefore(js, s);
    })(window.document);
    </script>
    
    #876836
    Jade
    Moderator

    Hi there,

    Thanks for the details.

    I have added the script to the page you have specified.

    Hope this helps.

    #877826
    mathijs84
    Participant

    Great guys,

    We now have the scripts running on al three pages.

    Is it possible to put them at a set location.
    We prefer the location in the screenshot: http://prntscr.com/ar822q

    So that go’s for the 3 pages:

    http://www.streamads.work-planning.com/producten/inarticle-video/
    http://www.streamads.work-planning.com/producten/inboard-video/
    http://www.streamads.work-planning.com/producten/innative/?ean-test-native=true&ean-pid-only=24201

    #878347
    Jack
    Keymaster

    Hi there,

    Thanks for writing back, before modifying the position of the script.

    I’ve checked your site and you actually have a couple of issues including a jQuery issue and a Cross Origin issue, you can find out more about the cross origin issue here: https://community.theme.co/kb/solutions-to-potential-setup-issues-font-awesome/

    I’d recommend resolving these before continuing, as the issues could prevent Cornerstone and theme from functioning correctly. I’ve attached a screenshot of the issue.

    It’s possible of your scripts isn’t correctly using jQuery no conflict wrappers, as jQuery is returning as not defined.

    Thank you!

    #878366
    mathijs84
    Participant

    Hi Jack,

    Sorry but i am not sure what the issues are and how to solve them 🙁

    I followed the instructions about the cross origin issue and changed the htacces file as described.
    Is that ok this way and do we need to take further actions??

    #879291
    Christian
    Moderator

    This could be resolved by your hosting provider as they have control over server settings. For more details on cross-origin resource sharing, please see http://enable-cors.org/.

    Thanks.

    #879561
    mathijs84
    Participant

    Alright, i contacted support and there response is this:

    Thank you for contacting with the Technical Support Team of SiteGround.

    Cross Origin is already enabled on our servers and may be managed via the .htaccess file of your website.

    If you need to add custom management to it, you should consult with your theme developer on the rules that you should add on your end in the file.

    Should you need future assistance or information, feel welcome to contact us back at any time.

    #880014
    Jack
    Keymaster

    Hi there,

    Thanks for writing back! I’ve checked the site and I don’t see the cross-origin anymore, but I still see the jQuery error which is actually breaking the whole page (screenshot attached).

    Can you post the contents of this script cdn.teads.tv/media/format.js on somewhere like Pastebin as I believe it could be conflicting with the other JS on your page.

    Thank you!

    #880125
    mathijs84
    Participant

    Hi we don’t see the jQuery error on our end.

    In what browser are you viewing it ?

    #881156
    Rue Nel
    Moderator

    Hello There,

    I am another support here checking on this topic. I am checking this page:
    http://www.streamads.work-planning.com/producten/inarticle-video/

    Since you are using SiteGround, could you please disable the supercacher in your hosting panel? The SuperCacher is developed by SiteGround exclusively for their customers. It increases the number of hits a site can handle and boosts the website loading speed. The SuperCacher includes 4 different caching options for maximum optimization of your websites. You can access the tool by clicking on the SuperCacher icon in your cPanel.

    For more information about this, please check it out here: https://www.siteground.com/tutorials/supercacher/supercacher_intro.htm

    Hope this helps.

    #881475
    mathijs84
    Participant

    Supercacher disabled. I still don’t see the site breaking. But how can we resolve the issue please

    #881801
    Jack
    Keymaster

    Hi there,

    Thanks for your reply! Has the Supercacher cache also been cleared? Attached is a screenshot of what I see in Firefox, but I also get the same in Chrome. Are you viewing logged in or logged out?

    Try following this article for the font-awesome issue https://community.theme.co/kb/solutions-to-potential-setup-issues-font-awesome/

    For the jQuery error, can you try disabling all plugins apart from Cornerstone please?

    Thank you!

    #881820
    mathijs84
    Participant

    I don’t see an attachment?
    It has been cleared and i tried it logged in as well as logged out!!

    I already followed these steps: https://community.theme.co/kb/solutions-to-potential-setup-issues-font-awesome/

    #882475
    Jack
    Keymaster

    Hi mathijs84,

    Sorry, should be attached now, I’ve asked Rad to check this as well, as unfortunately the whole site appears broken to me because of the jQuery error.

    #883226
    Rad
    Moderator

    Hi Mathijs84 and Jack

    I checked, I don’t see javascript error on my end, but I do still seeing the cross-domain issues.


    @Mathijs84

    Cross domain issues are related to the embed code that just added. It’s understandable because you can’t just put code to your site from somewhere. Your site will vulnerable if your browser will allow it by default. Though, you can always add rules to your site’s htaccess to allow it. Please add this to your site’s .htaccess

    <FilesMatch "\.(ttf|otf|eot|woff)$">
        <IfModule mod_headers.c>
            SetEnvIf Origin "http(s)?://(www\.)?(public.slidesharecdn.com|slideshare.net|cdn.teads.tv)$" AccessControlAllowOrigin=$0
            Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin
        </IfModule>
    </FilesMatch>

    As for moving the ads or embed within text content, that’s possible but maybe faulty. The ads are dynamically generated by the added code. Moving it while rendering may cause issues especially that loading time depends on each visitor’s connectivity. How about just turn the code into shortcodes, then manually place the shortcode to the content like you wish to achieve?

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-856864 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>