Gossamer Forum
Home : Products : Links 2.0 : Customization :

Image (Thumbnail) field in Links.def? Code?

Quote Reply
Image (Thumbnail) field in Links.def? Code?
I have searched the database for info on adding an image field with a link to the full-sized image in Links.def. Can't seem to find any info.

I have made image links using regular HTML in the Description field by modifying Links.def, but is there a way to create a pre-defined field in Links.def for image tags? I'm trying to create a photo-gallery with thumbnail links using Links 2.0.
Quote Reply
Re: Image (Thumbnail) field in Links.def? Code? In reply to
I'm doing the same thing, or similar.

Check http://www.postcards.com/links/pages/
Quote Reply
Re: Image (Thumbnail) field in Links.def? Code? In reply to
Ok guys. check out my mod in the resource section (Logolinks and Priority Mod).



------------------
Joker
Concepts 2000 Online
www.concepts2000.com
tech@concepts2000.com

Quote Reply
Re: Image (Thumbnail) field in Links.def? Code? In reply to
Here is the modifications :

Add an additional field in your links.def :

Image => [14, 'alpha', 40, 75, 1, 'http://', '^http|news|mailto|ftp'],

Add the following code at
# Field Number of some important fields. The number is from %db_def above
# where the first field equals 0.

$db_image = 14;

and then you can type the URL of the images at your add form. Here u go!



------------------
Bear EveryWhere
Quote Reply
Re: Image (Thumbnail) field in Links.def? Code? In reply to
Hi Bear,

does this work with an existing DB as well
or do I have to modify the existing databases to adapt them to the new fields ?

Thanks
Quote Reply
Re: Image (Thumbnail) field in Links.def? Code? In reply to
You need to run the little update script to add the new fields to the existing records.