Author Topic: SSI Latest Posts  (Read 5296 times)

0 Members and 1 Guest are viewing this topic.

Offline Dino

  • album.pl Donor
  • I Spend Too Much Time Here
  • *****
  • Posts: 250
  • Karma: +5/-0
  • That's actually my childhood cookie jar!
    • Dino's Bulletin Board
SSI Latest Posts
« on: July 23, 2002, 12:20:06 »
Mike, I was looking through your code to see if I could somehow put together a simple SSI script (small) that would let me call just the recent additions page without any template info. I want to use the SSI on my home page, and it needs to be displayed without any templates (i.e. I'll just be sticking it in a table).

Of course, it would be really nice if I could turn the thumbnails on an off too, but beggars can't be choosers.

Let me know if this is even possible, or if I'm barking up the wrong tree. :)

So far, your script has worked wonderfully! There are a few times that ImageMagick didn't resize, but I think that's a server issue.
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

"He who seeks the truth must doubt everything."Aristotle
"Extraordinary claims require extraordinary proof."Sagan

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: SSI Latest Posts
« Reply #1 on: July 23, 2002, 16:51:05 »
Hi Dino,

I'm an SSI idiot, so I'd have to learn how it all works before I can promise anything. I can see the benefit to it though, it would be pretty cool...

Cheers
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Dino

  • album.pl Donor
  • I Spend Too Much Time Here
  • *****
  • Posts: 250
  • Karma: +5/-0
  • That's actually my childhood cookie jar!
    • Dino's Bulletin Board
Re: SSI Latest Posts
« Reply #2 on: July 24, 2002, 15:41:27 »
Is there a way to create album_recent_ssi.tml that strips away the top 3-4 rows, and the bottom row, but leaves the content in one table?

Then, perhaps something in album.pl that allows one to call something like http://dinofilias.com/cgi-bin/album/album.pl?album=:recent_ssi, which would use the above new template?

One could then use SSI to call http://dinofilias.com/cgi-bin/album/album.pl?album=:recent_ssi and plop it in a table on their homepage.

For example, if you go to http://dinofilias.com, almost every table on the homepage is using some sort of SSI... either newsfeeds from UBB, or calling a page. I would love to put recent community photo album uploads there.

Just a thought.

If you don't want to change the entire script for a lone dude like me, if you can point me in the right direction, on where to look in the script, and what I might need to do, I'd love to toy with the idea.
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

"He who seeks the truth must doubt everything."Aristotle
"Extraordinary claims require extraordinary proof."Sagan

Offline Dino

  • album.pl Donor
  • I Spend Too Much Time Here
  • *****
  • Posts: 250
  • Karma: +5/-0
  • That's actually my childhood cookie jar!
    • Dino's Bulletin Board
Re: SSI Latest Posts
« Reply #3 on: July 24, 2002, 16:06:42 »
Hmm. Having a little difficulty calling album.pl?album=:recent.

Take a look at http://dinofilias.com/ssitest.shtml . I basically just use this page to test all SSI, so there's alot of other stuff there.

On the upper right, I can't call album.pl?album=:recent. However, in the middle, I can successfully call just album.pl. No big surprise.

How hard would it be to create a cgi or pl file that strictly pumps out just recent uploads? I might give it a shot, but it'll be a shot in the dark, since I'll have to learn how you've set up your script.

I'll let you know if I get even close.

This app just keeps getting better and better and better...!
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

"He who seeks the truth must doubt everything."Aristotle
"Extraordinary claims require extraordinary proof."Sagan

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: SSI Latest Posts
« Reply #4 on: July 24, 2002, 18:01:06 »
It should be possible, but it's one of those things I need to think about, so I don't make any big mistakes.

I'd be curious to find out why your SSI call to :recent is failing. Maybe SSI doesn't like the colon? Can you call album.pl?album=something and have it work?

We'll narrow this down eventually... :)
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Dino

  • album.pl Donor
  • I Spend Too Much Time Here
  • *****
  • Posts: 250
  • Karma: +5/-0
  • That's actually my childhood cookie jar!
    • Dino's Bulletin Board
Re: SSI Latest Posts
« Reply #5 on: July 25, 2002, 14:02:09 »
I'll give it a try. I thought about changing the name ":recent" in the config script, but couldn't find it. I'll try another one like admin. I'll let you know.

BTW, "something.pl?something=something" for sure works, since I use that syntax for other calls using SSI.
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

"He who seeks the truth must doubt everything."Aristotle
"Extraordinary claims require extraordinary proof."Sagan

Offline Dino

  • album.pl Donor
  • I Spend Too Much Time Here
  • *****
  • Posts: 250
  • Karma: +5/-0
  • That's actually my childhood cookie jar!
    • Dino's Bulletin Board
Re: SSI Latest Posts
« Reply #6 on: July 25, 2002, 14:18:38 »
No luck. I tried them all:

<!--#exec cgi="/cgi-bin/album/album.pl?album=&function=******_enter_desc"-->

<!--#exec cgi="/cgi-bin/album/album.pl?function=upload"-->

Etc. Etc.

I'm an SSI dummy too. I know just enough to get things to work. I don't know why album.pl works, but album.pl with a modifier "?function=X" does not.

Anybody out there a script/SSI guru?
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

"He who seeks the truth must doubt everything."Aristotle
"Extraordinary claims require extraordinary proof."Sagan

Offline Dino

  • album.pl Donor
  • I Spend Too Much Time Here
  • *****
  • Posts: 250
  • Karma: +5/-0
  • That's actually my childhood cookie jar!
    • Dino's Bulletin Board
Re: SSI Latest Posts
« Reply #7 on: July 25, 2002, 14:38:24 »

"He who seeks the truth must doubt everything."Aristotle
"Extraordinary claims require extraordinary proof."Sagan

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: SSI Latest Posts
« Reply #8 on: July 26, 2002, 04:44:07 »
Anything's possible.  ;D

I'll see if I can scope it out for you...
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Dino

  • album.pl Donor
  • I Spend Too Much Time Here
  • *****
  • Posts: 250
  • Karma: +5/-0
  • That's actually my childhood cookie jar!
    • Dino's Bulletin Board
Re: SSI Latest Posts
« Reply #9 on: July 26, 2002, 08:11:16 »
Thanks, Mike.

You're funny, though. You always say you'll check things out for me, and the next thing I know, I see a new major release a few days later.

You rule!

P.S. I was poking around in the code, examining it, and trying to learn it. I see there's a whole subroutine for recent uploads (checks to see if a new album is created, etc, etc.) Would a whole new subroutine need to be created, or could you use an if-else to add $recent_upload_ssi? All I need is a page that displays the thumbs with hyperlinks, and perhaps username and date (dir isn't really needed).
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

