Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Re: nph-build problem -- abort or looping

Quote Reply
Re: nph-build problem -- abort or looping In reply to
Hi Andreas,

my modification is only to enshure that nph-build does not loop endlessly. It does not decrease the building-time!

To decrease the building-time you have to modify nph-build to accept parameters.

in the beginning change:
use vars qw($USE_HTML $LINKDB $CATDB $EMAIL $HIERARCH $GRAND_TOTAL);

to:
use vars qw($USE_HTML $LINKDB $CATDB $EMAIL $HIERARCH $GRAND_TOTAL $DIRTY);

insert after:
# Determine what type of build we are doing and do it.

insert:
my $in = new CGI;
$DIRTY =$in-> param('dt');
if ($DIRTY eq 'D'){ $DIRTY = 1} else {$DIRTY=0}

now change sub build_all to

sub build_all {
# --------------------------------------------------------
# Rebuilds the entire pages.
#
if ($DIRTY == 0) {
&build_backup();
&build_update_counters();
&build_update_newpop();
&build_detailed_view();
&build_home_page();
&build_static();
&build_new_page();
&build_cool_page();
&build_category_dropdown();
&build_category_pages();
} else {
&build_stats();
}
}

Now you must change the building-links in Admin_HTML.pm
in the sub html_navigation:

<p><$FONT><b>Building</b>
</font>
<$FONT>
<a href="nph-build.cgi?dt=D">Build Stats</a>

<a href="nph-build.cgi">Build All</a>

<a href="nph-index.cgi">Re-Index</a>

<a href="$SCRIPT_URL?db=Links&do=html_edit_template">Edit Templates</a>

<a href="$SCRIPT_URL?db=Search_Log&do=html_keywords&Term=*">Keywords</a>
</font>
</p>

Thats it. Beware to build the stats prior to build the site. If you know a little perl it is easy to modify this workaround to build backups, homepage, detailed pages whats new etc. seprately.

I hope it will help you to get your site running. If you encounter problems, I am on holliday till the 10th of september :)

regards, alexander

Subject Author Views Date
Thread nph-build problem -- abort or looping pugdog 11629 Aug 29, 2000, 12:32 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11494 Aug 29, 2000, 12:38 PM
Thread Re: nph-build problem -- abort or looping
qango 11389 Aug 29, 2000, 1:32 PM
Post Re: nph-build problem -- abort or looping
Stealth 11379 Aug 29, 2000, 1:40 PM
Thread Re: nph-build problem -- abort or looping
startpoint 11405 Aug 29, 2000, 2:24 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11393 Aug 29, 2000, 3:39 PM
Thread Re: nph-build problem -- abort or looping
qango 11398 Aug 29, 2000, 3:47 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11415 Aug 29, 2000, 3:52 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11395 Aug 30, 2000, 1:25 AM
Thread Re: nph-build problem -- abort or looping
Alex404 11403 Aug 30, 2000, 3:30 AM
Thread Re: nph-build problem -- abort or looping
pugdog 11380 Aug 30, 2000, 6:11 AM
Thread Re: nph-build problem -- abort or looping
Alex404 11370 Aug 30, 2000, 6:36 AM
Thread Re: nph-build problem -- abort or looping
Stealth 11350 Aug 30, 2000, 7:51 AM
Thread Re: nph-build problem -- abort or looping
AndreasH 11379 Aug 30, 2000, 4:04 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11356 Aug 30, 2000, 5:05 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11357 Aug 30, 2000, 5:20 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11381 Aug 30, 2000, 6:02 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11361 Aug 30, 2000, 6:14 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11381 Aug 30, 2000, 6:29 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11367 Aug 30, 2000, 6:50 PM
Post Re: nph-build problem -- abort or looping
pugdog 11357 Aug 30, 2000, 7:30 PM
Thread Re: nph-build problem -- abort or looping
Alex404 11378 Aug 31, 2000, 12:42 AM
Thread Re: nph-build problem -- abort or looping
AndreasH 11353 Aug 31, 2000, 10:58 AM
Thread Re: nph-build problem -- abort or looping
pugdog 11329 Aug 31, 2000, 2:06 PM
Thread to Alex
AndreasH 4438 Aug 31, 2000, 2:51 PM
Thread Re: to Alex
Stealth 4415 Aug 31, 2000, 3:09 PM
Thread Re: to Alex
AndreasH 4423 Aug 31, 2000, 3:18 PM
Post Re: to Alex
Stealth 4396 Aug 31, 2000, 3:25 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 4435 Aug 31, 2000, 4:30 PM
Thread Re: nph-build problem -- abort or looping
pugdog 4407 Aug 31, 2000, 5:51 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 4405 Aug 31, 2000, 6:27 PM
Thread Re: nph-build problem -- abort or looping
Alex404 4402 Sep 1, 2000, 1:38 AM
Post Re: nph-build problem -- abort or looping
AndreasH 4390 Sep 1, 2000, 3:32 AM
Post To all who helped me!
AndreasH 4379 Sep 1, 2000, 4:44 PM
Post Re: nph-build problem -- abort or looping
Alex404 11363 Aug 30, 2000, 7:50 AM