Events calendar conflict with Revive Adserver

Home Forums Calendar Products Events Calendar PRO Events calendar conflict with Revive Adserver

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #999905
    jmegordon
    Participant

    Hi,

    After a lot of testing, I have finally found the source of the problem with The Events Calendar Pro on my not-for-profits website.

    It clashes with the following lines of code, which display our Revive adverts:

    <script type=’text/javascript’><!–//<![CDATA[
    var m3_u = (location.protocol==’https:’?’https://ads.tabletennisengland.co.uk/www/delivery/ajs.php&#8217;:’http://ads.tabletennisengland.co.uk/www/delivery/ajs.php&#8217;);
    var m3_r = Math.floor(Math.random()*99999999999);
    if (!document.MAX_used) document.MAX_used = ‘,’;
    document.write (“<scr”+”ipt type=’text/javascript’ src='”+m3_u);
    document.write (“?zoneid=20&blockcampaign=1”);
    document.write (‘&cb=’ + m3_r);
    if (document.MAX_used != ‘,’) document.write (“&exclude=” + document.MAX_used);
    document.write (document.charset ? ‘&charset=’+document.charset : (document.characterSet ? ‘&charset=’+document.characterSet : ”));
    document.write (“&loc=” + escape(window.location));
    if (document.referrer) document.write (“&referer=” + escape(document.referrer));
    if (document.context) document.write (“&context=” + escape(document.context));
    if (document.mmm_fo) document.write (“&mmm_fo=1”);
    document.write (“‘><\/scr”+”ipt>”);
    //]]>–></script><noscript></noscript>

    Could you please advise as to a potential solution so that I can have the two scripts functioning alongside each other.

    In addition, where can I find out more information on discounts for not-for-profit organisations.

    Many thanks,

    #1000011
    George
    Participant

    Hey Gerry,

    I’m sorry you’ve encountered a conflict on your site.

    To address your question in reverse order โ€“ย yes, you can definitely learn more about our Non-Profit Partnership Program here: https://theeventscalendar.com/knowledgebase/do-you-offer-discounts-for-non-profit-organizations/

    If you are approved for a non-profit license, the license is free, but does not come with support. For access to these very support forums, a full license is required.

    Just putting that caveat out there! We can definitely still help you out here for now ๐Ÿ™‚

    Speaking of doing that, can you answer these following questions?

    1. How did you learn that The Events Calendar was the culprit for that conflict?
    2. What is the conflict? If you found specific JavaScript errors, can you paste them here for reference?
    3. Can you share a URL to a place on your website where this conflict is happening live, so we can take a look at it? I went to http://tabletennisengland.co.uk and searched for such a page but was unable to find one.

    Thank you!
    George

    #1000180
    jmegordon
    Participant

    Great, thanks George – i’ll apply when i’m back in the office on Tuesday.

    I found the conflict by spending hours going through all of our lines of code and removing them section by section until I had located the source of the issue.

    Our website is http://www.tabletennisengland.co.uk/tournaments

    You’ll notice that on all of the other pages on the website there is an advert in the header.php section of the website (displayed by the code located at the start of this thread). By having this advert in place it prevents google maps from displaying, search by date and location from functioning and various other view errors in the Events Calendar. As soon as the code is removed, the events calendar functions mostly as intended.

    Can you suggest a workaround?

    Many thanks

    #1000728
    George
    Participant

    Thanks for the update Gerry!

    So it sounds like it is the ad-related code that is breaking The Events Calendar, not code from The Events Calendar that is breaking the ads? Is this accurate?

    I unfortunately do not have a workaround, nor can we troubleshoot bugs like this that stem from other codebases on a site than our own ๐Ÿ™

    Sorry to disappoint on that Gerry!

    #1000799
    jmegordon
    Participant

    Hi George,

    That is accurate, however it only happens when the adverts are in the header.php file.

    I’m unable to seek support for the Revive adverts and therefore need to find a workaround from the events plugin side.

    How would I go about troubleshooting this myself?

    Many thanks,

    #1001417
    George
    Participant

    Hey Gerry,

    Unfortunately, to troubleshoot the code yourself you’d have to…well, troubleshoot the code yourself. What I mean by this is to basically just open up a console in your browser, and look for JavaScript errors that are reported there. Then, work through each JavaScript error one by one. If you’re not familiar with using a browser console, it’s fortunately quite simple –ย check out a free tool like Firebug if you use FireFox, or the Developer Tools for either Safari or Chrome to get started there.

    The only other thing I can think of would be to use different WordPress plugins for this, if at all possible. For example, the famous “Ad Code Manager” plugin is very well-written and used on WordPress.com VIP’s platform. โ†’ https://wordpress.org/plugins/ad-code-manager/

    I’m sorry that there’s not much more to be done from our end of things Gerry ๐Ÿ™

    Best of luck with your site,
    George

    #1002588
    jmegordon
    Participant

    Thank you George. I can’t locate the source of the issue, but not to worry I’ll just have to work around.

    Many thanks,

    #1002967
    George
    Participant

    Sounds good Gerry, thanks for the update here!

    Best of luck with your site,
    George

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Events calendar conflict with Revive Adserver’ is closed to new replies.