Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Links 2 Non-english Modifications

Quote Reply
Links 2 Non-english Modifications
Can you use this mod to allow commas in subcategory names?

e.g. /blah,_blah,_blah

If so,
how?

Cheers,
Simple
Quote Reply
Re: Links 2 Non-english Modifications In reply to
You don't need to install a mod for that. You just need to change two things in Links.

1. %db_def in category.def:

Change:

Quote:
Name => [1, 'alpha', 40, 75, 1, '', '^[\w\d/_-]+$'],

to read:

Quote:
Name => [1, 'alpha', 40, 75, 1, '', '^[\w\d,/_-]+$'],

2. sub build_check_dir in nph-build.cgi:

Change:

Quote:
my $chrs = quotemeta ("/_-");

to read:

Quote:
my $chrs = quotemeta (",/_-");

I hope this helps.