Hi
I am using the Gossamer Threads template for LINKS2 on my website, but I only get one column not two in the categories, I HAVE conducted an extenisive search of the forums but can't figure out the reason, can anyone help?
See my site at
www.brighton-today.com/Links
Here is the relevent section of site_html_template
sub site_html_print_cat {
# --------------------------------------------------------
# This routine determines how the list of categories will look.
# We now use a table to split the category name up into two columns.
# For each category you can use the following variables:
#
# $url : The URL to go to that category
# $category_name : The category name with _ and / removed.
# $category_descriptions{$subcat}: The category description (if any).
# $numlinks : The number of links inside that category (and subcategories).
# $mod : The newest link inside of that category.
#
my (@subcat) = @_;
my ($url, $numlinks, $mod, $subcat, $category_name, $description, $output, $i);
my ($half) = int (($#subcat+2) / 2);
$output = qq|<tr><td width="50%">|;
foreach $subcat (sort @subcat) {
($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); }
$numlinks = $stats{"$subcat"}[0];
$mod = $stats{"$subcat"}[1];
# Then we print out the name linked, new if it's new, and popular if its popular.
$output .= qq|<tr><td><font face="Verdana, Helevtica, Arial" size=2><dl><dt><strong><a href="$url">$category_name</a></strong> <small class="numlinks">($numlinks)</small> |;
$output .= qq|<small><font color="red">new</font></small>| if (&days_old($mod) < $db_new_cutoff);
$output .= qq|</dt>|;
$output .= qq|<dd><span class="descript">$description </span></dd>| if (!($description =~ /^[\s\n]*$/));
$output .= qq|</dl></font></td></tr>|;
}
return $output;
}
sub site_html_review_form {
my %rec = @_;
&get_reviews ($rec{'ID'});
&html_print_headers;
print &load_template ('review_form.html', {
reviews => $reviews,
results => $review_results,
review_graph => $review_graph,
ratings => $ratings,
average => $average,
highest => $highest,
lowest => $lowest,
displayed1 => $displayed1,
displayed2 => $displayed2,
span => $span,
page => $page,
totalpages => $totalpages,
build_review_url => $build_review_url,
link_info => &site_html_link (%rec),
%rec,
%globals
});
}
sub site_html_review {
my (%tmp) = @_;
return &load_template ('review.html', {
%tmp,
%globals
});
}
sub site_html_review_success {
# --------------------------------------------------------
Thanks in advance for the help
I am using the Gossamer Threads template for LINKS2 on my website, but I only get one column not two in the categories, I HAVE conducted an extenisive search of the forums but can't figure out the reason, can anyone help?
See my site at
www.brighton-today.com/Links
Here is the relevent section of site_html_template
sub site_html_print_cat {
# --------------------------------------------------------
# This routine determines how the list of categories will look.
# We now use a table to split the category name up into two columns.
# For each category you can use the following variables:
#
# $url : The URL to go to that category
# $category_name : The category name with _ and / removed.
# $category_descriptions{$subcat}: The category description (if any).
# $numlinks : The number of links inside that category (and subcategories).
# $mod : The newest link inside of that category.
#
my (@subcat) = @_;
my ($url, $numlinks, $mod, $subcat, $category_name, $description, $output, $i);
my ($half) = int (($#subcat+2) / 2);
$output = qq|<tr><td width="50%">|;
foreach $subcat (sort @subcat) {
($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); }
$numlinks = $stats{"$subcat"}[0];
$mod = $stats{"$subcat"}[1];
# Then we print out the name linked, new if it's new, and popular if its popular.
$output .= qq|<tr><td><font face="Verdana, Helevtica, Arial" size=2><dl><dt><strong><a href="$url">$category_name</a></strong> <small class="numlinks">($numlinks)</small> |;
$output .= qq|<small><font color="red">new</font></small>| if (&days_old($mod) < $db_new_cutoff);
$output .= qq|</dt>|;
$output .= qq|<dd><span class="descript">$description </span></dd>| if (!($description =~ /^[\s\n]*$/));
$output .= qq|</dl></font></td></tr>|;
}
return $output;
}
sub site_html_review_form {
my %rec = @_;
&get_reviews ($rec{'ID'});
&html_print_headers;
print &load_template ('review_form.html', {
reviews => $reviews,
results => $review_results,
review_graph => $review_graph,
ratings => $ratings,
average => $average,
highest => $highest,
lowest => $lowest,
displayed1 => $displayed1,
displayed2 => $displayed2,
span => $span,
page => $page,
totalpages => $totalpages,
build_review_url => $build_review_url,
link_info => &site_html_link (%rec),
%rec,
%globals
});
}
sub site_html_review {
my (%tmp) = @_;
return &load_template ('review.html', {
%tmp,
%globals
});
}
sub site_html_review_success {
# --------------------------------------------------------
Thanks in advance for the help