Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Links SQL 2.1 Change Heads Up...

Quote Reply
Links SQL 2.1 Change Heads Up...
Hi,

We had to make a change in 2.1.0 to how .cgi files are initilized. With 2.1.0, now you must start a script:

use Links qw/$IN $DB/; # I need these vars
Links::init ('/path/to/admin'); # Required
Links::init_user ('/path/to/admin'); # Optional

The first line now just lets you use $IN, $DB, $USER, $CFG variables in your program. However, they will be undefined until you call init. In 2.0.5 and in the beta, they would be automatically created during use.

We had to change this behavior in order to get the community working properly. The main thing is any plugin that creates a .cgi file will need to be updated.

Sorry!

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Links SQL 2.1 Change Heads Up... In reply to
This means the install procedure needs to search for, and translate, several other lines besides just the 'lib'.

Do you have a working code fragment for the installer that handles the changes properly?


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [Alex] Links SQL 2.1 Change Heads Up... In reply to
I am not a pro, so I guess, I will need little bit more help.

If you don't mind, can you specify what file/s needs to be changed and where (if possible line number)

Thanks.

Vishal

Vishal
-------------------------------------------------------
Quote Reply
Re: [TRPN] Links SQL 2.1 Change Heads Up... In reply to
In the plugins area, I posted a way to upgrade detail_page.cgi

That should work pretty much for all basic add-on scripts.



I'll have 2.1 compatible programs released this week. I've finally got all the stuff hanging over me resolved, and am just back to "normal" overwork status :)


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.