Pligg CMS Forums


Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials



Missing Adsense Module?

Advanced Tutorials for Modifying your Pligg site


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-13-2007, 10:43 AM
New Pligger
 
Join Date: Jun 2007
Posts: 3
Missing Adsense Module?

I installed Pligg 9.6 and the Adsense Revenue Share module but all I get is the following message.

Fatal error: TPL: [in ../modules/share_revenue/templates/show_ads.tpl line 3]: syntax error: adsense function does not exist (class.compiler.php, line 485) in /home/inslogic/public_html/class.template.php on line 923

Where should the adsense module function be?
Reply With Quote
Sponsor
  #2 (permalink)  
Old 06-14-2007, 02:40 PM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 847
Thats the correct path, I get that error as well.

Geoserv.
Reply With Quote
  #3 (permalink)  
Old 06-14-2007, 03:21 PM
chuckroast's Avatar
Coder/Designer
Pligg Version: 1.0
Pligg Template: Shredit
 
Join Date: Jun 2006
Location: PA
Posts: 3,391
The adsense module requires you to enable "extra fields" in your admin, then you must go to the modules section and install the "extra fields" module, then you can install and use adsense module.


Thank this developer

Get the Pligg 1.0 Module Pack and more ---> download here




Reply With Quote
  #4 (permalink)  
Old 06-14-2007, 04:45 PM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 847
Actually all I had to do was move the plugin from the adsense folder to the root/plugin folder

Geoserv
Reply With Quote
  #5 (permalink)  
Old 06-14-2007, 04:50 PM
chuckroast's Avatar
Coder/Designer
Pligg Version: 1.0
Pligg Template: Shredit
 
Join Date: Jun 2006
Location: PA
Posts: 3,391
Quote:
Originally Posted by Geoserv View Post
Actually all I had to do was move the plugin from the adsense folder to the root/plugin folder

Geoserv
You will still need to do the ^above to have it working correctly. The extra fields allow a user to add his/her adsense ID into their profile.


Thank this developer

Get the Pligg 1.0 Module Pack and more ---> download here




Reply With Quote
  #6 (permalink)  
Old 08-05-2007, 05:22 PM
New Pligger
 
Join Date: Mar 2007
Posts: 5
Similar Error

Hi, have you guys resolved this issue?

First, I enabled Extra Fields and the Adsense Revenue modules.
Profile Extra Fields v0.2 - disable
desc: Allows modules to add extra fields to the users profile.
Google Adsense Revenue Sharing v0.1 - disable
desc: Allows you to share your adsense revenue
requires: users_extra_fields version 0.1 - pass
Then, I also check the Module Management and put True under User Fields.

I keep on getting this error:


Fatal error: TPL: [in ../modules/share_revenue/templates/show_ads.tpl line 3]: syntax error: adsense function does not exist (class.compiler.php, line 485) in /home/housing/public_html/class.template.php on line 923

Do I need to compile anything else? Thank you!!
Reply With Quote
  #7 (permalink)  
Old 08-05-2007, 05:41 PM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
I looks like you need to do what Geoserv did

Quote:
Actually all I had to do was move the plugin from the adsense folder to the root/plugin folder

Free and Premium Pligg Hosting
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
  #8 (permalink)  
Old 08-05-2007, 08:55 PM
New Pligger
 
Join Date: Mar 2007
Posts: 5
Thanks

Thanks for the comment. I tried putting the files everywhere but the error still remains.

Is the file show_ads.tpl? or the Share Revenue folder? I tried both, enabled ExtraFields, and on the Module Management. They show up are okay for the Module Management.


Fatal error: TPL: [in ../modules/share_revenue/templates/show_ads.tpl line 3]: syntax error: adsense function does not exist (class.compiler.php, line 485) in /home/housing/public_html/class.template.php on line 923
Reply With Quote
  #9 (permalink)  
Old 08-05-2007, 09:02 PM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
move the file

/modules/share_revenue/plugins/function.adsense.php

to

/plugins

Free and Premium Pligg Hosting
I accept donations for my time helping users like you on the forum and IRC.

Last edited by kbeeveer46; 08-05-2007 at 09:31 PM.
Reply With Quote
  #10 (permalink)  
Old 08-05-2007, 09:29 PM
New Pligger
 
Join Date: Mar 2007
Posts: 5
Thanks so much

That worked!!
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adsense Revenue Sharing Mod for 8.2 Dravis Modification Tutorials 39 03-02-2009 01:16 PM
Fixes to Profile Extra Fields Module v0.2 and Extended Profile Module v0.1 redwine Modification Tutorials 3 10-18-2008 10:28 AM
Removing adsense from Featured Module? submitlink Module Support 1 08-16-2008 11:11 AM
Upgrading problem GurillaNET Installation and Upgrade Help 4 01-19-2007 10:56 AM

Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Use the coupon code PLIGG at Dreamhost.com to receive a discount of up to $84.00 Make a donation to support Pligg CMS development