Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-13-2007, 10:43 AM
New Pligger
 
Join Date: Jun 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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
  #2 (permalink)  
Old 06-14-2007, 02:40 PM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 849
Thanks: 74
Thanked 49 Times in 45 Posts
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: ExpertVision
 
Join Date: Jun 2006
Location: PA
Posts: 2,398
Thanks: 171
Thanked 439 Times in 278 Posts
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.
__________________
Visit PliggPro the official Pligg Mods & Template Shop!

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: 849
Thanks: 74
Thanked 49 Times in 45 Posts
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: ExpertVision
 
Join Date: Jun 2006
Location: PA
Posts: 2,398
Thanks: 171
Thanked 439 Times in 278 Posts
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.
__________________
Visit PliggPro the official Pligg Mods & Template Shop!

Reply With Quote
  #6 (permalink)  
Old 08-05-2007, 05:22 PM
New Pligger
 
Join Date: Mar 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
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
Thanks: 254
Thanked 649 Times in 513 Posts
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
__________________
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: 0
Thanked 0 Times in 0 Posts
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
Thanks: 254
Thanked 649 Times in 513 Posts
move the file

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

to

/plugins
__________________
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: 0
Thanked 0 Times in 0 Posts
Thanks so much

That worked!!
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
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
Adsense Revenue Sharing Mod for 8.2 Dravis Modification Tutorials 38 03-13-2008 09:57 AM
cann't vote in pligg (buliding 802) haxhax Bug Report 27 03-10-2007 06:53 AM
Upgrading problem GurillaNET Installation and Upgrade Help 4 01-19-2007 10:56 AM


Search Engine Friendly URLs by vBSEO 3.2.0