ok.. here we go..
[category.def] FIND:
Code:
Name => [1, 'alpha', 40, 75, 1, '', '^[\w\d/_-]+$'],
CHANGE TO:
Code:
Name => [1, 'alpha', 40, 75, 1, '', '^[\w\d/_-]+
\@?$'],
(this allows the @ sign at the end of categories only.. so you can't put it in the middle [it will give you invalid format] or if you put the \@ inside the [] thing.. it will allow it to have @ in the category name.. but if you wanted to do that.. you wouldn't need to add it to nph-build.cgi too.)
[nph-build.cgi] FIND (in build_category_pages):
Code:
next CATEGORY if ($cat =~ /^\s*$/); # How'd that get in here? =)
ADD BELOW:
Code:
next CATEGORY if ($cat =~ /\@$/);
(that checks to see if it ends with @.. then it won't build it..)
[site_html.pl or site_html_templates.pl] FIND (in site_html_print_cat):
Code:
($description) = @{$category{$subcat}}[2];
# First let's get the name, number of links, and last modified date...
$url = "$build_root_url/" . &urlencode($subcat) . "/";
if ($subcat =~ m,.*/([^/]+)$,) { $category_name = &build_clean($1); } else { $category_name = &build_clean($subcat); }
CHANGE TO:
Code:
if ($subcat =~ m,.*/([^/]+)$,) { $category_name = &build_clean($1); } else { $category_name = &build_clean($subcat); }
if ($subcat =~ /\@$/) { ($subcat) = @{$category{$subcat}}[2]; }
($description) = @{$category{$subcat}}[2];
$url = "$build_root_url/" . &urlencode($subcat) . "/";
that is all.. if you have Bobsie's Exclude..
[nph-build.cgi] FIND (in build_category_select_list):
Code:
if ($subcat !~ /^\s*$/) { push (@rootcat, $subcat); }
CHANGE TO:
Code:
if ($subcat !~ /^\s*$/ && $subcat !~ /\@$/) { push (@rootcat, $subcat); }
Pretty much it.. I haven't tested it out much with bobsie's thing.. so shoot the errors at me.. if any.. i bet you there is ONE..
i did a little thinking and i beleive the only thing i left out is something along the lines of the add form.. (when you go to it from the category).. tell me if i'm right..
you might think i'm missing some stuff in site_html.pl [for bobsies thing.. but no.. i'm not.. beleive me.. it comes from nph-build.cgi and then goes to it.. so don't tell me anything about that..]
you also might think i am missing something in build_check_dir.. beleive me.. i'm not.. directories ending with @ won't be built so they don't need to be checked
so don't bother me about that either.. hehe
jerry