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

Hits-cannot be left blank

Quote Reply
Hits-cannot be left blank
Adding a resource, I got this response:
There was an error adding your resource:
Hits-cannot be left blank
Since there is no "hits" field, this seems particularly strange.
http://thechaos.net/links/add.cgi
How can I fix this, please.

Quote Reply
Re: Hits-cannot be left blank In reply to
Are you making the hits variable a required entry?

I think it was in links.def that you set this variable

Hits => [8, 'numer', 10, 10, 1, '0', '\d+'],

or was it here ????

# 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,
ReceiveMail => 'Yes'
);

Sorry for sounding dumb, but I think you're problem is some where along these lines.

Good luck and sorry for not being more helpful.




**************************************
on the pages in between ...
Quote Reply
Re: Hits-cannot be left blank In reply to
You would change the following in links.def;
Code:
Hits => [8, 'numer', 10, 10, 1, '0', '\d+'],
to

Code:
Hits => [8, 'numer', 10, 10, 0, '0', '\d+'],
Hope that helps Wink

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: Hits-cannot be left blank In reply to
Well, the Hits field IS required by default. Probably you have a mistake in the system default settings.

Thomas
http://links.japanref.com
Quote Reply
Re: Hits-cannot be left blank In reply to
Yes, this fixed me right up. Thanks!
http://thechaos.net