Gossamer Forum
Home : Products : Links 2.0 : Customization :

Category text mod well kinda

Quote Reply
Category text mod well kinda
Right beside a category that has new links it says "NEW" I want to change it to show an image I have that says new instead. How do I do this?
Quote Reply
Re: [LordStryfe] Category text mod well kinda In reply to
site_html_templates.pl, sub site_html_print_cat.
Original:

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>|;
}


New:
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|<img src="/this/is/my/pic.gif" height="4" width="10" alt="New">| 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>|;
}

Change to suit your image.


Leonard
aka PerlFlunkie