Welcome, Guest
Username Password: Remember me

ad modules and clientips
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: ad modules and clientips

ad modules and clientips 2 years, 1 month ago #723

  • leeonardo
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Hi,
I just installed the DJBAdsense module on my site at www.buoyantlife.net. It seems to work fine in the right column of both my home page and internal pages. But when I then created another module for the banner space at the top of the site I get the following message when trying to view the my pages.

Fatal error: Cannot redeclare getclientip() (previously declared in /home1/yezucanc/public_html/buoyantlife/modules/mod_djbadsense/mod_djbadsense.php:5) in /home1/yezucanc/public_html/buoyantlife/modules/mod_djbadsense/mod_djbadsense.php on line 4

I don't understand how to declare a clientip, or how to fix this problem.

Any help you can provide will be greatly appreciated.
Lee

Re:ad modules and clientips 2 years, 1 month ago #724

I presume that on the page that has the issue, there are in fact two adsense modules showing?

I never thought about that possibility, and it would cause the problem you are seeing. I can fix this fairly quickly, so expect an update within a few hours that should resolve the issue.

Re:ad modules and clientips 2 years, 1 month ago #725

  • leeonardo
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
thank you.
yes, in each case adding the banner means there will be two modules on the same page. I will look forward to your fix.
Lee

Re:ad modules and clientips 2 years, 1 month ago #726

Attached is version 1.0.1, which should fix the issue. I have tested it on my test site, and it is working. I haven't tested it with two modules showing, but have made the necessary changes for this to now be supported.

Please let me know if it solves the problem.

Attachment mod_djbadsense.zip not found

Attachments:

Re:ad modules and clientips 2 years, 1 month ago #727

Actually, I've just worked out how to display the two modules and have tested it properly. I now have two adsense modules showing on my test site with no errors.

Re:ad modules and clientips 2 years, 1 month ago #728

  • leeonardo
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
great. do I need to remove the prior install or can I just install it on top of the previous one?

Re:ad modules and clientips 2 years, 1 month ago #729

You need to remove the previous one, it won't upgrade (the Joomla installer will throw an error). So you'll have to copy your settings (inc. Google adsense code) out before uninstalling.

Re:ad modules and clientips 2 years, 1 month ago #730

  • leeonardo
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Ok, got it. seems to be working fine now. thanks for your help.
Lee
  • Page:
  • 1
Time to create page: 3.36 seconds
Copyright © 2009 www.cedit.biz. All rights reserved.