Yes, a few more categories are build, thanks a lot!!
But still about 150 categories are missing. I then tried again the cancelling of the while process with # and edit the HTML_template and the DB_Utils file, as described above. But I still get a "software compilation error" with the nph-build.cgi.
Could somebody print exact the lines I have to edit in the different files?
I edited:
# while (1) {
$categories_r = $CATDB->query ( { ID => '*', mh => $limit, nh => $offset+1, sb => 'Name', so => 'ASC', tb => 0 });
# last unless ($categories_r and @{$categories_r} > 0);
# foreach $category_r (@{$categories_r}) {
$offset++;
in the nph-build.cgi and
@EXPORT = qw/%ok_status %fail_status %all_codes %misc_status
&authenticate &linewrap ©_attach &load_template &get_template_list &get_totalcats
in the DB_Utils and
sub get_totalcats {
#-----------------------------------------------------
my ($CATDB, $GRAND_TOTAL);
$GRAND_TOTAL = 0;
$CATDB = new Links::DBSQL "$LINKS{admin_root_path}/defs/Category.def";
$GRAND_TOTAL = $CATDB->total();
return $GRAND_TOTAL;
}
also in the DB_Utils and
# You can put variables here that you would like to use in any
# of your templates.
%GLOBALS = (
date => \&Links::DBSQL::get_date,
time => \&Links::DBSQL::get_time,
db_cgi_url => $LINKS{db_cgi_url},
totalcats => &Links::DB_Utils::get_totalcats,
build_root_url => $LINKS{build_root_url},
site_title => $LINKS{build_site_title},
css => $LINKS{build_css_url},
banner => ''
);
in the HTML_Template.
Hope I did it right (no, hope not, so I can change my mistake!)
Thanks to all who helped me so far, really great!! Now I go to bed, the errors with building the site can wait till tomorrow.
But still about 150 categories are missing. I then tried again the cancelling of the while process with # and edit the HTML_template and the DB_Utils file, as described above. But I still get a "software compilation error" with the nph-build.cgi.
Could somebody print exact the lines I have to edit in the different files?
I edited:
# while (1) {
$categories_r = $CATDB->query ( { ID => '*', mh => $limit, nh => $offset+1, sb => 'Name', so => 'ASC', tb => 0 });
# last unless ($categories_r and @{$categories_r} > 0);
# foreach $category_r (@{$categories_r}) {
$offset++;
in the nph-build.cgi and
@EXPORT = qw/%ok_status %fail_status %all_codes %misc_status
&authenticate &linewrap ©_attach &load_template &get_template_list &get_totalcats
in the DB_Utils and
sub get_totalcats {
#-----------------------------------------------------
my ($CATDB, $GRAND_TOTAL);
$GRAND_TOTAL = 0;
$CATDB = new Links::DBSQL "$LINKS{admin_root_path}/defs/Category.def";
$GRAND_TOTAL = $CATDB->total();
return $GRAND_TOTAL;
}
also in the DB_Utils and
# You can put variables here that you would like to use in any
# of your templates.
%GLOBALS = (
date => \&Links::DBSQL::get_date,
time => \&Links::DBSQL::get_time,
db_cgi_url => $LINKS{db_cgi_url},
totalcats => &Links::DB_Utils::get_totalcats,
build_root_url => $LINKS{build_root_url},
site_title => $LINKS{build_site_title},
css => $LINKS{build_css_url},
banner => ''
);
in the HTML_Template.
Hope I did it right (no, hope not, so I can change my mistake!)
Thanks to all who helped me so far, really great!! Now I go to bed, the errors with building the site can wait till tomorrow.