Webmastersite.net
Register Log In

Custom field problem

Comments on Custom field problem

Damir
Forum Regular

Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia

Total Topics: 46
Total Comments: 136
Damir
Posted Dec 06, 2006 - 11:49 AM:

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>
Damir
Forum Regular

Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia

Total Topics: 46
Total Comments: 136
Damir
Posted Dec 07, 2006 - 1:18 AM:

Can anyone help me with this issue?
webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted Dec 07, 2006 - 7:08 AM:

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 -->
webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted Dec 07, 2006 - 7:10 AM:

Where it says <!-- BEGIN 1 LINK ATTACHMENTS -->

Remove the 1 if you want to display more than 1 image
Damir
Forum Regular

Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia

Total Topics: 46
Total Comments: 136
Damir
Posted Dec 07, 2006 - 7:41 AM:

jayweb wrote:
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?
webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted Dec 07, 2006 - 8:01 AM:

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>
Damir
Forum Regular

Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia

Total Topics: 46
Total Comments: 136
Damir
Posted Dec 07, 2006 - 11:44 AM:

Noop this does not work. Thanks for help i believe that this is good maybe there is a bug in wsn?

	<IF {LINKTUTIMAGEATTACH}> 
<a href="{TRACKLINKURL}" {EXTERNALLINKS}>
<img src="download.php?id={LINKID}&field=tutimageattach" class="tutorialavatar"></a>
<OTHERWISE>
<img src="templates/default/images/noimage.jpg" class="tutorialavatar"></a>
</IF>
Damir
Forum Regular

Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia

Total Topics: 46
Total Comments: 136
Damir
Posted Dec 08, 2006 - 12:21 AM:

Can someone confirm that this is bug?
peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
Posted Dec 08, 2006 - 2:36 AM:

For custom link fields use:

<IF {LINKTUTIMAGEATTACHTITLE}>
..........
<OTHERWISE>
...........
</IF>
Damir
Forum Regular

Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia

Total Topics: 46
Total Comments: 136
Damir
#10 - Quote - Permalink
Posted Dec 08, 2006 - 2:47 AM:

Great this works thanks peumus thanks a lotnod
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.