Home : Products : Links 2.0 : Customization :

Products: Links 2.0: Customization: Re: [RedRum] NEW Yahoo SubCats Mod: Edit Log

Here is the list of edits for this post
Re: [RedRum] NEW Yahoo SubCats Mod
oops. I keep having a problem with messages previewing okay, then I go to post and I get HTML spaghetti!

I think I found and corrected one additional bug in the original mod, plus another minor bug and opportunity to add a feature to make it more Yahoolike.

1) the bug: For some reason, subcategory names with pseudo-spaces like

Online_Magazines

were linking to the wrong page. The subcategory page had been built at
...links/Publications/Online_Magazines/

Tongue but this mod was sending it to
...links/Publications/Online%20Magazines/

WinkI fixed that by swapping in a _ for each space in the $child link.

2. The annoyance was that subcats like Online_Magazines were breaking in the category listing into Online
Magazines
WinkI fixed that by swapping in a nonbreaking space for the space

3. The opportunity for improvement was when there are more categories present than printed, it would be nice to have it print an ellipsis ... like

MAIN HEADING
subcat1,subcat2,subcat3...

So I added three lines to test and do that. I don't know much about Perl at all, but it seems to be working although inelegant, so I would appreciate it if you could have a look. I especially don't know why I had to print four periods to see three!

Here is the latest in the attachment It's working well for three or four displayed subcategories. If you would like to print many more it will need to break somewhere in the browser, so you should consider adding a space after the comma to let it do that! Yahoo seems to use three or four subcats, but it looks like they are counting characters to see how many will fit!

P.S. Go ahead and fix my code up. I know I am driving screws with a hammer







Last edited by:

memobug: Jan 3, 2002, 1:16 AM

Edit Log: