Show Error when i enable Google Adsense Revenue Sharing v0.1

Register an Account
Reply
 
Thread Tools Display Modes
  #11 (permalink)  
Old 02-06-2008, 08:14 AM
Koshin's Avatar
New Pligger
Pligg Version: 9.9.0
Pligg Template: Convergence v9.9.0
 
Join Date: Jan 2008
Posts: 27
Is there a way to display the ads on the side, and the current format (468x60) after every 4/5 posts? like designfloat.com
Reply With Quote
  #12 (permalink)  
Old 02-20-2008, 12:24 PM
gen3ric's Avatar
Casual Pligger
Pligg Version: 9.X
Pligg Template: Custom
 
Join Date: Jul 2007
Location: Atlanta, GA
Posts: 91
Quote:
Originally Posted by Koshin View Post
Is there a way to display the ads on the side, and the current format (468x60) after every 4/5 posts? like designfloat.com
At the very bottom of link_summary.tpl, add the following code with your Adsense code:

Code:
{if $pagename neq "story"}

	{if $link_shakebox_index eq 5}
	<div align="center" >
		<!-- Your Adsense Code Here -->
	</div>
	{/if}

	{if $link_shakebox_index eq 11}
	<div align="center" >
		<!-- Your Adsense Code Here -->
	</div>
	{/if}
	
	{if $link_shakebox_index eq 17}
	<div align="center" >
		<!-- Your Adsense Code Here -->
	</div>
	{/if}

{/if}
Reply With Quote
  #13 (permalink)  
Old 04-29-2008, 04:19 PM
New Pligger
Pligg Version: 9.9
Pligg Template: Custom
 
Join Date: Apr 2008
Posts: 2
I have the same problem, and I can't find that adsense_function.php file anywhere. Help!
Reply With Quote
  #14 (permalink)  
Old 05-03-2008, 05:33 PM
New Pligger
Pligg Version: 9.2
Pligg Template: blue
 
Join Date: Dec 2007
Posts: 4
After I was trying to fix a problem with the Adsense function. I got an error on my sidebar at the homepage of my site. Can anyone help?
my site PolitiQ / CAPA

Problem with sidebar on home page
Reply With Quote
  #15 (permalink)  
Old 05-08-2008, 04:01 PM
New Pligger
 
Join Date: Apr 2008
Posts: 5
Quote:
Originally Posted by chuckroast View Post
I'm guessing you are all getting this error beceause you didn't move the adsense_function.php file into the /plugins folder as per the instructions in the readme.
Which readme are you referring to ? I'm sorry if I'm missing something but I just downloaded pligg 9.9 and there seems to be one readme in the root folder which has instructions about installing pligg but no mention of adsense. The share_revenue_readme in its instructions just say "Update tempats/show_ads.tpl with your adsense id" and I can't find any file called adsense_function.php there is one file called function.adsense.php which is already in the plugins folder. I am getting this eror when I enable adsense revenue sharing.
Code:
Warning: file_exists(): open_basedir restriction in effect.
File(/hsphere/local/home/username/subdomain.mysite.com/../modules/share_revenue/plugins/compiler.adsense.php) is not within the allowed path(s):
(/hsphere/local/home/username/subdomain.mysite.com:/tmp:/var/tmp:/usr/local/lib/php) in
/hsphere/local/home/username/subdomain.mysite.com/class.template.php on line 843 Warning: file_exists(): open_basedir restriction in effect.
File(/hsphere/local/home/username/subdomain.mysite.com/../modules/share_revenue/plugins/block.adsense.php) is not within the allowed path(s):
(/hsphere/local/home/username/subdomain.mysite.com:/tmp:/var/tmp:/usr/local/lib/php) in
/hsphere/local/home/username/subdomain.mysite.com/class.template.php on line 843 Warning: file_exists(): open_basedir restriction in effect.
File(/hsphere/local/home/username/subdomain.mysite.com/../modules/share_revenue/plugins/function.adsense.php) is not within the allowed path(s):
(/hsphere/local/home/username/subdomain.mysite.com:/tmp:/var/tmp:/usr/local/lib/php) in
/hsphere/local/home/username/subdomain.mysite.com/class.template.php on line 843 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
/hsphere/local/home/username/subdomain.mysite.com/class.template.php on line 923
Reply With Quote
  #16 (permalink)  
Old 05-09-2008, 11:32 AM
New Pligger
 
Join Date: Mar 2008
Posts: 18
Hi,
I have same problem as described before from others users ... (Fatal error: TPL: [in ../modules/share_revenue/templates/show_ads.tpl line 437]: syntax error: adsense function does not exist (class.compiler.php, line 485) in /home/jindimen/public_html/homix/class.template.php on line 923).
Well ... I tried to clean /template_c dir, the /cache dir .... nothing.
I tried to overwrite function_adsense.php (into /share_revenue/plugins dir) ... nothing.
I'm desperate ...
Anyone can helps me ?

Please

Thanks

Carlo
Reply With Quote
  #17 (permalink)  
Old 05-14-2008, 01:35 PM
New Pligger
 
Join Date: Mar 2008
Posts: 18
I solved ... It's necessary to copy from /modules/share_revenue/plugins/function_adsense.php ... to /plugins ... (not modules, but into plugins in root dir ...)

Stupid boy ...
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 Questions and Comments 40 05-17-2011 10:31 AM
Google adsense revenue sharing, question dadaas Questions and Comments 2 03-30-2011 07:01 AM
Google Adsense Revenue Sharing v0.1 error for 9.6 xbizsky Questions and Comments 8 11-16-2009 05:27 AM
Error - Google Adsense Revenue Sharing v 0.1 a1omads Questions and Comments 10 10-29-2008 01:17 PM
Google Adsense Revenue Sharing v0.1 problem? mapperkids Questions and Comments 2 08-17-2008 11:54 PM


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