1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Adding Adverts in the Template

Discussion in 'Styling and Customization Questions' started by Korean Cowboy, Jun 21, 2013.

  1. Korean Cowboy

    Korean Cowboy Member

    This probably isn't the place to add this, but I can't find my licence information to be able to access that particular forum (apologies to the staff if this is wrong).

    I need some help!

    So, I'm an xF n00b, with less than a week using it...so far so good, really loving it! However, I'm having an issue with adding adverts to the sidebar.

    Here's the code that I'm trying to add:

    <div style="text-align: center;">

    <a href="http://www.crownandcaliber.com/get-...rum&utm_medium=Banner&utm_campaign=TKF+Banner" title="TKF Sponsor: Crown & Caliber" target="_blank"><img style="padding: 0px 0px 5px 0px;" src="images/banners/crownandcaliber_banner.gif" height="90" width="240"></a>

    <div style="border: 1px dashed #000; background-color: #d7d7d7; width: 234px; padding: 2px; margin-bottom: 5px; margin-left: 1px;">
    <a style="font-color: #000;" href="http://www.lionseek.com/watches" target="_blank">Lionseek - Search Watches For Sale</a><br />
    </div>

    <a href="http://www.timekeeperforum.com/banners/creationwatches_ROS.htm" title="CreationWatches.com: Seiko Watches, Citizen Watches, Orient Watches with Free Shipping" target="_blank"><img style="padding: 0px 0px 5px 0px;" src="http://www.creationwatches.com/images/240x90.gif" height="90" width="240"></a>

    <a href="http://www.timekeeperforum.com/banners/demetre_ROS.htm" title="TKF Sponsor: M.P. Demetre Jewelers" target="_blank"><img style="padding: 0px 0px 5px 0px;" src="http://www.timekeeperforum.com/banners/demetre_240x90.gif" height="90" width="240"></a>

    <a href="http://www.timekeeperforum.com/banners/everestbands_ROS.htm" title="TKF Sponsor: Everest Horology Products" target="_blank"><img style="padding: 0px 0px 5px 0px;" src="http://www.timekeeperforum.com/banners/everestbands_240x90.gif" height="90" width="240"></a>

    <div style="border: 1px dashed #000; background-color: #d7d7d7; width: 234px; padding: 2px; margin-left: 1px;">

    <a href="http://www.timekeeperforum.com/showthread.php?14866-Banner-Advertising-on-TKF">Advertise on TKF</a><br />

    </div>

    </div>


    Whenever I added it to the template, this was the end result:

    [​IMG]

    I'm not versed enough in coding (since I'm not a coder) to be able to differentiate why the CreationWatches.com advert is working, and why the others are not. I'm sure that there's a simple reason why...
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    I tested it on my local and it all works fine, apart from images/banners/crownandcaliber_banner.gif which is a relative URL.
     

Share This Page