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

Adding links problems?

Quote Reply
Adding links problems?
Hello;
I am trying to add a link to the database as a user. After fill out the form, I got this message:
* Rating (Can not be left blank)
* Votes (Can not be left blank)
what is wrong with that? In the form, there are no place to add rating and votes.
Where should I make a change?
Please help me out.

You are welcome to check out the link page at http://www.vnyahoo.com/index.shtml

Thanks for your help.
Tim

------------------
Quote Reply
Re: Adding links problems? In reply to
In add.cgi, sub process_form, delete the following:

Quote:
# Force some fields.
my %add_system_fields = (
isNew => 'No',
isPopular => 'No',
Hits => '0'
);

Then, in links.def, change:

Quote:
# System defaults. When adding new links or modifying links, these fields
# can not be overwritten by a user.
%add_system_fields = (
isNew => 'No',
isPopular => 'No',
Hits => 0
);

to read:

Quote:
# System defaults. When adding new links or modifying links, these fields
# can not be overwritten by a user.
%add_system_fields = (
isNew => 'No',
isPopular => 'No',
Hits => 0,
Rating => 0,
Votes => 0
);

I hope this helps.