WebmasterSite.net

Custom field problem

Version:
URL:

PrintPrint
locked


Custom field problem
Damir
Forum Regular
Avatar

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

Total Topics: 47
Total Posts: 136
quote post #1
Posted 12/06/06 - 9: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="http://www.webmastersite.net/forums/download.php?id={LINKID}&field=tutimageattach" class="tutorialavatar"></a>
<OTHERWISE>
<a href="{TRACKLINKURL}" {EXTERNALLINKS}>
<img src="http://www.webmastersite.net/forums/templates/images_default/noimage.jpg" class="tutorialavatar"></a>
</IF>
Damir
Forum Regular
Avatar

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

Total Topics: 47
Total Posts: 136
quote post #2
Posted 12/06/06 - 11:18 PM:

Can anyone help me with this issue?
jayweb
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 131
Total Posts: 384
quote post #3
Posted 12/07/06 - 5:08 AM:

Try something like this...


<!-- BEGIN 1 LINK ATTACHMENTS -->
<IF {LINKTUTIMAGEATTACH}>
<IF {ATTACHISIMAGE}>
<a href="{TRACKLINKURL}" {EXTERNALLINKS}>
<img src="http://www.webmastersite.net/forums/download.php?id={LINKID}&field=tu timageattach" class="tutorialavatar">
<OTHERWISE>
<a href="{TRACKLINKURL}" {EXTERNALLINKS}>
<img src="http://www.webmastersite.net/forums/templates/images_default/noimage.jpg" class="tutorialavatar"></a>
</IF></IF>
<!-- END LINK ATTACHMENTS -->
jayweb
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 131
Total Posts: 384
quote post #4
Posted 12/07/06 - 5:10 AM:

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

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

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

Total Topics: 47
Total Posts: 136
quote post #5
Posted 12/07/06 - 5:41 AM:

jayweb wrote:
Try something like this...


<!-- BEGIN 1 LINK ATTACHMENTS -->
<IF {LINKTUTIMAGEATTACH}>
<IF {ATTACHISIMAGE}>
<a href="{TRACKLINKURL}" {EXTERNALLINKS}>
<img src="http://www.webmastersite.net/forums/download.php?id={LINKID}&field=tutimageattach" class="tutorialavatar">
<OTHERWISE>
<a href="{TRACKLINKURL}" {EXTERNALLINKS}>
<img src="http://www.webmastersite.net/forums/templates/images_default/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/images_default/noimage.jpg but i get the same as above http://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?
jayweb
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 131
Total Posts: 384
quote post #6
Posted 12/07/06 - 6:01 AM:

Try...

<!-- BEGIN 1 LINK ATTACHMENTS -->
<IF {LINKTUTIMAGEATTACH}>
<IF {ATTACHISIMAGE}>
<a href="{TRACKLINKURL}" {EXTERNALLINKS}>
<img src="http://www.webmastersite.net/forums/download.php?id={LINKID}&field=tu timageattach" class="tutorialavatar"> </IF>
<!-- END LINK ATTACHMENTS -->
<OTHERWISE>
<a href="{TRACKLINKURL}" {EXTERNALLINKS}>
<img src="http://www.webmastersite.net/forums/templates/images_default/noimage.jpg" class="tutorialavatar"></a>
</IF>
Damir
Forum Regular
Avatar

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

Total Topics: 47
Total Posts: 136
quote post #7
Posted 12/07/06 - 9:44 AM:

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

	<IF > 
<a href="http://www.webmastersite.net/forums/thread/7016/" onclick="counthit(7016)" target="_blank">
<img src="http://www.webmastersite.net/forums/download.php?id=7016&field=tutimageattach" class="tutorialavatar"></a>
<OTHERWISE>
<img src="http://www.webmastersite.net/forums/templates/images_default/noimage.jpg" class="tutorialavatar"></a>
</IF>
Damir
Forum Regular
Avatar

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

Total Topics: 47
Total Posts: 136
quote post #8
Posted 12/07/06 - 10:21 PM:

Can someone confirm that this is bug?
peumus
Forum Regular
Avatar

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

Total Topics: 173
Total Posts: 462
quote post #9
Posted 12/08/06 - 12:36 AM:

For custom link fields use:

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

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

Total Topics: 47
Total Posts: 136
quote post #10
Posted 12/08/06 - 12:47 AM:

Great this works thanks peumus thanks a lotnod
 
Search thread for
Download thread as
locked


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