PDA

View Full Version : Conditionals for custom fields?



unimes
12-10-2006, 05:04 PM
Hello,

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?

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

Our Sponsors
 

unimes
12-12-2006, 07: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)

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

Our Sponsors
 

Shelby
01-02-2007, 07:10 AM
Unimes,

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