CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
How to edit a gallery script to...



Sep 24, 2001, 9:48 PM

Post #1 of 1 (559 views)
How to edit a gallery script to... Can't Post


Newbie angle: I've never even touched perl code before, but recently I have decided to try and make minor adjustments to a cgiscript.

The script is called GreyMatter (it is a web log script, I've added a hack which allows Greymatter to post entries in columns (the hack is called the Photoblog

As it is with the hack, Greymatter now uses variables to display the entries in three parts:

{{logentrylist firstthird [authorname]}}
{{logentrylist secondthird [authorname]}}
{{logentrylist thridthird [authorname]}}

the firstthrid will display the first 1/3 of the total mmount of entries, the secondthird will display the second chuck of of the entries, and thirdthird will display the last third of the entries. Each of the chunk will be displayed in a cloumn (not a <table>, it just displays the chuck of entries downward. see diagram 1-1 below.).

9 6 3
8 5 2
7 4 1

What I'm trying to do is make is so that the entries will be displayed in a table that has 3 columns. But the order that the entries will be displayed will be from left to right on the first row (for the newest three entry), the from left to right again on the second column...etc (see diagram 1-2 below).

1 2 3
4 5 6
7 8 9

I've tried to find the parts of the codes that is responsible for splitting up the entries into 3 parts (silly me, i thought it would be easy), and edit it somehow.

Can anyone help me? thanks.


BTW- the cgi file I think is responsible is availible as a a zip file here:

above is the oringinal cgi file with the hack already applied.

the hack is available here as a gz patch file:


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives