Hello!
Thanks for the Ad mod!
I haven't set up adsense yet; at the moment I'm looking to upload simple img ads that I've saved in my forum's file directory.
I've got it working successfully when I use php for the ad content using the following code:
echo '
<a href="http://www.mywebsite.com" target="_blank"><img src="', $settings['theme_url'], '/images/Animated_Logo.gif"" alt="My Online Store" border="0"></a>';
I would like to use html (especially for when I want to embed flash files)... however I think I'm doing something wrong regarding the directory. I used the following html code but all I can see in the ad is the ALT tag (no img):
<a href="http://www.mywebsite.com" target="_blank"><img src="themes/images/Animated_Logo.gif"" alt="My Online Store" border="0">
I've also tried (but none have worked):
"/themes/images/Animated_Logo.gif"
"./themes/images/Animated_Logo.gif"
"http://www.energyauditortalk.org/html/themes/images/Animated_Logo.gif"
I use SMF 2.0 RC2, theme= Day_Relax.
Any help would be greatly appreciated!! :)
Thank you!
You have an extra "
<img src="themes/images/Animated_Logo.gif"" alt=
Should be
<img src="themes/images/Animated_Logo.gif" alt=
Why not do this:
<a href="http://www.mywebsite.com" target="_blank"><img src="<?php echo $settings['theme_url']; ?>/images/Animated_Logo.gif"" alt="My Online Store" border="0"></a>