Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

replace text with images

Quote Reply
replace text with images
How can i replace text new,update,pop
with images ?

I am using links SQL.

Regards

oliver

[This message has been edited by fantek (edited December 07, 1999).]
Quote Reply
Re: replace text with images In reply to
What you need to do is set up an image directory in your server tree (not in the cgi-bin directory). A good place is in /links/images right next to /links/pages.

Then, in the templates, where it says <small>POP</small> change that to your image:

<img src=/links/images/your_graphic.gif>

That's about all there is to it.

To clean it up, and let it load faster, you'd want to do something like:

<img border=0 height=nn1 width=nn2src=/links/images/your_graphic.gif>

where nn1 and nn2 are the dimensions of your graphic, and the border=0 allows closer spacing, and prevents a 'link' border if the graphic falls inside an <a> tag.

The <%if new/isPopular/isChanged%> test is what determines if the stuff inside is displayed or not -- you can make it text, graphics, or just about anything.



------------------
POSTCARDS.COM -- Everything Postcards on the Internet www.postcards.com
LinkSQL FAQ: www.postcards.com/FAQ/LinkSQL/







Quote Reply
Re: replace text with images In reply to
Also, you need to uncommnet the 3 lines in two places in the HTML_Templates.pm file to allow the use of the <%days_old%> tag if you want to use a multi-level graphic system as in the FAQ.

You can find them by searching for days_old in the text file.

------------------
POSTCARDS.COM -- Everything Postcards on the Internet www.postcards.com
LinkSQL FAQ: www.postcards.com/FAQ/LinkSQL/







Quote Reply
Re: replace text with images In reply to
i know about that
in link.htm template.
but i still have text "new,updated,pop"
on main page
on all pages there are images for new,updated and pop only on main index there is text.
do i must edit add.cgi or anything ?

because in links 2.0 I edit add.cgi and
one more file then it was working fine.


regards
o
Quote Reply
Re: replace text with images In reply to
To edit the category names, you need to edit subcategory.html

That determines how the category listings look.

One thing -- the 'related category' listing is just a bare listing, and doesn't include the new/pop/updated tags, though it really should...