Gossamer Forum
Home : Products : Links 2.0 : Customization :

Megalinks BUG! + FIX!

Quote Reply
Megalinks BUG! + FIX!
i think this is true. or i messed up the code..

but i found that a whole bunch of people on my server had the same:

Odd number of hash in links.def line (46)

[something like that]

well i recently had a long look at the script.. finally noticed that there was an error.. A VERY SMALL error..

but

in

%db_not_null

it is listed like this:

%db_not_null = ( 'ID' => 'yes',
'Title' => 'yes',
'URL' => 'yes',
'Type' => 'yes',
'Date', => 'yes',
'Category' => 'yes',
'AltCat' => 'yes',
'Contact Name' => 'yes',
'Contact Email' => 'yes',
'Hits' => 'yes',
'Votes' => 'yes',
'Rating' => 'yes'.
'Expire' => 'yes'
);

when it should be

%db_not_null = ( 'ID' => 'yes',
'Title' => 'yes',
'URL' => 'yes',
'Type' => 'yes',
'Date', => 'yes',
'Category' => 'yes',
'AltCat' => 'yes',
'Contact Name' => 'yes',
'Contact Email' => 'yes',
'Hits' => 'yes',
'Votes' => 'yes',
'Rating' => 'yes',
'Expire' => 'yes'
);

notice that.. [] Smile

ok.. well i thought you might want to know that.. it did mess up a couple of things..

the error is received when you build the page from telnet or use CRON to automatically build it..

so steve.. just make one little change Smile

hope that helps

sorry again everyone.. too lazy to email Smile
Quote Reply
Re: Megalinks BUG! + FIX! In reply to
Thanks Widgets, good eye.

Steve
Quote Reply
Re: Megalinks BUG! + FIX! In reply to
Hi,

if you change the dot to comma, the field expire can't be empty anymore. So what can I set as default value for links that don't want to expire? Or can I take the field out of %db_not_null so that it can be empty?

thanks
Johannes
Quote Reply
Re: Megalinks BUG! + FIX! In reply to
yes how can you bypass the expire #?

------------------
elitecaraudio.com
carforums.com
Quote Reply
Re: Megalinks BUG! + FIX! In reply to
you only have to take it out if you update links by telnet or cron..

just modify it to:

%db_not_null = ( 'ID' => 'yes',
'Title' => 'yes',
'URL' => 'yes',
'Type' => 'yes',
'Date', => 'yes',
'Category' => 'yes',
'AltCat' => 'yes',
'Contact Name' => 'yes',
'Contact Email' => 'yes',
'Hits' => 'yes',
'Votes' => 'yes',
'Rating' => 'yes'
);