Gossamer Forum
Home : Products : Links 2.0 : Discussions :

SEE THIS BUG !

Quote Reply
SEE THIS BUG !
Alex,

anyone can fix this problem?

I have download Link20 again and I try to add Category :
Quote:
Category = CGI_SCRIPS
Description = categorydesc

Subcategory = CGI_SCRIPS/PERL
Description =subcategorudesc

I build page by "Build All" description show

But If Build by "Staggered" subcategorydesc not show.
anyone have this problem too ?


thanks

------------------


------------------
Quote Reply
Re: SEE THIS BUG ! In reply to
This has been fixed, please see:

http://www.gossamer-threads.com/...um3/HTML/000921.html

Cheers,

Alex
Quote Reply
Re: SEE THIS BUG ! In reply to
Alex,

Your have fix Description for Subcategory. But your forget fix this :

if I have Category level :

Category--
|
Subcategory1,...
|
Subcategory2

If I build using "Build All" no have problem
But If I Build using "Stagered" theproblem I see :

Category--
|
Subcategory1,...,Subcategory2
|
not found

I fix by follow change
Quote:
-------------------------
sub build_single_category
-------------------------
elsif ($name =~ m,^$category/([^/]+),) {
@{$category{$name}} = @values;
push @{$subcategories{$category}}, $name;
$stats{$name}[1] = "1-Jan-1990";
$stats{$name}[0] = 0;
}
--------------------------------------------
change to
--------------------------------------------
elsif ($name =~ m,^$category/([^/]+)$,) {
@{$category{$name}} = @values;
push @{$subcategories{$category}}, $name;
$stats{$name}[1] = "1-Jan-1990";
$stats{$name}[0] = 0;
}

now the problem is :
if i have more than 20 Categories
Stagered only Build Category 0->19

not Build Category 20->....

please see this problem


Now I fix this with Change :
----------------------------

Quote:

------------------
sub build_staggered
-------------------
old :
-----
if ($auto) {
($offset > $#categories) ?

----
change to
-----
if ($auto) {
($offset > $#category_list) ?


Thanks


[This message has been edited by ARGA (edited March 15, 1999).]