Webmastersite.net
Register Log In

Custom Attachment field and <IF>..

Title Custom Attachment field and <IF>..
Description Having problems to use <IF> ...<OTHERWISE>
Message Text Hello, I added a custom field for image. I can show the image at the link's details page using: <img border="0" src="attachments/{LINKATTACHPHOTONAME}"> but when a link dosen't has a photo appears a broken image block (that's normal). When I tried to use conditionals, started my hell. I started with use of: ......... <IF {LINKATTACHPHOTO}> <img border="0" src="attachments/{LINKATTACHPHOTO1NAME}"> </IF> Nothing..... again the broken image. .......... <IF {LINKATTACHPHOTO}> </IF> Gaves me output ... .......... <IF {LINKATTACHPHOTOKB} is greater than 0> <img border="0" src="attachments/{LINKATTACHPHOTO1NAME}"> </IF> Gaves me ....0?>"... ........... <IF {LINKATTACHPHOTONAME}> <img border="0" src="attachments/{LINKATTACHPHOTO1NAME}"> </IF> Nothing..... again the broken image. ......... Then I started using <OTHERWISE> ... What happened? I was getting both outputs included between: <IF> ..... I was getting this <OTHERWISE> ..... I was getting also this... </IF> Is anybody who can say me how to display the custom field <LINKATTACHPHOTO> but only if the user has uploaded a photo? Thanks
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership Olympic
Views 406 views. Averaging 0 views per day.
Similar Topics
Submission Date Aug 30, 2006 - 1:52 AM