Extension „amazonize “ for TicTap Contextual Ads – WordPressPlugin

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 = ‚

Mouseover-Werbung


‚;
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!
?>
[/php]

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

Kommentar verfassen

%d Bloggern gefällt das: