View Single Post
Old 07-25-2008, 01:53 PM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
php/perl code share

post a snippet:

using custom fields in wordpress for a sponsor embed by providing the direct url to the flv in a custom field for a post.

Code:
<?

if(get_post_meta($post->ID, 'brazzer', true))  {    
$values = get_post_custom_values("brazzer");    
$brazzer = $values[0];
echo "<a href=\"http://enter.brazzersnetwork.com/track/NTI5Ojc6NDE/\"><img border=\"0\" src=\"/banners/brazzer.gif\"></a><br/><br/>";
echo "<embed src=\"/images/flvplayer.swf\" width=\"320\" height=\"260\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" flashvars=\"file=$brazzer&showdigits=true&autostart=true&overstretch=true\" />";
echo "<br/><br/><font size=\"3\" face=\"Verdana\"><a href=\"http://enter.brazzersnetwork.com/track/NTI5Ojc6NDE/\">click here for more brazzer movies</a></font><br/><br/>";
}
?>
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote