Gossamer Forum
Home : Products : Links 2.0 : Customization :

catagory layout problem

Quote Reply
catagory layout problem
Hello all,

After extensive research in this forum I followed all the steps that I found

You need to edit the sub
print_html_cat routine in EITHER the site_html_templates.pl
and site_html.pl.

Look for the HTML codes between either of the following formats:

TEMPLATES:
(site_html_templates.pl)

$output .= qq| CODES |;
<td width="50%">[/code]
in the $half code area.

2) Add the following HTML special character after the $numlinks codes:

Code:
& n b s p;As I have mentioned before and also in this Thread...the best thing to do is delete all CSS references, like class="classlist" in the site_html_templates.pl file in the sub site_html_print_cat routine...The problem is that CSS codes (which include table alignment codes like classlist) do not show up the same in all web browsers.... You need to delete all the definition list codes: <dl><dt></dl></dt>.
I have done all this but my table is a mess I can't get the catagories in one line below eachotherCan someone take a look at my code?my (@subcat) = @_;
my ($url, $numlinks, $mod, $subcat, $category_name, $description, $output, $i);
my ($half) = int (($#subcat+2) / 2);

# Print Header.
$output = qq|<div><table width="100%" border="3" cellspacing="0" cellpadding="2" bordercolor=#CCCCG><tr><td valign="top" width="50%"><font face="Arial" size=2><a href="$url"><font face="Arial" size=2 color=#FFFF00><b>$category_name</a>($numlinks)&nbsp;\n|;
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];# We check to see if we are half way through, if so we stop this table cell
# and begin a new one (this lets us have category names in two columns).
if ($i == $half) {
$output .= qq| </td><font face="Arial" size=1 color=#FFFF00><td valign="top" width=50%>\n|; }
$i++;

# Then we print out the name linked, new if it's new, and popular if its popular.
$output .= qq|<B><font face="Arial"size="3"><a href="$url">$category_name</a></font></B>($numlinks)&nbsp;|;
$output .= qq|<small><sup>new</sup></small>| if (&days_old($mod) < $db_new_cutoff);
$output .= qq|<BR>|;
$output .= qq|<dd><span>$description </span></dd>| if (!($description =~ /^[\s\n]*$/));
$output .= qq|<BR>|;
}# Don't forget to end the unordered list..
$output .= "</td></tr></table></div>\n";
return $output;
}1;
Thanks in advance,Peter.
Quote Reply
Re: [maaneschijn] catagory layout problem In reply to
Your problem is??
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Stealth] catagory layout problem In reply to
Sorry I messed this table up to :))

The problem is the catagories are next to eachother and not below eachother and in the second table the link count gets no color.
Quote Reply
Re: [maaneschijn] catagory layout problem In reply to
The categories are not meant to be below each othe.. they appear;

cat1 cat2
cat3 cat4
cat5 cat6
cat7 cat8

etc...

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] catagory layout problem In reply to
Sorry thats not what I mean

You can see it here: its adult material Crazy

http://www.cumshotspecialist.com/cumshots/
Quote Reply
Re: [maaneschijn] catagory layout problem In reply to
Can you attach site_html_templates.pl ? I see your problem now.. looks like the <BR> tags are not being put in... you sure you followed the threads inctructions to the letter?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] catagory layout problem In reply to
The code I am using now you can see above.

OK one of the steps was :

Don't forget to put <BR> tags in $output

I only put them in the last section do I have to put them in all

$output? like qq|CODE<BR>n\;