I need to have links that are longer then 30 charectors. Links 1.x Allowed me to have large links... Where would I make this change at?
Mar 11, 1999, 7:22 PM
Veteran / Moderator (3108 posts)
Mar 11, 1999, 7:22 PM
Post #2 of 4
Views: 306
What part of the links are only 30 characters? The title? The URL?
Take a look in links.def and the %db_def variable:
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, '', ''],
Description => [5, 'alpha', '40x3', 500, 0, '', ''],
'Contact Name' => [6, 'alpha', 40, 75, 1, '', ''],
'Contact Email' => [7, 'alpha', 40, 75, 1, '', '.+@.+\..+'],
Hits => [8, 'numer', 10, 10, 1, '0', '\d+'],
isNew => [9, 'alpha', 0, 5, 0, 'No', ''],
isPopular => [10, 'alpha', 0, 5, 0, 'No', ''],
Rating => [11, 'numer', 10, 10, 1, 0, '^[\d\.]+$'],
Votes => [12, 'numer', 10, 10, 1, 0, '^\d+$'],
ReceiveMail => [13, 'alpha', 10, 10, 1, 'Yes', 'No|Yes']
);
None of the fields are defined for 30 characters anywhere in the record definition. Compare this with yours.
Take a look in links.def and the %db_def variable:
Quote:
%db_def = ( 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, '', ''],
Description => [5, 'alpha', '40x3', 500, 0, '', ''],
'Contact Name' => [6, 'alpha', 40, 75, 1, '', ''],
'Contact Email' => [7, 'alpha', 40, 75, 1, '', '.+@.+\..+'],
Hits => [8, 'numer', 10, 10, 1, '0', '\d+'],
isNew => [9, 'alpha', 0, 5, 0, 'No', ''],
isPopular => [10, 'alpha', 0, 5, 0, 'No', ''],
Rating => [11, 'numer', 10, 10, 1, 0, '^[\d\.]+$'],
Votes => [12, 'numer', 10, 10, 1, 0, '^\d+$'],
ReceiveMail => [13, 'alpha', 10, 10, 1, 'Yes', 'No|Yes']
);
None of the fields are defined for 30 characters anywhere in the record definition. Compare this with yours.
Mar 11, 1999, 9:00 PM
Veteran / Moderator (3108 posts)
Mar 11, 1999, 9:00 PM
Post #3 of 4
Views: 305
Change the 75, which is the length of the field in the database. I have it set to 200 on my system (I have some very long urls).
The 40 represents the size of the input block you see in the forms in the admin screen. You can change that as well, but it isn't necessary because the url will scroll within it (left and right scrolling).
The 40 represents the size of the input block you see in the forms in the admin screen. You can change that as well, but it isn't necessary because the url will scroll within it (left and right scrolling).
Mar 12, 1999, 5:00 AM
New User (2 posts)
Mar 12, 1999, 5:00 AM
Post #4 of 4
Views: 307
URL => [2, 'alpha', 40, 75, 1, 'http://', '^http|news|mailto|ftp'],
Which one would change the length of URL 40 or 75?
I actually didn't count how at how many chars it cut off.. I was just guessing..
But the url is very long, and part of it gets cut off..
------------------
serraphine,
http://www.conan.net/serraphine
Which one would change the length of URL 40 or 75?
I actually didn't count how at how many chars it cut off.. I was just guessing..
But the url is very long, and part of it gets cut off..
------------------
serraphine,
http://www.conan.net/serraphine

