Gossamer Forum
Home : Products : Links 2.0 : Customization :

db - links cut off at 30 charectors

Quote Reply
db - links cut off at 30 charectors
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?
Quote Reply
Re: db - links cut off at 30 charectors In reply to
What part of the links are only 30 characters? The title? The URL?

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.
Quote Reply
Re: db - links cut off at 30 charectors In reply to
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).
Quote Reply
Re: db - links cut off at 30 charectors In reply to
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