Gossamer Forum
Home : Products : Links 2.0 : Customization :

Gallery page

Quote Reply
Gallery page
Hi!

Inside my Links2 database, I added a "pic URL" field.

I'd like to have a script that, once called, and based on a template parsed from the Templates directory, would build a 10x10 random images gallery. You should be able to click on any and taken to the details page of that image's link.

I guess it should use randlinks.cgi again but not sure on how to get 10x10 different random images to be displayed.

Ideas?

Thanks!!


Quote Reply
Re: Gallery page In reply to
No1?


Quote Reply
Re: Gallery page In reply to
Yeah, use the rand links script, and also the columns mod (can't remember who by, either Glennu or Junko Wink).

I don't have time at the moment to help you, as I am at work and very busy.

Sorry.

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: Gallery page In reply to
youradds,


Thanks for the guidelines....

I'll try to find more info on that, however I'ven't managed to get randlinks.cgi to work, even the original release...

Damnit :( Logs are also empty :(



Quote Reply
Re: Gallery page In reply to
Try adding below the #!/usr/bin/perl bit;

Code:
use CGI::Carp qw(fatalsToBrowser);
I'm not sure though if the eval will interfer with that though Frown

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: Gallery page In reply to
A "can't display page" error appears (ie, same stuff).

However, error log does report:

"[Mon Sep 3 02:03:15 2001] access to /usr/local/etc/httpd/webcamworld.com/cgi/directory/rl.cgi failed for 213.98.140.23, reason: Premature end of script headers"

I renamed randlinks to rl just to avoid overwritting the mod we made a while back. Is it mandatory to be named randlinks.cgi ?

What else can be producing the premature stuff? It was upped in ascii, chmoded 755, etc....


Thks!


Quote Reply
Re: Gallery page In reply to
I think the reason you will be getting the error is because the script does not include a content header, as that is not needed when using it via SSI (at least I seem to remember it not having one). Try adding;

Code:
print "Content-type: text/html \n\n";
to the line below the #!/usr/bin/perl line.

Tell us what happens then.

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: Gallery page In reply to
Ok, I replaced the CGI::Carp line u suggested with the print content one, and nothing appears in the browser when calling rl.cgi (randlinks.cgi renamed) with and without parameters.

When viewing the HTML source code, you can see:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

Do remember that rl.cgi is the ORIGINAL one and randlinks.cgi is the one you suggested a mod before.

Thanks!!


Quote Reply
Re: Gallery page In reply to
 
Help rerequested, plz!

Thnks!