Hope you all like this hack for vbulletin My paypal is if you would like to make a small donation Add a User Profile Field with these settings: Profile Field Type: Single-Line Text Box Title: (your choice) Description: (your choice) Field Editable By User: Yes Private Field: Yes Field Searchable On Memers List: No Show On Members List: No (I have only specified settings for the fields you will need to change from their defaults.) In the php_include_start template, add this code: srand(); $random_number = rand(0, 1); $ga_adsenseid = 'ENTER_YOUR_ADSENSE_ID_HERE'; if ($random_number == 1) { if (THIS_SCRIPT == 'showthread') { if (!empty($_REQUEST['t'])) { $ga_threadid = $_REQUEST['t']; } else { $ga_threadid = $_REQUEST['threadid']; } $ga_thread = $DB_site->query_first(" SELECT postuserid FROM ".TABLE_PREFIX."thread WHERE threadid = $ga_threadid "); $ga_user = $DB_site->query_first(" SELECT field7 AS adsenseid FROM userfield WHERE userid = $ga_thread[postuserid] "); } elseif (THIS_SCRIPT == 'showpost') { if (!empty($_REQUEST['p'])) { $ga_postid = $_REQUEST['p']; } else { $ga_postid = $_REQUEST['postid']; } $ga_post = $DB_site->query_first(" SELECT userid FROM ".TABLE_PREFIX."thread WHERE postid = $ga_postid "); $ga_user = $DB_site->query_first(" SELECT field7 AS adsenseid FROM userfield WHERE userid = $ga_post[userid] "); } if (!empty($ga_user['adsenseid'])) { $ga_adsensecode = $gauser['adsenseid']; } } PHP: Then, whereever you have your AdSense display code, find the spot where you specify your AdSense ID and replace it with $ga_adsenseid . Also make sure in the above code that you enter YOUR AdSense ID in the spot above where it says "ENTER_YOUR_ADSENSE_ID_HERE".
I paid for this hack to be created along time ago, before all the other boards started to get it! So dont you accuse me of ripping code mate!
DP wasn't the first forum to develop that code, so TWJ wouldnt be doing anything wrong in my opinion.
My original post had nothing to do with DP but I will just leave it at that and walk away from this post. Enjoy
If we are going to be code police, let's talk non RFC complient RSS readers. Holy can of worms Batman!
Like I said, I'm not getting at anything. I just clarified that DP never had anything to do with my posting. Thats all
I'd seen it on vB forums back as far as a 2.0x release (*in a less advanced way than you've done it)- I'll check when I get on my laptop for the URL if you really need to know... lol.
Seems a 'chicken and egg' situation. Difficult to pin who came up with what first. Heck, SCO even claims to have 'invented' Linux.
I used to get up ten hours before I went to bed, just to think about stuff that wouldn't be thought about for another fifteen years... And you tell that to the young people of today - and they won't believe you...