Home › Forums › Calendar Products › Events Calendar PRO › Events calendar conflict with Revive Adserver
- This topic has 7 replies, 2 voices, and was last updated 10 years, 7 months ago by
George.
-
AuthorPosts
-
August 28, 2015 at 7:49 am #999905
jmegordon
ParticipantHi,
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’:’http://ads.tabletennisengland.co.uk/www/delivery/ajs.php’);
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,
August 28, 2015 at 11:12 am #1000011George
ParticipantHey 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!
GeorgeAugust 29, 2015 at 2:16 am #1000180jmegordon
ParticipantGreat, 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
August 31, 2015 at 4:01 pm #1000728George
ParticipantThanks 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!
September 1, 2015 at 1:38 am #1000799jmegordon
ParticipantHi 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,
September 2, 2015 at 1:24 pm #1001417George
ParticipantHey 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,
GeorgeSeptember 7, 2015 at 6:19 am #1002588jmegordon
ParticipantThank you George. I can’t locate the source of the issue, but not to worry I’ll just have to work around.
Many thanks,
September 8, 2015 at 9:29 am #1002967George
ParticipantSounds good Gerry, thanks for the update here!
Best of luck with your site,
George -
AuthorPosts
- The topic ‘Events calendar conflict with Revive Adserver’ is closed to new replies.
