Gossamer Forum
Home : Products : Links 2.0 : Customization :

Info.cgi or details.cgi

Quote Reply
Info.cgi or details.cgi
What ever happened to these scripts. I am aware that Drew had a slight hosting problem back in Jan 2002 and his website was taken down. I hope I am right in saying that Drew ran camelsoup.com

Info.cgi was in the resource section but was a bad link.

Is this script available as space is an issue with me and my server.

I am also willing to pay for the script if required.

Whilst on about paying for script Paul W are you going to sell your stats.cgi script. I saw an old post with a Paypal link on it but it was dead.

Any help is appreciated.
Quote Reply
Re: [stu2000] Info.cgi or details.cgi In reply to
To the best of my knowledge, this is all that's needed:

Code:
#!/usr/loca/bin/perl
use CGI qw(:standard);
use lib "admin"; #change to full path if you have problems
require "links.cfg";
require "links.def";
require "site_html_templates.pl";
my $id = param(id);
$id =~ /^\d+$/ or die "invalid ID";
my %rec = get_record($id);
print header();
print site_html_detailed(%rec);

Let me know if you have any problems, as I don't have Links installed anymore, nor my original info.cgi script.

--Philip
Links 2.0 moderator

Last edited by:

sponge: Aug 28, 2002, 3:27 PM
Quote Reply
Re: [stu2000] Info.cgi or details.cgi In reply to
Hi Stu2000,



Did you get this working...if so can yuu drop a note as to what else you had to do. I am assuming that the code provided is the info.cgi code, but what else needs to be amended?

Hamsterpants
Quote Reply
Re: [Hamsterpants] Info.cgi or details.cgi In reply to
I tried replicating the code but getting error

after adding require "$db_lib_path/db_utils.pl";
i get "The server encountered an internal error or misconfiguration and was unable to complete your request."
but when i disable the line then its back to the old error "Error including libraries: Undefined subroutine &main::get_date called at /home/mcsindia/www/cgi-bin/admin/site_html_templates.pl line 33.
Compilation failed in require at details.cgi line 12.
"

* path is correct since $db_lib_path is picked correctly from links.cfg
* permissions are set properly
* I have reuploaded site_html_templates.pl to eliminate chances of truncating.
* http://www.mcsindia.com/site_html_templates.txt
* http://www.mcsindia.com/details.txt
* original sub get_date { } routine has been untouched

the above remedies were suggested by PerlFlunkie but unfortunately didn't work

regards
Dharmanath
Quote Reply
Re: [sponge] Info.cgi or details.cgi In reply to
I don't think this mod was ever uploaded to the forum; just available on the site. If I get permission from the author, I can upload a copy of it.


Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
Quote Reply
Re: [xego] Info.cgi or details.cgi In reply to
can you post exactly what you are using?


Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."