I wrote a small extension for TicTap Contextual Ads - WordPressPlugin
It's realy realy realy quick and dirty.
Maybe I will write a wordpress-plugin. Sometime
Ich habe eine Erweiterung für TicTap Contextual Ads - WordPressPlugin geschrieben. Hingerotzt trifft es eher :-).
Wenn mal Zeit ist, mach ich auch WordPress-Plugin draus. Mal schauen.
Example -------------------------------------------------------------------------------------->
The Code of Extension "amazonize "
PHP:
-
<?
-
function amazonize ($theContent)
-
{
-
global $post;
-
-
$amazon_id = get_post_meta($post->ID, 'amazon_id', true);
-
if ( $amazon_id == '') return $theContent;
-
$amazon_img = get_post_meta($post->ID, 'amazon_img', true);
-
-
$amazon_div = '
-
<div style="float:right;margin:12px;text-align:center;">
-
<h6>Mouseover-Werbung</h6><a id="lnx'.$post->ID.'" class="tt_mylink" name="evtst|a|'.$amazon_id.'" href="http://www.amazon.de/gp/product/'.$amazon_id.'?ie=UTF8&tag=schilliconcar-21&linkCode=as2&camp=1638&creative=6742&creativeASIN='.$amazon_id.'">
-
<img border="0" src="'.$amazon_img.'"/></a>
-
<img src="http://www.assoc-amazon.de/e/ir?t=schilliconcar-21&l=as2&o=3&a='.$amazon_id.'" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></div>';
-
return $amazon_div.$theContent;
-
}
-
-
// add this in top of main index.php of your wordpress
-
add_filter('the_content', 'amazonize');
-
-
//and change your Amazon id!
-
?>
How to use?
If you use WordPress you can add 2 wordpress custom fields : amazon_id and amazon_img.
Example:
amazon_id = 363601384X
amazon_img=http://images.amazon.com/images/P/363601384X.01._AA_SCMZZZZZZZ_V63704912_.jpg