FTP link support already exists in v 3.4.04 .... To add ed2k link support, do the following.
In inc_func_common:
Look for the following lines (appx 977-979):
ElseIf UCase(Left(strArray2(0), 6)) = "ftp://" Then
'ReplaceURLs = ReplaceURLs & edit_hrefs(strArray2(0), 5) & strSecondPart
ReplaceURLs = ReplaceURLs & roTag & strArray2(0) & rc1Tag & strFirstPart & rc2Tag & strSecondPart
Below that, add the following:
ElseIf UCase(Left(strArray2(0), 7)) = "ED2K://" Then
'ReplaceURLs = ReplaceURLs & edit_hrefs(strArray2(0), 5) & strSecondPart
ReplaceURLs = ReplaceURLs & roTag & strArray2(0) & rc1Tag & strFirstPart & rc2Tag & strSecondPart
Look for the following lines (appx 1001-1003):
ElseIf UCase(Left(strArray2(0), 6)) = "ftp://" Then
ReplaceURLs = ReplaceURLs & edit_hrefs(strArray2(0), 5) & strSecondPart
'ReplaceURLs = ReplaceURLs & roTag & strArray2(0) & rc1Tag & strFirstPart & rc2Tag & strSecondPart
Below that, add the following:
ElseIf UCase(Left(strArray2(0), 7)) = "ED2K://" Then
'ReplaceURLs = ReplaceURLs & edit_hrefs(strArray2(0), 5) & strSecondPart
ReplaceURLs = ReplaceURLs & roTag & strArray2(0) & rc1Tag & strFirstPart & rc2Tag & strSecondPart
Look for the following lines (appx 1068-1069):
ElseIf UCase(Left(strArray2(0), 6)) = "ftp://" Then
ReplaceURLs = ReplaceURLs & edit_hrefs(strArray2(0), 5) & strArray2(1)
Below that, add the following:
ElseIf UCase(Left(strArray2(0), 7)) = "ED2K://" Then
ReplaceURLs = ReplaceURLs & roTag & strArray2(0) & rc1Tag & strArray2(0) & rc2Tag & strArray2(1)
That should do it.
If I've forgotten anything, you guys feel free to correct me ;-)