![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| Here it is, the mod you’ve all been waiting for, and if it looks intimidating… that’s because it is. Before we get started, here’s some key information:
Users may add an Adsense ID and Adsense Channel (optional) to their account settings. If they set they’re Adsense ID, from that point forward, every time a story they posted is viewed, there’s a chance their ads are displayed. The optional Adsense Channel allows the user to track how many impressions and clicks their ads are getting through their Adsense account. You set the default revenue share percent for all users while implementing the mod, but after that, you may adjust any user’s revenue sharing percent through the user administration menu. So for example if you want to reward one particular member for their recent participation, you can bump just that one user’s revenue share from 50% to 80%. The way this mod is set up, there is no revenue sharing for ads on the front page summary, or any other pages on the site, just the full story pages where you can submit comments. As a safety precaution to protect your users, as long as they’re logged into their user account, they’ll never be shown their own ads in an attempt to help prevent them from accidentally clicking them and getting banned from Google.On to the changes… 1.) Database Changes: Using phpMyAdmin, login to your Pligg database and add the following fields to the end of the users table:google_adsense_id VARCHAR(64) not null*Default Value: This is the default percent revenue sharing value you want to automatically assign all new and current users of your site. I don’t recommend changing this once you’ve set it, so think long and hard on what you want it to be. In this example, when the author’s stories are viewed, their ads are shown 50% of the time. You can set it anywhere between 0-100. 2.) Root files: admin_users.php: add the following code snip to approximately line 101:profile.php: add the following 2 code snips: 3.) Lib Files: libs\link.php: add the following 3 code snips:Continued in next post... Last edited by Dravis : 12-15-2006 at 12:19 AM. |
| Sponsored Links |
|
Check out the New Modules at the Pligg Pro Shop.
|
| |||
| Continued from previous post... libs\lang.conf: add the following code snip to the very end of the file: 4.) New File: plugins\function.adsense.php: save this code as a new file named function.adsense.php and upload it to the plugins directory: 5.) Template files: mollio-beat\profile_center.tpl: add the following code snip to approximately line 59:admin_templates\user_edit_center.tpl: add the following code snip to approximately line 16: 6.) The Final Step: WARNING: Messing this part up could seriously get your Adsense account banned. That's it! Let the questions roll… I’ll check in a couple times a day to answer any questions and PM’s enquiring about availability and pricing to have me do the install for you. Enjoy!
__________________ Ryan 'Dravis' Knowles Pligg members, join PlugIM today and receive 100% Adsense revenue sharing for life. Just email your PlugIM username to pliggoffer@plugim.com |
| The Following 13 Users Say Thank You to Dravis For This Useful Post: | ||
| ||||
| Dravis Great work! This is one of the best write-ups I've seen in a long time. Thanks again.
__________________ Visit PliggPro the official Pligg Mods & Template Shop! |
| ||||
| bravo! i really like the way you set it out (jealous) and a really nice mod.
__________________ Anatomy of the Pligg template Help needed |
| |||
| Thanks a million for the great mod, Dravis! In step 5 you made the following note: Don’t forget to update all the tabindex values the rest of the way down the template. I understand that I should update all the tabindex, but so far I did not really understand how this should be done exactly. Any help or example will be highly appreciated. Dubai |
| |||
| Quote:
Thanks for the positive feedback so far guys.
__________________ Ryan 'Dravis' Knowles Pligg members, join PlugIM today and receive 100% Adsense revenue sharing for life. Just email your PlugIM username to pliggoffer@plugim.com |
| ||||
| oh snap.. looks like I'm going to mess around with this and not study today. Oh well ; )
__________________ I accept donations for my time helping users like you on the forum and IRC. FREE and premium Pligg Web Hosting (NO ads, Includes MySQL, PHP, PHPMyAdmin, and Control Panel) - PM me for discounts on premium packages or if you would like a custom-made package. Paypal accepted. |
| |||
| Quote:
|
| |||
| small issue Quote:
you call for this: Code: if(($link = $db->get_row("SELECT links.*, users.user_login, users.user_email, users.google_adsense_id, users.google_adsense_channel, users.google_adsense_percent FROM links, users WHERE link_id = $id AND user_id=link_author"))) { Code: if(($link = $db->get_row("SELECT " . table_links . ".*, " . table_users . ".user_login, " . table_users . ".user_email FROM " . table_links . ", " . table_users . " WHERE link_id = $id AND user_id=link_author"))) { Thanks for the mod, this and the rss import are the reason I'm using pligg ![]() |
| |||
| lunatechinc, try this: Code: if(($link = $db->get_row("SELECT " . table_links . ".*, " . table_users . ".user_login, " . table_users . ".user_email, " . table_users . ".google_adsense_id, " . table_users . ".google_adsense_channel, " . table_users . ".google_adsense_percent FROM " . table_links . ", " . table_users . " WHERE link_id = $id AND user_id=link_author"))) {
__________________ Ryan 'Dravis' Knowles Pligg members, join PlugIM today and receive 100% Adsense revenue sharing for life. Just email your PlugIM username to pliggoffer@plugim.com |
| The Following User Says Thank You to Dravis For This Useful Post: | ||
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PlugIM.com - For all things Internet Marketing related | Dravis | My Pligg Site | 11 | 11-15-2006 01:43 PM |
| Another Adsense placement question | godinu | General Help | 3 | 09-30-2006 12:14 PM |
| anyone still know how to implement adsense? | godinu | Pligg Mods | 1 | 09-26-2006 08:02 PM |
| Pligg License and adsense | observer_24_7 | General Help | 1 | 05-15-2006 04:22 PM |
| Google AdSense | zeropaid | General Help | 0 | 03-15-2006 06:27 PM |






Linear Mode

