This needs to work like this when link have a image then show tutimageattach and when not show noimage.jpg what am i doing wrong below because below doesent work.
<!-- BEGIN 1 LINK ATTACHMENTS --> <IF {LINKTUTIMAGEATTACH}> <IF {ATTACHISIMAGE}> <a href="{TRACKLINKURL}" {EXTERNALLINKS}> <img src="download.php?id={LINKID}&field=tutimageattach" class="tutorialavatar"> <OTHERWISE> <a href="{TRACKLINKURL}" {EXTERNALLINKS}> <img src="templates/default/images/noimage.jpg" class="tutorialavatar"></a> </IF></IF> <!-- END LINK ATTACHMENTS -->
This dont work i get the image where the image is submitted for the link but where link dont have image the image noimage.jpg simply doe sent appear. I should get this adress ...templates/default/images/noimage.jpg but i get the same as above www.the-tutorials.com/tutor...id=65&field=tutimageattach
it looks like <OTHERWISE> isnt working? Can you Paul please check this? if <OTHERWISE> works for custom fileds?
Comments on Custom field problem
Forum Regular
Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia
Total Topics: 46
Total Comments: 136
I have a custom link file filed:
Link fields: tutimageattach
This needs to work like this when link have a image then show tutimageattach and when not show noimage.jpg what am i doing wrong below because below doesent work.
<IF {LINKTUTIMAGEATTACH}>
<a href="{TRACKLINKURL}" {EXTERNALLINKS}>
<img src="download.php?id={LINKID}&field=tutimageattach" class="tutorialavatar"></a>
<OTHERWISE>
<a href="{TRACKLINKURL}" {EXTERNALLINKS}>
<img src="templates/default/images/noimage.jpg" class="tutorialavatar"></a>
</IF>
Forum Regular
Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia
Total Topics: 46
Total Comments: 136
Can anyone help me with this issue?
Forum Regular
Usergroup: Customer
Joined: Nov 27, 2006
Total Topics: 187
Total Comments: 465
Try something like this...
<!-- BEGIN 1 LINK ATTACHMENTS -->
<IF {LINKTUTIMAGEATTACH}>
<IF {ATTACHISIMAGE}>
<a href="{TRACKLINKURL}" {EXTERNALLINKS}>
<img src="download.php?id={LINKID}&field=tu timageattach" class="tutorialavatar">
<OTHERWISE>
<a href="{TRACKLINKURL}" {EXTERNALLINKS}>
<img src="templates/default/images/noimage.jpg" class="tutorialavatar"></a>
</IF></IF>
<!-- END LINK ATTACHMENTS -->
Forum Regular
Usergroup: Customer
Joined: Nov 27, 2006
Total Topics: 187
Total Comments: 465
Where it says <!-- BEGIN 1 LINK ATTACHMENTS -->
Remove the 1 if you want to display more than 1 image
Forum Regular
Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia
Total Topics: 46
Total Comments: 136
Try something like this...
<!-- BEGIN 1 LINK ATTACHMENTS -->
<IF {LINKTUTIMAGEATTACH}>
<IF {ATTACHISIMAGE}>
<a href="{TRACKLINKURL}" {EXTERNALLINKS}>
<img src="download.php?id={LINKID}&field=tutimageattach" class="tutorialavatar">
<OTHERWISE>
<a href="{TRACKLINKURL}" {EXTERNALLINKS}>
<img src="templates/default/images/noimage.jpg" class="tutorialavatar"></a>
</IF></IF>
<!-- END LINK ATTACHMENTS -->
This dont work i get the image where the image is submitted for the link but where link dont have image the image noimage.jpg simply doe sent appear. I should get this adress ...templates/default/images/noimage.jpg but i get the same as above www.the-tutorials.com/tutor...id=65&field=tutimageattach
it looks like <OTHERWISE> isnt working? Can you Paul please check this? if <OTHERWISE> works for custom fileds?
Forum Regular
Usergroup: Customer
Joined: Nov 27, 2006
Total Topics: 187
Total Comments: 465
Try...
<!-- BEGIN 1 LINK ATTACHMENTS -->
<IF {LINKTUTIMAGEATTACH}>
<IF {ATTACHISIMAGE}>
<a href="{TRACKLINKURL}" {EXTERNALLINKS}>
<img src="download.php?id={LINKID}&field=tu timageattach" class="tutorialavatar"> </IF>
<!-- END LINK ATTACHMENTS -->
<OTHERWISE>
<a href="{TRACKLINKURL}" {EXTERNALLINKS}>
<img src="templates/default/images/noimage.jpg" class="tutorialavatar"></a>
</IF>
Forum Regular
Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia
Total Topics: 46
Total Comments: 136
Noop this does not work. Thanks for help i believe that this is good maybe there is a bug in wsn?
Forum Regular
Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia
Total Topics: 46
Total Comments: 136
Can someone confirm that this is bug?
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
For custom link fields use:
<IF {LINKTUTIMAGEATTACHTITLE}>
..........
<OTHERWISE>
...........
</IF>
Forum Regular
Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia
Total Topics: 46
Total Comments: 136
Great this works thanks peumus thanks a lot