Gossamer Forum
Home : Products : Links 2.0 : Customization :

A hidden description

Quote Reply
A hidden description
Well, I don't know if you can call this a mod, but it's kinda cool and works fine:

I added a field called "hidden", which gives webmasters an opportunity to submit important words concerning their site.

For example, if someone's site is called "John's Metallica page", he'd probably submit words like "metallica, hetfield, hammett, ulrich, newstead, lyrics, tabs, audio". Those words don't exist on any page, but help the search option a bit!
Quote Reply
Re: A hidden description In reply to
We'll only have to add a new field in links.def...
HiddenDes => [14,'alpha','40',200,0,'','']

...and add a field number for it...
$db_hiddendes =14;

...and then allow visitors to search the new field...
@search_fields = (1,2,5,14);

Then we need an extra delimeter in links.db. I created it while updating my Links from 1.1 to 2.0. It's done easily by modifying the upgrade.pl which came within the Links 2.0.

Then only one more thing:
add new fields to the forms in the site_html.pl, so that users can submit and modify their keywords. That should be easy enough!

Hope this helped someone! =)

[This message has been edited by Stigma (edited February 27, 1999).]
Quote Reply
Re: A hidden description In reply to
Hello there!

Thats interesting!!

In this case one could also create forms.

I would be interested to know how you did it.

Thanks in advance.

------------------
rajani











Quote Reply
Re: A hidden description In reply to
Thanks for the info. I am new and I am using the templates instead.

Can anyone explain how I can accomplish these two, if I am using site_html_templates.pl, I am using 2.0
======
Then we need an extra delimeter in links.db. I created it while updating my Links from 1.1 to 2.0. It's done easily by modifying the upgrade.pl which came within the Links 2.0.

Then only one more thing: add new fields to the forms in the site_html.pl, so that users can submit and modify their keywords. That should be easy enough!
=======

Thanks Mucho