SMF Ads Support Forum

Support => Ad Support => Topic started by: aikencolon on January 29, 2010, 04:51:25 PM

Title: File Directory in HTML for the ads
Post by: aikencolon on January 29, 2010, 04:51:25 PM
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!

Title: Re: File Directory in HTML for the ads
Post by: vbgamer45 on January 29, 2010, 07:27:25 PM
You have an extra "

<img src="themes/images/Animated_Logo.gif"" alt=

Should be

<img src="themes/images/Animated_Logo.gif" alt=
Title: Re: File Directory in HTML for the ads
Post by: ccbtimewiz on January 30, 2010, 12:28:05 PM
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>