Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

importing linksv2 data

Quote Reply
importing linksv2 data
Hi All,

my old links.def file contained the following

Code:
ID => [0, 'numer', 5, 8, 1, '', ''],
Title => [1, 'alpha', 40, 75, 1, '', ''],
URL => [2, 'alpha', 40, 75, 1, 'http://', '^http|news|mailto|ftp'],
Date => [3, 'date', 15, 15, 1, \&get_date,''],
Category => [4, 'alpha', 0, 150, 1, '', ''],
AltCategories => [5, 'alpha', 0, 500, 0, '', ''],
Description => [6, 'alpha', '40x3', 300, 0, '', ''],
'Contact Name' => [7, 'alpha', 40, 75, 1, '', ''],
'Contact Email' => [8, 'alpha', 40, 75, 1, '', '.+@.+\..+'],
Hits => [9, 'numer', 10, 10, 1, '0', '\d+'],
isNew => [10, 'alpha', 0, 5, 0, 'Yes', ''],
isPopular => [11, 'alpha', 0, 5, 0, 'No', ''],
Rating => [12, 'numer', 10, 10, 1, 0, '^[\d\.]+$'],
Votes => [13, 'numer', 10, 10, 1, 0, '^\d+$'],
ReceiveMail => [14, 'alpha', 10, 10, 1, 'Yes', 'No|Yes'],
Graphic => [15, 'alpha', 40, 75, 0, 'http://www.isram.net/images/youlogo.gif', ''],
Gwidth => [16, 'alpha', 5, 5, 0, '152', ''],
Gheight => [17, 'alpha', 5, 5, 0, '61', ''],
Priority => [18, 'alpha', 0, 5, 1, 'No', 'No|Yes'],
isLinked => [19, 'alpha', 0, 5, 1, 'No', 'No|Yes']
I need to add the appropriate fields before impoting so they show up. 1.Do the mods have to be installed so i can import the data? 2. If not can someone give me an exaple of the info i should be putting in the add links area?



Regards

MDJ1
http://www.isee-multimedia.co.uk
mark@isee-multimedia.co.uk
Quote Reply
Re: importing linksv2 data In reply to
In the Links Admin in the TABLE/EDIT/ADD area add the fields you want in your new database. It looks like it's everything below "receive mail".



http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/