View Full Version : Conditionals for custom fields?

12-10-2006, 04:04 PM

I thought I can find an eazy way to have thumbnail images in browse links template by combining the thumbshots.org service and individually uploaded thumbs for sites not listed in dmoz.

I thougth creating a custom field to enter an image (thumb) url will be eazy to use later to display the image anywhere I want. :eek: and in case such an url is not entered the thumbshots.org thumbs could be desplayed.

Simple concept right?

But I cant find a conditional if the customfield exist or doesn't exist for a paticular linkid. I can not find how to display the entered url either :( ...

Could you give some advices?

12-11-2006, 11:42 AM
Where exactly are you trying to display the thumbnails?

Our Sponsors

12-12-2006, 06:39 PM
Where exactly are you trying to display the thumbnails?
They are displayed today in the link status field (new, old, hot..)
take a look at my directory: http://www.photoclub.eu/links/browselinks.php?c=5

I am using a free service today that wont last much time.

I would like to have alternatives - either the user is submiting an url of a thumbnail (or other 120x90 image) or a thumbnail from a free provider will be used (like thumbshots.com)

12-15-2006, 03:57 PM
You should be able to edit your 'adv_links_linkbit' template and add "$links[fieldX]" to display that custom field.

Our Sponsors

01-02-2007, 06:10 AM

What you did is pretty close to what I want, might I ask how you did it?