Results 1 to 3 of 3

My own context sensitive ads

This is a discussion on My own context sensitive ads within the Ad Networks forums, part of the Monetizing category; Does anyone know of anything I can use to display my own context sensitive ads? Something I could use to ...

  1. #1
    Senior Member
    Real Name
    Johnny5
    Join Date
    Oct 2008
    Posts
    231
    Liked
    0 times

    My own context sensitive ads

    Does anyone know of anything I can use to display my own context sensitive ads? Something I could use to advertise a particular, relevant product via data received from an affiliate feed?

    Thanks!

  2. #2
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    you would need to learn a lot of javascript DOM

    basically, you need to loop through tags, starting with body, ignoring anchors, etc, then using that information to run a query against some keywords database which is then related to the ad it self. then, if nothing matches, create default cases, etc etc.

    lots of work :(

  3. #3
    Senior Member
    Real Name
    Johnny5
    Join Date
    Oct 2008
    Posts
    231
    Liked
    0 times
    I'm guessing nobody has a handy script that does all that?

    What about something easier, then - something php based that works on the first post of the thread before the page is served? Presumably the rest of the posts in the thread relate to the first post...

    It would be a matter of grabbing the text of the first post in the thread and then determining whether any ads are associated with any of the words it contains, right?

    PHP Code:
    $postWords explode(' '$vbulletin->post[however you get the text of the post]); 

    //get rid of noise words like the, is, if, it, he, she, etc.
    $postWords array_diff($postWords$noiseWords);

    foreach(
    $postWords as $nextWordInPost)
    {
      if(
    $keywordsWithAds[$nextWordInPost] != '')
      {
        
    $ad $keywordsWithAds[$nextWordInPost];
        break;
      }
     }

    //provide for default case if we didn't find an ad
    if($ad == '')
      
    $ad $adsenseCode
    Would there be a way to do this without it being too load intensive?

Similar Threads

  1. Replies: 1
    Last Post: 11-03-2008, 08:49 PM
  2. Vorschlag: Acronym Expansion case sensitive
    By Junior in forum Deutsch
    Replies: 2
    Last Post: 11-20-2006, 03:09 AM
  3. Exclude filenames case sensitive
    By benFF in forum Bug Reporting
    Replies: 3
    Last Post: 08-06-2006, 01:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •