Gossamer Forum
Home : Products : Links 2.0 : Customization :

Multiple Categories Mod for Links v2

(Page 4 of 4)
> >
Quote Reply
Re: [PerlFlunkie] Multiple Categories Mod for Links v2 In reply to
Seems this is a bug... Blush

I can only get the links to print in the altcats by using Build All. Using Staggered, the counts change correctly, but the links do not appear in any of the alt cats, only in the main cat. I have searched and not found an answer to this. I will study the build routines more closely, see if I can tell what's amiss.


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Multiple Categories Mod for Links v2 In reply to
Has anyone ever figured out why the multiple cats mod does not build the links in the alt cats using the staggard build, only build all?
Quote Reply
Re: [awwa] Multiple Categories Mod for Links v2 In reply to
In Reply To:
Has anyone ever figured out why the multiple cats mod does not build the links in the alt cats using the staggard build, only build all?

Ok, Here is the fix.

First of all in nph_build you need to replace this

print "This phase of step 2 took $elapsed seconds.\n\n";
($offset > $#categories) ?

with this

print "This phase of step 2 took $elapsed seconds.\n\n";
($offset > $#category_list) ?

this was wrong in the origional code and stopped staggered from working. Auto worked although.

Now the problem is build_stats is not run before categories are build so you need to replace

($step == 2) and do {
my @category_list = &category_list;
my $i;
print $header;
if ($auto) {

with this
($step == 2) and do {
my @category_list = &category_list;
my $i;
print $header;

print "Build Stats .. \n";
$t1 = time();
print "** Loading Summary information . . .\n";
&build_stats (1);
if ($auto) {

Now rebuild and it shows all links with alt cats in those cats.
> >