Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Adding Fields to the Add Site page

Quote Reply
Adding Fields to the Add Site page
I want to add a field at the end of the add site field list(or whatever you call it). I read all the resource info, and am still confused. I just want to add a check box-type field in the add link part of the script. Can anyone help me?
It doesnt have to be a check box, just a way to say yes or no

Quote Reply
Re: Adding Fields to the Add Site page In reply to
Hi

First backup all the following files:

Then open

links.def

find

ReceiveMail => [13, 'alpha', 10, 10, 1, 'Yes', 'No|Yes']

**This is one line in the script, replace with

ReceiveMail => [13, 'alpha', 10, 10, 1, 'Yes', 'No|Yes'],
Yourfieldname => [14, 'alpha', 10, 10, 0, 'Yes', 'No|Yes']



then move down the script and find

$db_mail = 13; add $db_yournewname = 14;

then find

isNew => 'Yes,No',
isPopular => 'Yes,No',
ReceiveMail => 'Yes,No'

and replace with

isNew => 'Yes,No',
isPopular => 'Yes,No',
ReceiveMail => 'Yes,No',
yourfield name => 'Yes,No


then open your add.html template

and add a new form field called yournewfield

Now you need to add a | to the end of your database to update your existing database.

There are a few files in the resource centre links - faq to do this or you can open

links.db

in your data directory and add them manually

MAKE SURE YOU HAVE BACKED UP ALL THESE FILES BEFORE YOU START

Good Luck

DavyC


Quote Reply
Re: Adding Fields to the Add Site page In reply to
Ok, I'm going to give it a try... Smile