Gossamer Forum
Home : Products : Links 2.0 : Customization :

pass modify

Quote Reply
pass modify
In the directions for the password modify theres:add $db_password = 20; below that section where you will see other fields defined the same way. Make sure that you change the number 20 to reflect the correct value for your database.

My question is where it says change the number 20 to reflect the correct value of my database......Whats the #of my database?
(I am using links 2.0 standard installation)
Thanks,
Cam
Quote Reply
Re: pass modify In reply to
Password Modify is adding a new field to your Links setup. Each field is numbered sequentially, so...

$db_password = XX;

where XX is the next sequential number of your fields...
Quote Reply
Re: pass modify In reply to
Thanks for responding, but I am still getting this error:
Error Message : fatal error: syntax error at /dnshome/thebizlist.com/cgi-local/links/admin/links.def line 37, near "password"
and heres my links.def near that line:

Rating => [11, 'numer', 10, 10, 1, 0, '^[\d\.]+$'],
Votes => [12, 'numer', 10, 10, 1, 0, '^\d+$'],
ReceiveMail => [13, 'alpha', 10, 10, 1, 'Yes', 'No|Yes']
password => [14, 'alpha', 10, 10, 1, '', ''],

);
It looks the same all the way up, so I do not know what i have done wrong here...can yah help?
heres a link to my links.def http://www.thebizlist.com/links.def
Thanks,
Cam
Quote Reply
Re: pass modify In reply to
Here's why:

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

All of the definitions should have a , after the closing ], except for the last one. Change it to read:

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

Katherine