Gossamer Forum
Home : Products : Links 2.0 : Customization :

Categoriy Change

Quote Reply
Categoriy Change
Hola, I need to make a change in my category but I don't know how a where to make that change in .CGI. take a look at that menu here:www.Fouye.com I mean the space between the category , the picture. Please give me the code. Thanks in advance
Quote Reply
Re: [polo5] Categoriy Change In reply to
Do you mean the little folder gif and the category names? Or the column on the right, Haitian Events?


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Categoriy Change In reply to
Yes I mean little folder gif and the category names in The :HAITI WEBSITE DIRECTORY Menu. The most important for me is the space between the category. How to redice that space. Thank you
Quote Reply
Re: [polo5] Categoriy Change In reply to
Here is your code:

<DIV CLASS="cattitle">HAITI WEBSITE DIRECTORY</DIV> <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%"> <tr> <td width="100%"> <div class="margin"><table Cellpadding="3" border=0 width="100%"><tr><td class="catlist" width="50%" valign="top"> <table border=0 cellpadding=3 cellspacing=0><tr> <td> <img border="0" src="http://www.fouye.com/...bt/folder1_22b18.gif" align="absmiddle" width="22" height="18"> <b><a class="category_links" href="http://www.fouye.com/Arts/index.php">Arts</a></b> <small><i>(84)</i></small> </font> </td></tr> </table>

There is nothing to create space between the gif and the category name, so you should look at the CSS stylesheet. Check the 'category_links' definition, see if you can remove space on the left. Is there a reason that each category is in it's own table?


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Categoriy Change In reply to
He guys, How can I have A single space NOT A DOUBLE SPACE between the cat(and subcat) In the menu. Here is the Code( in site_html_templates.pl) but I dont' know how to modify it to have a single space:

# Then we print out the name linked, new if it's new, and popular if its popular.
$output .= qq|<dl><dt><strong><a class="link" href="$url">$category_name</a></strong> <small class="numlinks">($numlinks)</small> |;
$output .= qq|<small><sup class="new">new</sup></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>|;
}
# Don't forget to end the unordered list..
$output .= "</td></tr></table></div>\n";
return $output;
}
1;
Quote Reply
Re: [fkingneo] Categoriy Change In reply to
Remove all the definition List tags (DL, DT, DD), ans use breaks <BR> instead. Like so:


# Then we print out the name linked, new if it's new, and popular if its popular.
$output .= qq|<strong><a class="link" href="$url">$category_name</a></strong> <small class="numlinks">($numlinks)</small> |;
$output .= qq|<small><sup class="new">new</sup></small>| if (&days_old($mod) < $db_new_cutoff);
$output .= qq|<br>|;
$output .= qq|<span class="descript">$description </span>| if (!($description =~ /^[\s\n]*$/));
$output .= qq|<br><br>|;
}
# Don't forget to end the unordered list..
$output .= "</td></tr></table></div>\n";
return $output;
}
1;


Leonard
aka PerlFlunkie