Coinbase

Author Topic: File Directory in HTML for the ads  (Read 3773 times)

0 Members and 1 Guest are viewing this topic.

Offline aikencolon

  • Jr. Member
  • **
  • Posts: 10
    • Email
File Directory in HTML for the ads
« 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!


Offline vbgamer45

  • Owner
  • Full Member
  • *
  • Posts: 132
Re: File Directory in HTML for the ads
« Reply #1 on: January 29, 2010, 07:27:25 pm »
You have an extra "
Code: [Select]
<img src="themes/images/Animated_Logo.gif"" alt=
Should be
Code: [Select]
<img src="themes/images/Animated_Logo.gif" alt=

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: File Directory in HTML for the ads
« Reply #2 on: January 30, 2010, 12:28:05 pm »
Why not do this:

Code: [Select]
<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>

SMF Ads Support Forum

Re: File Directory in HTML for the ads
« Reply #2 on: January 30, 2010, 12:28:05 pm »
.

 

.