Gossamer Forum
Home : Products : Links 2.0 : Customization :

Alphabetical Index Modification

Quote Reply
Alphabetical Index Modification
Has any one installed this MOD, i have tried to but i just get a 505 error. I have installed it twice now and still it doesn't work.

The script it located @

http://www.enscript.com/free/links2alpha.html

Quote Reply
Re: Alphabetical Index Modification In reply to
I have tried to install it twice, the alphabetical pages were built, but links never shown. I am currently working on integrating DBMAN into links, which is the better solution for alphabetizing links.

Thomas
http://www.japanreference.com
Quote Reply
Re: Alphabetical Index Modification In reply to
Will you be releasing this as a MOD. Keep me up to date on your progress with the alpha links mod.

Thanks.

Quote Reply
Re: Alphabetical Index Modification In reply to
Oh, instructions for doing that have been recently posted in the forum by Glenn and Drew. And I can tell you, linking DBMAN is really easier than I expected! Wink

Thomas
http://www.japanreference.com
Quote Reply
Re: Alphabetical Index Modification In reply to
Which form would that be.

Quote Reply
Re: Alphabetical Index Modification In reply to
Please refer to the following thread:

http://www.gossamer-threads.com/...ew=&sb=&vc=1

Thomas
http://www.japanreference.com
Quote Reply
Re: Alphabetical Index Modification In reply to
There was an error in my site where step 2 was skipped, so maybe that was the problem? It is corrected now.

If you still are trying to use it and are having trouble, I'd be happy to help.

Thank,
Ashley

Quote Reply
Re: Alphabetical Index Modification In reply to
Thank you for your great mod as well as for your offer to assist, Ashley! I tried to install the alphabetical index twice, but the links in the alpha pages were not printed. I am afraid my Links are too modded, I wasn't able to track the error. Anyhow, do you plan to release other goodies in future? Wink

Thomas
http://www.japanreference.com
Quote Reply
Re: Alphabetical Index Modification In reply to
I couldn't even get it working.......????just got server errors all the time.

I'll send you the files if you want a look. Where should i send them.

Quote Reply
Re: Alphabetical Index Modification In reply to
Did you catch the 2nd step that was missing originally? Do you get the errors when you build? Tell me what the error is.

You can send them to ashley@enscript.com. Can't promise I can look right away, but I will look :-)

Ashley

Quote Reply
Re: Alphabetical Index Modification In reply to
Hm, the links inside the pages weren't printed? You did have the alpha template created with <%links%> in there somewhere, right?

I have another mod that I'm going to publish that is sorting the links based on a foreign alphabet, and I'm sure I'll have others from time to time :-)

Ashley

Quote Reply
Re: Alphabetical Index Modification In reply to
Yes i did include step two. I don't even get to the build step. When i click to build all i get is a internal server 505 error.

Quote Reply
Re: Alphabetical Index Modification In reply to
Sounds like a syntax error got introduced during the modification. I had one person tell me when she cut and pasted some bad line returns got inserted causing 500 errors. I'd try and run from the command line to see what it's complaining about.

Ashley

Quote Reply
Alphabetical Mod Working In reply to
Hi

Got it working, a great script.
There is a syntax error!!!!!

On step 9

The line

my @alphabet = ('a','b','c','d','e','f','g','h','i','j','k','l','m',''
'o','p','q','r','s','t','u','v','w','x','y','z');

Note the letter n is missing BUT so is the comma between n and o, place in a comma and works first time

I have emailed the script owner so hopefully it will be fixed soon.

A great script, and thanks to the owner for sharing it with us.

Just be careful if you copy and paste parts of the script it looses its format which can also corrupt the script.

Especially the sub routines in nph-build.cgi, you may need to carriage return some lines manually.

Good Luck

DavyC
PS Please post and let me know if that helps you getting the script going.

Quote Reply
Re: Alphabetical Index Modification In reply to
I have installed the alphabetical index mod and the pages wer built...but the links don't display as well.

I doublechecked that the <%if links%><%links%><%endif%> code is in the alpha.html and indeed it is. I noticed a couple of forums devoted to this problem but found no solution. Any help would be appreciated.





Quote Reply
Re: Alphabetical Index Modification - One Solution In reply to
Hello all, The script works fine but I was having problems (as I noticed others were) with the mod coming up with a blank screen when you sort on any links. I also installed the mod twice - read thread after thread and nobody had an answer - then coming across a thread totally unrelated I noticed that you can sort your links by different fields... eg. Category, Description, Date, 'TITLE'....

If you go into your links.def, scroll down till you get to

# Field number to sort links by:

$db_sort_links = 2;

and just make sure that the field you're sorting on happens to be numerically appropriate for the %title% field defined at the top of links.def - mine was set to the date field by default, which gave me a blank screen every time I rebuilt.

Great script ashley thanks for all the effort you put into it...

The Jinni

Change is a purpose in progress...and a purpose is only a strong as it's Creator.
Quote Reply
Re: Alphabetical Index Modification - One Solution In reply to
Just a quick comment:

Instead of using:

my @alphabet = ('a','b','c','d','e','f','g','h','i','j','k','l','m',''
'o','p','q','r','s','t','u','v','w','x','y','z');

You could use:

my @alphabet = (a...z);



Good Luck!

Glenn
Host Links
http://cgi-resource.co.uk/links
Quote Reply
Re: Alphabetical Index Modification - One Solution In reply to
Hello,

In reference to what Jinni said:


and just make sure that the field you're sorting on happens to be numerically appropriate for the %title% field
defined at the top of links.def - mine was set to the date field by default, which gave me a blank screen
every time I rebuilt.

I checked my links.def and I do not have %title% field defined at the top of links.def.

Is the correct?

Thanking anyone in advance for your help.

Madonna