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

[RELEASED] Recommend_It plug-in

Quote Reply
[RELEASED] Recommend_It plug-in
I converted the 2.0.1 recommend_it.cgi to a plug-in version 2.0.2

Any brave souls want to test it out, before I release it, send me an
email, and I'll send it by return mail. It should be self explanatory.
The "plug-in" part is only to set some options and to install, it uses
no "hooks" and actually runs as an external script.

I'll send it out later today, hopefully, I'll have enough feedback to
release it tomorrow.

Bad-link reporting will follow right after it.

UPDATE: This might be premature, but I've added the plug in to the FAQ. Should be available very shortly.



PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: [RELEASED] Recommend_It plug-in In reply to
Just tried it out, the instillation is so smooth but I am getting when trying to use it:

A fatal error has occured:

Invalid symbol: $REC_CFG imported by main
Please enable debugging in setup for more details.

Any suggestions.

Regards
Abd

http://www.idleb.com
Quote Reply
Re: [RELEASED] Recommend_It plug-in In reply to
Ouch... Thought I fixed that. It's a globals thing. I'll post a fixed archive.

It was just an omission/typo on one point.

I was typing on-line in the edit box, and added the variable to the Links import, rather than the use vars line.

Just adjust the top of your recommend_it.cgi to :
Code:
use strict;
use lib '/path/to/links/sql/admin'; ## you need to set this to your own local path!
use Links qw/$DB $IN $USER $CFG/; ## CHANGE THIS
use Links::SiteHTML;
use Links::Authenticate;
use GT::Mail;
use Links::Plugins;
use vars qw/$REC_CFG/; ## add this.
PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: [RELEASED] Recommend_It plug-in In reply to
That fixed it.

works very well just needs few changes to the HTML file and I will have it up and running on my site.

well done, keep the good work :)

Regards
Abd

http://www.idleb.com
Quote Reply
Re: [RELEASED] Recommend_It plug-in In reply to
You might want to grab the new version.

The file wasn't installing properly.

I had it installing as "recommend.it.cgi" rather than "recommend_it.cgi".

This is the problem of typing on a small screen!



PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: [RELEASED] Recommend_It plug-in In reply to
I Corrected The Script name when i was applying the changes you suggested previously.
the old one works fine for now.
thanks thou

Regards
Abd

http://www.idleb.com
Quote Reply
Re: [RELEASED] Recommend_It plug-in In reply to
Hey there
On the top of each generated page the script is generating a line that says "Scipt was not posted"

any idea how to get rid of?

Regards
Abd

http://www.idleb.com
Quote Reply
Re: [RELEASED] Recommend_It plug-in In reply to
Sorry!

That was just a debugging line. You can easily remove the print line from the recommend_it.cgi file.

I'll do that in the archive and post it later.

that's not a bug... I was using that to make sure the script was behaving as it should. I just missed it on clean up.



PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum