WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

Conditionals with Custom Attachments Template Tags

Version:
printPrint


Conditionals with Custom Attachments Template Tags
Vix
Member

Usergroup: Customer
Joined: Dec 26, 2003
Total Topics: 5
Total Posts: 12
Posted 09/16/04 - 12:50 AM:
quote post
#1
I'm trying to set up a wallpapers download section and I'm having problems using conditionals with my custom attachments.

I have 3 types of custom attachments: attachpic1, attachpic2 and attachpic3 to correspond to different sized wallpapers : 800 x 600, 1024 x 768 and other sizes

Sinc not all sizes of wallpapers will be uploaded per image, I'm trying to use conditionals to display only uploaded wallpaper links.

This is what I've tried and the results I've gotten:

800 x600
- all 3 links are shown

800 x600
- the empty attachment field link shows up

Trying to use
800 x600
gives me PHP errors



Any thoughts or suggestions?

Note: the filesize for my attachments are 0kb.
I'd also like to know if the data saved in the database is in the correct format:

blue800x600.jpg[,]blue800x600.jpg[,]1[,]800[,]600




Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5974
Posted 09/16/04 - 01:33 AM:
quote post
#2
If it's not uploaded, it would be blank. So, shouldn't it just be ?

Will check on the file sizes, but I don't see why you need them here. And yes, that db format is correct.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Vix
Member

Usergroup: Customer
Joined: Dec 26, 2003
Total Topics: 5
Total Posts: 12
Posted 09/16/04 - 01:44 AM:
quote post
#3
Excellent! Thanks!
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.