Missing Adsense Module?

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-13-2007, 10:43 AM
New Pligger
 
Join Date: Jun 2007
Posts: 3
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
  #2 (permalink)  
Old 06-14-2007, 02:40 PM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 796
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
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Galleria
 
Join Date: Jun 2006
Posts: 3,835
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.


Download the full Pligg Module Pack





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: 796
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
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Galleria
 
Join Date: Jun 2006
Posts: 3,835
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.


Download the full Pligg Module Pack





Reply With Quote
  #6 (permalink)  
Old 08-05-2007, 05:22 PM
New Pligger
 
Join Date: Mar 2007
Posts: 4
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,215
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
Reply With Quote
  #8 (permalink)  
Old 08-05-2007, 08:55 PM
New Pligger
 
Join Date: Mar 2007
Posts: 4
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,215
move the file

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

to

/plugins

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: 4
That worked!!
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixes to Profile Extra Fields Module v0.2 and Extended Profile Module v0.1 redwine Questions and Comments 8 01-04-2010 07:06 PM
Google Adsense Module askhakwani Questions and Comments 3 12-29-2009 12:14 AM
Removing adsense from Featured Module? submitlink Questions and Comments 1 08-16-2008 11:11 AM
cann't vote in pligg (buliding 802) haxhax Questions and Comments 27 03-10-2007 06:53 AM
Upgrading problem GurillaNET Questions and Comments 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! Make a donation to support Pligg CMS development