The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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? |
#2
|
||||
|
||||
You did not complete the code.
It should read this: Code:
<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></img> </if> |
#3
|
||||
|
||||
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='' />
|
#4
|
|||
|
|||
Thanks you two! It works now
|
#5
|
||||
|
||||
Yes there is. Don't state such things that are true.
|
#6
|
||||
|
||||
Really? And how well does your site validate when using an </img>?
World Wide Web Consortium (W3C) standards Quote:
|
#7
|
||||
|
||||
Quote:
|
#8
|
||||
|
||||
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="" />
|
#9
|
||||
|
||||
So why does the code work when I use </img>? It's always worked for me.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|