News:

Welcome to SMF Ads Support Forum

Main Menu
Coinbase

File Directory in HTML for the ads

Started by aikencolon, January 29, 2010, 04:51:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

aikencolon

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!


vbgamer45

You have an extra "

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

Should be

<img src="themes/images/Animated_Logo.gif" alt=
Like what I do please support me on https://www.patreon.com/vbgamer45

ccbtimewiz

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>