Gossamer Forum
Home : Products : Links 2.0 : Customization :

Alphabetical Index Mod Problem...

Quote Reply
Alphabetical Index Mod Problem...
I have tried out the mod at:
http://enscript.com/free/links2alpha.html

Did everything correctly, double checked everything, but when i go into my admin panel and do build all, i get an error:
"The page cannot be displayed"

Does anyone know how i can fix this? Or is there another mod that will let my vistors search using something similar?

Quote Reply
Re: Alphabetical Index Mod Problem... In reply to
1) Check your server error logs.
2) Check the synatx of the nph-build.cgi script via telnet:

Code:

perl -c /cgi-bin/links/admin/nph-build.cgi


Regards,

Eliot Lee
Quote Reply
Re: Alphabetical Index Mod Problem... In reply to
I dont have access to telnet. Is there any other way to check the syntax?

Quote Reply
Re: Alphabetical Index Mod Problem... In reply to
Try this, but I'm not sure if it will work Wink

Create a script called syntax.cgi with the following code

Code:
#!/usr/bin/perl

$error = `perl -c /cgi-bin/links/admin/nph-build.cgi`;

print "Content-type: text/html \n\n";
print $error;
Then upload to your server and run from your browser.

Not sure if it will work. Basically it will execute that telnet command via a script. Its worth a try Smile

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: Alphabetical Index Mod Problem... In reply to
I asked for telnet and they gave me details. I type in
perl -c /path/links/admin/nph-build.cgi
got a no file or dir found
so, i went to the dir, did "perl -c nph-build.cgi"
And it gave me the following


bash$ perl -c nph-build.cgi
syntax error at nph-build.cgi line 765, near "'z')"
Unmatched right curly bracket at nph-build.cgi line 770, at end of line
syntax error at nph-build.cgi line 770, near "; }"
nph-build.cgi had compilation errors.
bash$

I went to the location and found a whole lot of unformatted text which i copy/pasted from the tutorials site. I'll do line for line now and tell you how i go.

Quote Reply
Re: Alphabetical Index Mod Problem... In reply to
Booya!

Thanx i got it working =P



Although now i want the links to be categorized using a new field in my links.def which i enterd (working). The field is called "artist" how do i replace my "artist" field which the "Title" field it is currently sorting.

Thanx in advance
Quote Reply
Re: [darkOne] Alphabetical Index Mod Problem... In reply to
I checked every line but still can't get it to build, any help