Ok, here is the tag in the links.def that I'm assuming your talking about:
Definition of your database file.
%db_def = (
ID => [0, 'numer', 5, 8, 1, '', ''],
Title => [1, 'alpha', 40, 75, 1, '', ''],
URL => [2, 'alpha', 40, 75, 1, 'http://', '^http|news|mailto|ftp'],
Date => [3, 'date', 15, 15, 1, \&get_date,''],
Category => [4, 'alpha', 0, 150, 1, '', ''],
Description => [5, 'alpha', '40x3', 500, 0, '', ''],
'Contact Name' => [6, 'alpha', 40, 75, 1, '', ''],
'Contact Email' => [7, 'alpha', 40, 75, 1, '', '.+@.+\..+'],
Hits => [8, 'numer', 10, 10, 1, '0', '\d+'],
isNew => [9, 'alpha', 0, 5, 0, 'Yes', ''],
isPopular => [10, 'alpha', 0, 5, 0, 'No', ''],
Rating => [11, 'numer', 10, 10, 1, 0, '^[\d\.]+$'],
Votes => [12, 'numer', 10, 10, 1, 0, '^\d+$'],
ReceiveMail => [13, 'alpha', 10, 10, 1, 'Yes', 'No|Yes']
Then in the section right below that "Field Number of some important fields. The number is from %db_def above where the first field equals 0.
The url is specified as $db_url = 2;
The only thing I can see that I might be missing here is a field that specifies the <ID> which is 0, but it wasn't there to begin with.....should I add it in this section? If so what would the call be $ID = 0?
Then in my site_html_templates.pl file, here is what I have as the globals:
%globals = (
date => &get_date,
time => &get_time,
db_cgi_url => $db_cgi_url,
build_root_url => $build_root_url,
site_title => $build_site_title,
css => $build_css_url,
banner => ''
);
As far as the sub ratings as you said to ---------------------------------------------
"also check the rating sub-routines in the site_html_templates.pl file to make sure that you have set global variables for URL as URL.
sub site_html_ratings"
---------------------------------------------
This routine determines how the top rated page will look like.
return &load_template ( 'rate_top.html', {
top_rated => $top_rated,
top_votes => $top_votes,
%globals
});
But this only controls the way the top rated page appears...I think. Anyway there was no other section in this file that talked about sub ratings.
Anyway, I'm at a loss, I realize your busy Eliot, so when you get a chance to respond, that would be great! If anyone else would like to jump in and give some feedback that would be most helpful also. Thank you very much.
Steve