Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Help with Adsense Plugin

edited November 2010 in Vanilla 2.0 - 2.8
I can't figure out why I'm getting this error after placing my adsense parameters into the code. After I edit the code, and go to the homepage, I get this error...

Fatal error: Class 'Module' not found in /home/content/53/7023253/html/cdlsite/plugins/GoogleAdSenseAfterDiscussion/class.adsenseafterdiscussionmodule.php on line 5


  • Options

    Lets get that fixed for you.

    Steps to correct your Error

    Step 1. Open the file class.adsenseafterdiscussionmodule.php
    Step 2. Go to Line 5 and find class AdSenseAfterDiscussionModule extends Module
    Step 3. Change it to: class AdSenseAfterDiscussionModule extends Gdn_Module
    Step 4. Please re-upload the newly edited file class.adsenseafterdiscussionmodule.php

    Let me know if this corrects your issue
  • Options
    Hey Kyle, thanks a million for your help. Yes it worked, and no it didn't work. It actually left the ad on top of the post page just under the menu. I already had two text link ads under the first discussion, but I think I like your tweek better.

    I'd still like to figure out how to get the ads to show after all discussions.

    I'm loving Vanilla, being a simple guy, I believe less is not more. I definitely see a future for Vanilla, and it's a beautiful platform. Any ideas on how to get the ads to show after all discussions?

    Thanks Ty
  • Options
    I might be able to come up with a work around as I've created a Premium Subscription Plugin to remove ad sense ad's and with out that subscription ad's are showed after every discussion (replies) and such by a Adbot (designed by my friend and me) so I'll get back to you with something :)
  • Options
    will be waiting...thanks
Sign In or Register to comment.