Gossamer Forum
Home : Products : Links 2.0 : Customization :

A Small Favour

Quote Reply
A Small Favour
Can someone here do me a small favour?

I would like someone here to help me modify the script a little. The Add URL form should include a new field for people to enter their phone numbers. And when links are generated, I want the phone number to appear below the link.

Thanks,
Jack

GoodBookmarks.com
http://www.goodbookmarks.com/
Quality Links To Quality Sites
Quote Reply
Re: A Small Favour In reply to
1) There is a FAQ about adding fields to your existing links.db and in the links.def files in the FAQ section of Links in the Resource Center. After adding the field in both files (there is an upgrade script that will update your database automatically after you add the field in the links.def file), you simply add the following codes in your add.html and modify.html files:

Code:

Phone Number: <input type="text" name="PhoneNumber" size="20">


Then in the add_error.html and modify_error.html files, add the following codes:

Code:

<input type="text" name="PhoneNumber" value="<%PhoneNumber%>">


2) To put the Phone Number below your link, add the following codes in your link.html file:

Code:



<%PhoneNumber%>


Got it?

Regards,


Eliot Lee