<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="https://www.webmastersite.net/forums/templates/bootstrap/rss.css" ?>
<rss version="2.0"
 xmlns:content="http://purl.org/rss/1.0/modules/content/"
 xmlns:media="http://search.yahoo.com/mrss/"
 xmlns:atom="http://www.w3.org/2005/Atom"
 xmlns:georss="http://www.georss.org/georss"> 
<channel>
<title>WebmasterSite.net</title>
<link>https://www.webmastersite.net/forums</link>
<description></description>
<language>en-us</language>
<atom:link href="https://www.webmastersite.net/forums/rssfeed.php?thecondition=ownerid%3D2320" rel="self" type="application/rss+xml" />

<item>
<title>Custom Attachment field and IF..</title>
<description><![CDATA[Hello,

I added a custom field for image. I can show the image at the link&#039;s details page using:
img border=&quot;0&quot; src=&quot;attachments/LINKATTACHPHOTONAME}&quot;
but when a link dosen&#039;t has a photo appears a broken image block (that&#039;s normal).

When I tried to use conditionals, started my hell. I started with use of:
.........
IF LINKATTACHPHOTO} 
img border=&quot;0&quot; src=&quot;attachments/LINKATTACHPHOTO1NAME}&quot;
/IF
Nothing..... again the broken image.
..........
IF LINKATTACHPHOTO}
[image]LINKATTACHPHOTO}[/image]
/IF
Gaves me output ...[image][/image]
..........
IF LINKATTACHPHOTOKB} is greater than 0
img border=&quot;0&quot; src=&quot;attachments/LINKATTACHPHOTO1NAME}&quot;
/IF
Gaves me ....0?&quot;...
...........
IF LINKATTACHPHOTONAME} 
img border=&quot;0&quot; src=&quot;attachments/LINKATTACHPHOTO1NAME}&quot;
/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

]]></description>
<link>https://www.webmastersite.net/forums/threads/custom-attachment-field-and-if-6752.html</link>
<pubDate>Wed, 30 Aug 2006 08:52:59 GMT</pubDate>
<guid>https://www.webmastersite.net/forums/thread/6752/</guid>
<content:encoded><![CDATA[Hello,

I added a custom field for image. I can show the image at the link's details page using:
&#60;img border="0" src="attachments/&#123;LINKATTACHPHOTONAME}"&#62;
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:
.........
&#60;IF &#123;LINKATTACHPHOTO}&#62; 
&#60;img border="0" src="attachments/&#123;LINKATTACHPHOTO1NAME}"&#62;
&#60;/IF&#62;
Nothing..... again the broken image.
..........
&#60;IF &#123;LINKATTACHPHOTO}&#62;
[image]&#123;LINKATTACHPHOTO}[/image]
&#60;/IF&#62;
Gaves me output ...[image][/image]
..........
&#60;IF &#123;LINKATTACHPHOTOKB} is greater than 0&#62;
&#60;img border="0" src="attachments/&#123;LINKATTACHPHOTO1NAME}"&#62;
&#60;/IF&#62;
Gaves me ....0?&#62;"...
...........
&#60;IF &#123;LINKATTACHPHOTONAME}&#62; 
&#60;img border="0" src="attachments/&#123;LINKATTACHPHOTO1NAME}"&#62;
&#60;/IF&#62;
Nothing..... again the broken image.
.........
Then I started using &#60;OTHERWISE&#62; ... 
What happened? I was getting both outputs included between:
&#60;IF&#62;
..... I was getting this
&#60;OTHERWISE&#62;
..... I was getting also this...
&#60;/IF&#62;

Is anybody who can say me how to display the custom field &#60;LINKATTACHPHOTO&#62; but only if the user has uploaded a photo?

Thanks

]]></content:encoded>
<comments>https://www.webmastersite.net/forums/threads/custom-attachment-field-and-if-6752.html</comments>   
</item>

</channel>
</rss>