Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 11-30-2006, 11:39 PM
New Pligger
 
Join Date: Nov 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up Thanks

Thats it man, thanks!!!

Im going to switch themes from molio to paul01 if the code has any differences I'll post it.
Reply With Quote
  #12 (permalink)  
Old 12-02-2006, 02:40 AM
Casual Pligger
 
Join Date: Oct 2006
Posts: 67
Thanks: 3
Thanked 17 Times in 6 Posts
lunatechinc,
have u changed it to paul01 templat?if yes then pls share ur experiance.is there any change needed for paul template??
Reply With Quote
  #13 (permalink)  
Old 12-03-2006, 09:59 PM
thebigmashup's Avatar
New Pligger
 
Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
WOW. Crisp, clean write-up made this as clear as could be. Thanks a ton.

Also - I have tested this on a site I completed today and as suspected - this appears to be working as advertised with the paul01 template on the latest beta.

I haven't tested with any new users or alternate google adsense info since I have just the one account. Feel free to help me complete that testing (shameless plug) at thebigmashup.com
Reply With Quote
  #14 (permalink)  
Old 12-03-2006, 11:56 PM
Casual Pligger
 
Join Date: Jun 2006
Location: Dover, NH
Posts: 62
Thanks: 3
Thanked 42 Times in 16 Posts
Quote:
Originally Posted by thebigmashup View Post
I haven't tested with any new users or alternate google adsense info since I have just the one account. Feel free to help me complete that testing (shameless plug) at thebigmashup.com
You don't need to have two legit Adsense accounts to test this with. You can just put in a fake number for the second account and it'll either display Google public service ads, or a file not found error where the Adsense block should be.

Another method I've used to test is to add 'Users Adsense' and 'Sites Adsense' after the Adsense code blocks in the link_summary.tpl file like this:
Code:
{adsense assign=users_adsense}
{if $users_adsense}
	<script type="text/javascript"><!--
		google_ad_client = "{$google_adsense_id}";
		google_alternate_ad_url = "";
		google_ad_width = 468;
		google_ad_height = 60;
		google_ad_format = "468x60_as";
		google_ad_type = "text";
		google_ad_channel ="{$google_adsense_channel}";
		google_color_border = "f6f6f6";
		google_color_bg = "f6f6f6";
		google_color_link = "330066";
		google_color_text = "000000";
		google_color_url = "330066";
		//-->
	</script>
	<script type="text/javascript"
	  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
	</script>Users Adsense
{else}				
	<script type="text/javascript"><!--
		google_ad_client = "Your Adsense ID number";
		google_alternate_ad_url = "";
		google_ad_width = 468;
		google_ad_height = 60;
		google_ad_format = "468x60_as";
		google_ad_type = "text";
		google_ad_channel ="Your Channel number";
		google_color_border = "f6f6f6";
		google_color_bg = "f6f6f6";
		google_color_link = "330066";
		google_color_text = "000000";
		google_color_url = "330066";
		//-->
	</script>
	<script type="text/javascript"
	  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
	</script>Sites Adsense
{/if}
This just displays the text after the Adsense ads so you can keep refreshing the page and see that the Adsense ID's are alternating randomly depending on what percent revenue sharing you've set.
__________________
Ryan 'Dravis' Knowles

RAGING DEBATE & PlugIM
Reply With Quote
  #15 (permalink)  
Old 12-04-2006, 07:32 AM
thebigmashup's Avatar
New Pligger
 
Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
testing the google adsense revenue share

Thanks for the tip on not needing another adsense account.

In testing I have set the font color to red in my ads and left the default for the others in order to see the results. (80/20 by default on thebigmashup)

I am seeing ':' in the registration fields for the adsense information instead of the appropriate titles...but I haven't had a chance to see if that is expected behavior...
Possibly this is because I am registering a simulated new user from the same IP address - in order to prevent adsense account mixups. I will take a look at this today to see if that is the case or if I hosed something up on my end.
Reply With Quote
  #16 (permalink)  
