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

Mod - How to replace with a graphic?

Quote Reply
Mod - How to replace with a graphic?
Hi folks,

Forgive the intrusion if this question is more appropriate under another category.

I would like to replace the <LI> tag that appears before each link with a custom graphic. (Example of what I mean: http://www.3dark.com/resources/)

How would you suggest I go about doing this in LINKS SQL? (ie. what code am I looking for to change the <li> in front of links to an <IMG> tag?)

Note: I am a previous user of Links 2.0 and was able to easily identify what code needed to be changed in order to apply this change...

However, LINKS SQL appears considerably different as my attempts at finding the right code have failed...

Any help would be appreciated.

Thanks!

Sincerely,

Zero Z. Batzell Dean
Creator of 3DARK.com
Quote Reply
Re: Mod - How to replace with a graphic? In reply to
I've modified my original code so many times, I'm not sure I can help (I don't have a default version of links anywhere any more!)

But, the LINKs are built in the link.html file, and the subcategories are built in the subcategory.html file.

They are put together in the nph-build.cgi and page.cgi files.

They are also sometimes worked on in the HTML_Templates.pm file.

If you do a search for <LI> in those files you'll probably find them.

The way it works is nph-build.cgi and page.cgi start to run, and do a certain amout of work. They make calls to HTML_Templates.pm to do template parsing and output, but often they will surround the internal tags such as links.html and subcategory.html with some hard-coded html code.

There is a reason for this, but I really wish the template parser was more intelligent, or the code was all moved to HTML_Templates.pm so that no source code changes had to be made in nph-build.cgi and page.cgi.

If you can't find it I can unzip a package later and look, but if you do the search for the <LI> tag in those files you will find them!


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