larryd
02-24-2004, 01:01 PM
I'm using the photopost software on the site now and would like to incorporate an image in the postbit template that only shows when the user has images in the photopost database.
I have already created a column in the user table called photos that is accurately keeping track of the amount of photos a user has. What I need to be able to do is somehow have an IF statement in the postbit template that says something along the lines of IF $post[photos] > 0 then display linked image else nothing.
I asked on vbulletin.com and was told "vBulletin 2.X does not support conditionals in the templates. You will have to visit vbulletin.org to learn how to hack this into the code."
Can someone point me in the right direction of what I need to do to get this working?
I have already created a column in the user table called photos that is accurately keeping track of the amount of photos a user has. What I need to be able to do is somehow have an IF statement in the postbit template that says something along the lines of IF $post[photos] > 0 then display linked image else nothing.
I asked on vbulletin.com and was told "vBulletin 2.X does not support conditionals in the templates. You will have to visit vbulletin.org to learn how to hack this into the code."
Can someone point me in the right direction of what I need to do to get this working?