Old 12-04-2006, 08:04 AM
Casual Pligger
 
Join Date: Jun 2006
Location: Dover, NH
Posts: 62
Thanks: 3
Thanked 42 Times in 16 Posts
Quote:
Originally Posted by thebigmashup View Post
I am seeing ':' in the registration fields for the adsense information instead of the appropriate titles...but I haven't had a chance to see if that is expected behavior...
It sounds like you may have missed or overwritten the mods to libs\lang.conf:

Add the following code snip to the very end of the file:
Code:
//***** PlugIM.com mod: Adsense Revenue Sharing
//<SECTION>GOOGLE ADSENSE REVENUE SHARING</SECTION><ADDED></ADDED>
PLIGG_Visual_Google_Adsense_ID = "Google Adsense ID"
PLIGG_Visual_Google_Adsense_ID_Explain = "(begins with: pub-)"
PLIGG_Visual_Google_Adsense_Channel = "Adsense Channel (optional)"
PLIGG_Visual_Google_Adsense_Channel_Explain = "(numerical value)"
PLIGG_Visual_Google_Adsense_Only_Admins = "Only admins can see Google Adsense settings."
//***** End PlugIM.com mod
__________________
Ryan 'Dravis' Knowles

RAGING DEBATE & PlugIM
Reply With Quote
  #17 (permalink)  
Old 12-04-2006, 08:50 AM
thebigmashup's Avatar
New Pligger
 
Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dravis View Post
It sounds like you may have missed or overwritten the mods to libs\lang.conf:

Indeed.
I had these in there but had accidentally added a couple of blank lines at the end of the file - after the code.

Thank you both for the code and the tips.
I imagine users will be PM'ing you for your paid assistance so I will leave you alone for now.
Reply With Quote
  #18 (permalink)  
Old 12-04-2006, 06:15 PM
New Pligger
 
Join Date: Nov 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
alt temp.

Quote:
Originally Posted by newskicks View Post
lunatechinc,
have u changed it to paul01 templat?if yes then pls share ur experiance.is there any change needed for paul template??
Hey newskicks,

I'm using the paul01 template and just used the same instructions for mollio-beat and as far as I know everything is working correctly.


Oh and Dravis,
Thanks again for the write up.
Reply With Quote
  #19 (permalink)  
Old 12-06-2006, 07:39 AM
Casual Pligger
Pligg Version: 995
Pligg Template: Yget
 
Join Date: Sep 2006
Posts: 61
Thanks: 12
Thanked 3 Times in 3 Posts
Where should I place the AdSense code (Step 6) within mollio-beat\link_summary.tpl if I want to show AdSense only when the full story is shown (not on the front page)?
__________________
Pligg - a Swiss version of Pligg (very much online)
Reply With Quote
  #20 (permalink)  
Old 12-06-2006, 02:01 PM
Casual Pligger
Pligg Version: 995
Pligg Template: Yget
 
Join Date: Sep 2006
Posts: 61
Thanks: 12
Thanked 3 Times in 3 Posts
Let me rephrase my question: Will this mod work if I place the AdSense Code (Step 6) in mollio-beat/story_center.tpl instead of placing it in mollio-beat/link_summary.tpl?

Any help is highly appreciated.
__________________
Pligg - a Swiss version of Pligg (very much online)
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
Google Adsense Revenue Sharing v0.1 problem? mapperkids General Help 2 08-17-2008 10:54 PM
EASY NO WORRIES PAINLESS adsense revenue sharing mod placement mod guide johntheentrepreneur Modification Tutorials 3 03-11-2008 01:47 PM
Google adsense revenue sharing, question dadaas Modification Tutorials 0 10-03-2007 01:13 PM
Google Adsense Revenue Sharing v0.1 error for 9.6 xbizsky Modification Tutorials 7 09-15-2007 06:35 AM
Adsense Revenue Sharing Placement Question??? onouchs General Help 8 03-26-2007 06:14 PM


Search Engine Friendly URLs by vBSEO 3.2.0