Purchase OIOpublisher now for just $47.

Take control of your ad space.

Click here to purchase

    • CommentAuthoraSKer
    • CommentTimeAug 31st 2008 edited
     

    Please, can you tell me how i can modify the output.php file to add the 'ad subscriber name' as a tooltip on the banners...
    I suppose it is on this line:
    $output .= "<a$nofollow target=\"_blank\" href=\"".$url."\"$hide><img class=\"oio-img-position\" alt=\"\" title=\"SUBSCRIBER_NAME_HERE\" src=\"".$b->item_url."\" style=\"width:".$oiopub_set->$bz->width."px; height:".$oiopub_set->$bz->height."px;\" /></a>\n";
    But i dont know the code to get the ad subscriber name...
    Thanks

    Edit: For now i've just repeated the url in the tooltip, but it would be much nicer to be able to get the content of the 'subscriber name' field as a tooltip to put interesting information in it...

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeSep 1st 2008 edited
     
    Project Admin

    By subscriber name do you mean the name of the advertiser? If so, it should work if you do the following:

    1.) Open include/output.php and add the following as the banner tooltip (the code you quoted above is the correct place):

    title=\"" . $b->adv_name . "\"

    2.) Open include/query.php and add adv_name to the query that starts:

    SELECT item_id,item_type,item_url,item_page,item_nofollow,item_notes,adv_name

    The only thing to watch out for is if you are using any default ads, dont use the "include in rotation" option, or it won't show correctly.

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthoraSKer
    • CommentTimeSep 1st 2008
     

    thanks a lot for your answer :)
    I found another way by simply installing the Pro version 2.0 and copying the 'alt' attribute to a 'title' attribute for the banner images.

    Need help?  Quick start guide | Troubleshooting | All help topics