Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 24 Feb 2004, 14:01
larryd larryd is offline
 
Join Date: Nov 2001
conditional statement (postbit template)

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?
__________________
Larry Dougherty
www.newcelica.org
Reply With Quote
  #2  
Old 24 Feb 2004, 22:19
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Real name: Stefan Kaeser
look into Logician's profile, he has released such a hack
__________________
Unfortunatelly i am completely out of vbulletin buisness, so i won't upgrade any of my hacks anymore. Everyone who wants to upgrade my hacks or use part of my codes is allowed to do so, without needing any special permission by me anymore. You just have to mention my full name if you want to reuse some of my work, thats all i ask for.
Reply With Quote
  #3  
Old 26 Feb 2004, 23:30
larryd larryd is offline
 
Join Date: Nov 2001
Thanks Alot.
__________________
Larry Dougherty
www.newcelica.org
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 04:35.

Layout Options | Width: Wide Color: