Gossamer Forum
Home : Products : Links 2.0 : Customization :

Using Links for more than links

Quote Reply
Using Links for more than links
I did a bit of editing of templates and of the links.def file to be able to use Links 2.0 for my project, an abbreviation directory. Directories such as mine don't use hyperlinks, and I wondered if there was any interest in this, or if anyone else had done it. Reply here if you're interested and I'll zip it up for you and upload it to a place where you can download it :)
~notnamed
Jordan C, Staff, AbbrDIR
Quote Reply
Re: [notnamed] Using Links for more than links In reply to
Eventually I will be adding a glossary to my new site, so sure, let us know what changes were made.


Leonard
aka PerlFlunkie
Quote Reply
Re: [notnamed] Using Links for more than links In reply to
This is interesting. Actually what I want to do is use Links as a registry of people who own a particular car.

Instead of a url I'd like a mailto: tag where people can email a person when clicking on the title. The title would be changed to the person's name.

The categories will be United_States/each state, and I'd make similar subcategories for Europe.

Before I get more involved with this, is it possible?

...steven
...steven
MINI Links
BMW 318ti Registry
Quote Reply
Re: [steven1214] Using Links for more than links In reply to
in links.db you will have a line that looks something like

URL => [2, 'alpha', 80, 125, 1, 'http://', '^http|news|mailto|ftp'],


looks like you could change it to

URL => [2, 'alpha', 80, 125, 1, 'mailto:', '^http|news|mailto|ftp'],

or even

URL => [2, 'alpha', 80, 125, 1, 'mailto:', '^mailto'],

then in add.html

Code:
<INPUT TYPE=text NAME=URL VALUE="mailto:" SIZE=50 maxlength=125>


I have the following in my link.html and at one time I had one or two links using the mailto and i think everything worked ok. NOTE: search the forum for clean_title.

Code:
<A HREF="<%db_cgi_url%>/jump.cgi?ID=<%ID%>" TARGET=New class=Link
onmouseover="window.status=' Click here to Visit <%clean_title%>'; return true"
onmouseout="window.status=' ' ; return true"><%Title%></A>


Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."