Gossamer Forum
Home : Products : Links 2.0 : Discussions :

limit on size of url

Quote Reply
limit on size of url
how can i increase the limit from 75 characters (albeit temporarily) so that I myself may add a url which exceeds that?

Also how can i reduce the 500 character description limit to about 200 (is that reasonable)?

Thanks.

Quote Reply
Re: limit on size of url In reply to
look in links.def and change

Description => [5, 'alpha', '40x3', 500, 0, '', ''],

to

Description => [5, 'alpha', '40x3', 200, 0, '', ''],

and for the url change

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

to

URL => [2, 'alpha', 40, #, 1, 'http://', '^http|news|mailto|ftp'],

Change # to the number of characters you want the limit to be...

-------------
Jeremy
Quote Reply
Re: limit on size of url In reply to
Go to links.def and change the coloured codes below:

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, '', ''],
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']
And pls try to search the forum next time. Wink

Thomas
http://www.japanreference.com
Quote Reply
Re: limit on size of url In reply to
nolimit just answered the question above...why did you post the answer as well?

Paul Wilson.
http://www.wiredon.net
Quote Reply
Re: limit on size of url In reply to
Well, guess what? He must have been replying at the same time as me. Satisfied, constable???

Thomas
http://www.japanreference.com
Quote Reply
Re: limit on size of url In reply to
Yes pc plod

Simple qn needed simple answer.

Paul Wilson.
http://www.wiredon.net