Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: nuri552 - tammikuu 03, 2012, 05:50:12 AP

Otsikko: How to Remove Google Adsense Above the Logo ?
Kirjoitti: nuri552 - tammikuu 03, 2012, 05:50:12 AP
Hi, my friend tried to integrate the Adsense to the forum ; but something went wrong. So, we decided to remove it. But we can't.

In IE 8, we saw this info box :("Web sayfasi bulunamiyor" means in English : "The web site is not found !")

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FCvuhk.jpg&hash=bdf225d9d7afef59d712556c7e08a647ab78a069)

We didn't see it in Google Chrome, Mozilla Firefox and Safari because of an extension called "Adblock Plus" . But the result is :

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FsHnm7.jpg&hash=d02bc1a8abc55001252815e28e114908017c0eb5)

I need to fix this situation. How I can remove this "Adsense" script ? I'm using the default theme of SMF v2.0.2.

P.S.

I deleted this part of my index.template.php :


echo'

<script type="text/javascript"><!--
google_ad_client = "ca-pub-5269908690302809";
/* Reklamc


When I did it, "Template Parse" error is shown up.

Can you help me to remove this script please ? Thanks, much appreciated.

Otsikko: Re: How to Remove Google Adsense Above the Logo ?
Kirjoitti: kat - tammikuu 03, 2012, 06:28:31 AP
Do you have any mods installed?

If not, why not replace those files with the originals?

Or, perhaps, use the backups you took, before adding Adsense?
Otsikko: Re: How to Remove Google Adsense Above the Logo ?
Kirjoitti: nuri552 - tammikuu 03, 2012, 06:34:13 AP
Thanks sir, forget to use backup :)

Problem solved after backup. Much appreciated.
Otsikko: Re: How to Remove Google Adsense Above the Logo ?
Kirjoitti: kat - tammikuu 03, 2012, 06:40:59 AP
Pleasure! :)