How Do i edit the way Category description look? It seems to be indented when it shows up. I also would like to change the font size too. I didn't see it in any of the template, So I'm guessing i have to edit it in a script? Let me know. Thanks!
Nov 27, 2002, 12:55 AM
Veteran / Moderator (18441 posts)
Nov 27, 2002, 12:55 AM
Post #2 of 6
Views: 3981
You need to edit site_html_templates.pl, located in the /admin folder.
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!
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!
Dec 8, 2002, 1:06 PM
Novice (11 posts)
Dec 8, 2002, 1:06 PM
Post #3 of 6
Views: 3932
It is an easy Job. You don't have to do anything with the scripts, the only thing you should do is to add the HTML in the description box. (like if you want the font bold then you should put <b>your description</b>). Also you can put image in your description(like <img src="your image">).
Dec 8, 2002, 6:06 PM
Veteran (1352 posts)
Dec 8, 2002, 6:06 PM
Post #4 of 6
Views: 3903
I'm pretty sure putting HTML in the description box won't work. (Actually, I just tried it, and it did not...) You do need to change the site_html_templates, sub site_html_print_cat. These terms are used:
<DL> = Definition List <DT> = Definition Term <DD> = Definition Detail
Remove/replace those codes to alter appearance; it is normal for <DD> to indent whatever it contains.
Leonard
aka PerlFlunkie
<DL> = Definition List <DT> = Definition Term <DD> = Definition Detail
Remove/replace those codes to alter appearance; it is normal for <DD> to indent whatever it contains.
Leonard
aka PerlFlunkie
Dec 9, 2002, 3:23 AM
Veteran / Moderator (18441 posts)
Dec 9, 2002, 3:23 AM
Post #5 of 6
Views: 3904
Trust me soft, you need to edit site_html_templates.pl, by;
$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>|;
}
I've done it before, so i know it works
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!
Code:
# 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>|;
}
I've done it before, so i know it works
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!