Gossamer Forum
Home : Products : Links 2.0 : Customization :

Staggered Building Only A Few Categories

Quote Reply
Staggered Building Only A Few Categories
Hi,

I have about 100 categories.

When I build using Staggered, only the first 19 categories get built.

1st step: updates new, pop
2nd step: builds categories 0-19 alphabetically
3rd step: skips detailed - I use detail.cgi
4th step: builds home/new/cool

Plus, Staggered Auto goes through the motions, but it only builds one or two categories at each step. It barely starts one step when it jumps to the next step.

Is there a way to fix Staggered and Staggered Auto?

Let me know if I should provide more information.

Thanks.

------------------
ARMYNAVY.COM
MilitarySurplus Ring





Quote Reply
Re: Staggered Building Only A Few Categories In reply to
TrainedMonkey,
I have the same problem.Have you find how to solve this problem?
Can it be that only we have this problem?
Nobody has answered since 11-18-99!!

This is a big problem if there is no way to fix this.There is no way to build the pages with "Build All" because it will use to much server resources.

Hey Bobsie,how should I use Links 2.0 if I canīt build my pages step by step?
Quote Reply
Re: Staggered Building Only A Few Categories In reply to
What a nice surprise !

Geez, thanks, Kay. I almost forgot about this topic. I was wondering what I was going to do when my database got really big. Now, I feel a little better. I made the fix and tried it, and the results are fine. I'm really appreciative.

It does seem to build sub-categories twice. Is that what happens to yours?

Many, many thanks !!!

[This message has been edited by TrainedMonkey (edited January 16, 2000).]
Quote Reply
Re: Staggered Building Only A Few Categories In reply to
Thanks Kay,
I will test it.
Quote Reply
Re: Staggered Building Only A Few Categories In reply to
Yes!!It works.
I can begin to grow my database!
Thanks.
Quote Reply
Re: Staggered Building Only A Few Categories In reply to
Kay, now there is another problem.
After I have modified nph-build.cgi, the number of links($numlinks),which is displayed after the category name, donīt work correct.
No problem in the Homepage but if I have a main category in the homepage and when this contains subcategories 3 level deep:

Example:
promotion : Submission_Services : Free

than all $numlinks in the category Submission_Services are "0"!

Hope somebody knows a solution.
Quote Reply
Re: Staggered Building Only A Few Categories In reply to
Hi Guys,


That's pretty easy to resolve. Just replace this code in the nph-build.cgi sub build_staggered on the end of step 2:

original code:
my $elapsed = time() - $start;
print "------------------------------------------------\n";
print "This phase of step 2 took $elapsed seconds.\n\n";
($offset > $#categories) ?
print qq~</PRE><P><B><font face="Verdana" size=2><a href="nph-build.cgi?staggered=1&step=3">Go on to Step 3!</A></B></FONT></P>~ :
print qq~</PRE><P><B><font face="Verdana" size=2><a href="nph-build.cgi?staggered=1&step=2&limit=$limit&offset=$offset&auto=$auto">Next $limit Categories!</A></B></FONT></P>~;
last CASE;
};


replace with this:
my $elapsed = time() - $start;
print "------------------------------------------------\n";
print "This phase of step 2 took $elapsed seconds.\n\n";
($offset > $#category_list) ?
print qq~</PRE><P><B><font face="Verdana" size=2><a href="nph-build.cgi?staggered=1&step=3">Go on to Step 3!</A></B></FONT></P>~ :
print qq~</PRE><P><B><font face="Verdana" size=2><a href="nph-build.cgi?staggered=1&step=2&limit=$limit&offset=$offset&auto=$auto">Next $limit Categories!</A></B></FONT></P>~;
last CASE;
};


There's any mistyped variable (categories) simply just replace it. Hope this will help. Sorry for the english Smile


Regards,
Kay

Quote Reply
Re: Staggered Building Only A Few Categories In reply to
Hi guys,



I am happy to hear that the solution has worked fine Smile Smile Smile. About your second problem gosup, unfortunately i still have no idea about that. I have been occured the same problem, all my database (links.db) size is CORRUPTED!!! There's no field at all - 0 byte size. I think there's still any bug in the staggered subroutine.

CAUTION:

Never use the staggered auto function while your database has already big (about 5000 links), just use the staggered (manually - not automatically). Also please don't forget to always backing up you current database.



Best regards,

Kay
Quote Reply
Re: Staggered Building Only A Few Categories In reply to
Kay, Thanks for the staggared build solution, I've been trying to figure that one out, and finally found this thread! Smile

Any luck yet with the $numlinks problem?

Also, can you advise me where and how the sub-category lists are built. I saw in the site_templates_html.pl that the home page categories are not template based Yet, but what about the category list on a sub-folder index page. They are split into two columns (TD's) but that's the only similarity to the home page!

When I have a category with sub categories.

The Sub-Category List seems to be built differently than the home page category list.

It is wider, and the font face assignment is gone.

I have been checking in the category.html template, (Yahoo Style), and trying to redesign it (wow, table nesting is a nightmare).

Everything sets up nicely, except the sub category list above any links.

------------------
BruceS

[This message has been edited by BruceS (edited January 21, 2000).]
Quote Reply
Re: Staggered Building Only A Few Categories In reply to
Thanks very much for pointing out how to make the Staggered Build work, i.e. by replacing

($offset > $#categories) ?

with

($offset > $#category_list) ?

I had troubles with the Build All timing out and I made the change to nph-build.cgi, and now I can build everything again.

The only problem is that I have the Alternate Categories mod, and it seems that the Staggered Build won't place the links in the categories that are specified in the Alternative Categories field. It does put all of the links in for categories in the main category field, however.

Does anyone know how to make this work for the Staggered Build?

Any help would be greatly appreciated!

--FM