Hi,
I have added some thing to my links.def. But now I can't use Ratings, Votes an RecieveMail.
This is my top of links.def now:
ID => [0, 'numer', 5, 8, 1, '', ''],
Title => [1, 'alpha', 40, 999, 1, '', ''],
URL => [2, 'alpha', 40, 999, 1, 'http://', '^http|news|mailto|ftp'],
Date => [3, 'date', 15, 15, 1, \&get_date, ''],
Category => [4, 'alpha', 0, 150, 1, '', ''],
Description => [5, 'alpha', '60x5', 100000, 0, '', ''],
'Contact Name' => [6, 'alpha', 40, 75, 1, 'site.com', ''],
'Contact Email' => [7, 'alpha', 40, 75, 1, 'info@mysite', '.+@.+\..+'],
Hits => [8, 'numer', 10, 10, 1, '0', '\d+'],
isNew => [9, 'alpha', 0, 5, 0, 'Yes', ''],
isPopular => [10, 'alpha', 0, 5, 0, 'No', ''],
Website => [11, 'alpha', 40, 250, 1, 'http://www.mysite.com', ''],
Webtitle => [12, 'alpha', 40, 999, 1, 'mysite.com', ''],
Type => [13, 'alpha', 20, 500, 1, '', '']
);And when i add this to it...
Votes => [15, 'numer', 10, 10, 1, 0, '^\d+$'],
ReceiveMail => [16, 'alpha', 10, 10, 1, 'Yes', 'No|Yes']...I'll get an error. What do i have to change so i can use these 3 to.
Greetings,
Paul
DP - Double P, thats me.
I have added some thing to my links.def. But now I can't use Ratings, Votes an RecieveMail.
This is my top of links.def now:
Code:
%db_def = ( ID => [0, 'numer', 5, 8, 1, '', ''],
Title => [1, 'alpha', 40, 999, 1, '', ''],
URL => [2, 'alpha', 40, 999, 1, 'http://', '^http|news|mailto|ftp'],
Date => [3, 'date', 15, 15, 1, \&get_date, ''],
Category => [4, 'alpha', 0, 150, 1, '', ''],
Description => [5, 'alpha', '60x5', 100000, 0, '', ''],
'Contact Name' => [6, 'alpha', 40, 75, 1, 'site.com', ''],
'Contact Email' => [7, 'alpha', 40, 75, 1, 'info@mysite', '.+@.+\..+'],
Hits => [8, 'numer', 10, 10, 1, '0', '\d+'],
isNew => [9, 'alpha', 0, 5, 0, 'Yes', ''],
isPopular => [10, 'alpha', 0, 5, 0, 'No', ''],
Website => [11, 'alpha', 40, 250, 1, 'http://www.mysite.com', ''],
Webtitle => [12, 'alpha', 40, 999, 1, 'mysite.com', ''],
Type => [13, 'alpha', 20, 500, 1, '', '']
);
Code:
Rating => [14, 'numer', 10, 10, 1, 0, '^[\d\.]+$'], Votes => [15, 'numer', 10, 10, 1, 0, '^\d+$'],
ReceiveMail => [16, 'alpha', 10, 10, 1, 'Yes', 'No|Yes']
Greetings,

Paul
DP - Double P, thats me.