![]() |
Help fix this conditional (easy for coders)
Hi,
I want to have an ad only display on a certain forum so I am using this format. In the SHOWTHREAD template, right below my Google ads I put: <if condition="$forumid == 6"> <a href="www.calculus7.com" target="_blank"> <img src="http://www.mathhelpforum.com/math-help/images/possad2.jpg" border="0" ></a> Nothing is showing up. Why? |
You did not complete the code.
It should read this: Code:
|
Do not add an </img> tag as there is not such thing as an </img> tag. You image tag, however, should be changed to look like this:
HTML Code:
<img src="http://www.mathhelpforum.com/math-help/images/possad2.jpg" border="0" alt='' /> |
Thanks you two! It works now :)
|
Quote:
|
Quote:
World Wide Web Consortium (W3C) standards Quote:
|
Quote:
|
BB Code and HTML are 2 totally different types of code. Yes, there is a closing img tag for bb code, but there isn't for html. If you have a closing img tag in html, your code is not valid. Any html image tag should look like:
HTML Code:
<img src="http://www.yoursite.com/image.gif" border="0" alt="" /> |
So why does the code work when I use </img>? It's always worked for me.
|
It will still work, but if you try and validate it through something like this, it will probably come out as forbidden or not closed properly
|
All times are GMT. The time now is 07:09 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|