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.



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="" 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="" target="_blank"><img src="themes/images/Animated_Logo.gif"" alt="My Online Store" border="0">

I've also tried (but none have worked):

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=
Like what I do please support me on


Why not do this:

<a href="" target="_blank"><img src="<?php echo $settings['theme_url']; ?>/images/Animated_Logo.gif"" alt="My Online Store" border="0"></a>