XF 2.1 Can’t take this adv banner off

interforo

Active member
Hi

I am having hard time to get rid of this adv banner.
It is located at the bottom of my forum and shows up randomly

Can’t locate the code and delete it
Please help

My forum: interfans.org/forum
 

Attachments

  • F4EBB17C-C742-4FBF-BFD4-90F004CA0C01.webp
    F4EBB17C-C742-4FBF-BFD4-90F004CA0C01.webp
    48.8 KB · Views: 24
Are you using Google Auto Ads? They seem to stick them everywhere.

Do you see that on the default Xenforo theme as well as your custom theme?

If you use Inspector in your browser, do you see anything unusual?
 
Here is the code
Searched for it but can’t find it
Tried on Page_Container and in the template search
 

Attachments

  • D4CAA081-8926-484C-A949-26CFD5BE54FB.webp
    D4CAA081-8926-484C-A949-26CFD5BE54FB.webp
    78.5 KB · Views: 12
You have this code in your header, just before the closing /head tag:

Code:
<header class="p-header" id="header">
  <div class="p-header-inner">
    <div class="p-header-content">

      <div class="p-header-logo p-header-logo--image">
        <a href="/forum/">
          <img src="https://interfans.org/immagini/NUOVO-LOGO-IF-nero.png"
            alt="Forum Inter | Interfans.org"
             />
        </a>
      </div>

      <div class="samCodeUnit" data-position="container_header"><div class="samItem" data-xf-init="sam-item" data-id="6" data-cv="true" data-cc="true"><script type='text/javascript'><!--//<![CDATA[
   var m3_u = (location.protocol=='https:'?'https://servedby.publy.net/ajs.php':'http://servedby.publy.net/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=19076");
   document.write ('&amp;cb=' + m3_r);
   if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
   document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
   document.write ("&amp;loc=" + escape(window.location));
   if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
   if (document.context) document.write ("&context=" + escape(document.context));
   if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
   document.write ("'><\/scr"+"ipt>");
//]]>--></script></div></div>

If you don't see that in PAGE_CONTAINER, see if there are any other template modifications listed or macros.
 
You have this code in your header, just before the closing /head tag:

Code:
<header class="p-header" id="header">
  <div class="p-header-inner">
    <div class="p-header-content">

      <div class="p-header-logo p-header-logo--image">
        <a href="/forum/">
          <img src="https://interfans.org/immagini/NUOVO-LOGO-IF-nero.png"
            alt="Forum Inter | Interfans.org"
             />
        </a>
      </div>

      <div class="samCodeUnit" data-position="container_header"><div class="samItem" data-xf-init="sam-item" data-id="6" data-cv="true" data-cc="true"><script type='text/javascript'><!--//<![CDATA[
   var m3_u = (location.protocol=='https:'?'https://servedby.publy.net/ajs.php':'http://servedby.publy.net/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=19076");
   document.write ('&amp;cb=' + m3_r);
   if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
   document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
   document.write ("&amp;loc=" + escape(window.location));
   if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
   if (document.context) document.write ("&context=" + escape(document.context));
   if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
   document.write ("'><\/scr"+"ipt>");
//]]>--></script></div></div>

If you don't see that in PAGE_CONTAINER, see if there are any other template modifications listed or macros.
Hi,

first of all thank you for your help
The code you reported it is not the one that calls out the banner
Instead it's the one reported in the image above, but I can't find the code :(
 
Well I can barely see the ad in the forum. Post a better screenshot of that and hover over it to see where it's linking to. Maybe that will make it easier to find.

Also go to inspector again and highlight the ad so you can see what's calling it.
 
Top Bottom