Image on Homepage but Switch to Adsense on Single.php

Status
Not open for further replies.

droobleZ

Member
Feb 3, 2008
266
1
18
Canada
Hey,

Just started a new blog and was wondering if it is possible to have an image on the homepage floating right and wrapping around the content and then once they actually click or view the post it changes to an Adsense block.

Possible? Anyone know how and wish to fill me in?

I pay monies if you're a greedy bitch.

Thanks.
 


Just so he does not screw it up better give it all to him:

PHP:
<? if ($_SERVER['REQUEST_URI'] == '/') { 
?>

  // image code goes here 

<?
} else {
?> 

 // adsense code goes here

<?
} ?>
 
Thank you both of you!

Would there be a way that I could just upload an image for each post and use a custom field key to have it automatically insert the image code?
I do plan on using a different image for each new post.
 
Status
Not open for further replies.