"He who seeks the truth must doubt everything."Aristotle
"Extraordinary claims require extraordinary proof."Sagan

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: SSI Latest Posts
« Reply #10 on: July 26, 2002, 08:47:08 »
So you'd want a page like the current recent uploads, without the header, footer and text blob by each thumbnail right?

How about something like this:

http://perl.cdnarmy.ca/cgi-bin/album.pl?album=:recent&ssi=1

If you replace your album.pl with the new version, you can do this on your site by adding the "ssi=1" to the URL. Give it a shot.

Should also work for inline frames and stuff like that...

Cheers
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Dino

  • album.pl Donor
  • I Spend Too Much Time Here
  • *****
  • Posts: 250
  • Karma: +5/-0
  • That's actually my childhood cookie jar!
    • Dino's Bulletin Board
Re: SSI Latest Posts
« Reply #11 on: July 26, 2002, 09:20:52 »
Wow. I don't get this fast a turnaround from my own employees!

That's exactly what I need! I'll give it a shot and let you know! AWESOME!
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

"He who seeks the truth must doubt everything."Aristotle
"Extraordinary claims require extraordinary proof."Sagan

Offline Dino

  • album.pl Donor
  • I Spend Too Much Time Here
  • *****
  • Posts: 250
  • Karma: +5/-0
  • That's actually my childhood cookie jar!
    • Dino's Bulletin Board
Re: SSI Latest Posts
« Reply #12 on: July 26, 2002, 15:02:45 »
Works awesome! Check it out (scroll 3/4 down, on right):
http://www.dinofilias.com/

Thanks so much, Mike! You rule!
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

"He who seeks the truth must doubt everything."Aristotle
"Extraordinary claims require extraordinary proof."Sagan

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: SSI Latest Posts
« Reply #13 on: July 26, 2002, 17:03:28 »
Hey, that's quite cool! I might try something like that for one of my sites...
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Bytes_U

  • album.pl Donor
  • album.pl Contributor
  • ***
  • Posts: 75
  • Karma: +0/-0
  • Oh no... not again?
Re: SSI Latest Posts
« Reply #14 on: July 28, 2002, 21:24:10 »
I love this idea guys. It works great in my blog's sidebar. Thanks Dino and Mike ;D ;D ;D
I appreciate all the little ideas that get exchanged on this forum!
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »