Author Topic: SSI For Latest Uploads Possible?  (Read 5536 times)

0 Members and 1 Guest are viewing this topic.

Offline krazee

  • album.pl Tester
  • **
  • Posts: 38
  • Karma: +0/-0
  • I love Album.pl
SSI For Latest Uploads Possible?
« on: October 21, 2002, 00:52:14 »
Heya Mike and Album.pl Fans, I'v been wrestling with YaBB trying to get server side includes to work to get a tighter Homepage, which works marvelously.

So then it hit me: Isn't it Possible to Include The latest uploads to album.pl to another page in the form of simple Html and/or an image through a Server Side Include or a Javascript? This would dramatically increase album visits, as it seems a little daunting to dig into it for some people.


Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: SSI For Latest Uploads Possible?
« Reply #1 on: October 21, 2002, 06:16:52 »
It is, check this out:

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

It's non-styled HTML for the recent uploads, which can be inserted or "SSI'd" into a page, and styled any way you want it. It was Dino's idea, and you can see it in action on his site.

Hope that fits the bill...
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline krazee

  • album.pl Tester
  • **
  • Posts: 38
  • Karma: +0/-0
  • I love Album.pl
Re: SSI For Latest Uploads Possible?
« Reply #2 on: October 21, 2002, 12:30:56 »
.......how sweet is that.....it just keeps getting better.......
really this is excellent...props to dino, his homepage his CHOCkfull Maybe a little too full Dino? But impressive programming chops that's for sure.   ;)

Offline krazee

  • album.pl Tester
  • **
  • Posts: 38
  • Karma: +0/-0
  • I love Album.pl
Re: SSI For Latest Uploads Possible?
« Reply #3 on: October 21, 2002, 13:57:26 »
wait... I go to that page then view source and see:

Quote

<!-- RECENT tag start -->
<img src="http://perl.cdnarmy.ca/cgi-bin/album.pl?image=/cubano/thmb_mahimahi2.jpg" align="middle" class="photo" alt="mahimahi2.jpg" /><p><img src="http://perl.cdnarmy.ca/cgi-bin/album.pl?image=/dfilias/thmb_PDRM0348.jpg" align="middle" class="photo" alt="PDRM0348.jpg" /><p><img src="http://perl.cdnarmy.ca/cgi-bin/album.pl?image=/JorgoB/thmb_1eurov.jpg" align="middle" class="photo" alt="1eurov.jpg" /><p><img src="http://perl.cdnarmy.ca/cgi-bin/album.pl?image=/JorgoB/thmb_50centv.jpg" align="middle" class="photo" alt="50centv.jpg" /><p><img src="http://perl.cdnarmy.ca/cgi-bin/album.pl?image=/JorgoB/thmb_20centv.jpg" align="middle" class="photo" alt="20centv.jpg" /><p><img src="http://perl.cdnarmy.ca/cgi-bin/album.pl?image=/JorgoB/thmb_10centv.jpg" align="middle" class="photo" alt="10centv.jpg" /><p><img src="http://perl.cdnarmy.ca/cgi-bin/album.pl?image=/2Wheelin/thmb_mc_photo_adp131n1.jpg" align="middle" class="photo" alt="mc_photo_adp131n1.jpg" /><p><img src="http://perl.cdnarmy.ca/cgi-bin/album.pl?image=/JorgoB/thmb_2GR540401.jpg" align="middle" class="photo" alt="2GR540401.jpg" /><p><img src="http://perl.cdnarmy.ca/cgi-bin/album.pl?image=/rimma/thmb_gornyoil.gif" align="middle" class="photo" alt="gornyoil.gif" /><p><img src="http://perl.cdnarmy.ca/cgi-bin/album.pl?image=/mitar/thmb_1835e600.gif" align="middle" class="photo" alt="1835e600.gif" /><p>
<!-- RECENT tag end -->

those are all specific url's no? where is the actual SSI?

So sorry If I am being stupid but I just don't see anything familiar here.  ???
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline krazee

  • album.pl Tester
  • **
  • Posts: 38
  • Karma: +0/-0
  • I love Album.pl
Re: SSI For Latest Uploads Possible?
« Reply #4 on: October 21, 2002, 16:13:25 »
Hi I tried implementing it anyway. But I am not sure what to include or what to leave out should I just replace the board url before the questionmark and delete the image specific ino and thats it?

Please see my test page:
http://www.noordeman.com/cranbrookdesign/home.shtml

Bottom Left..... ???
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: SSI For Latest Uploads Possible?
« Reply #5 on: October 22, 2002, 07:21:53 »
It looks like you may be using V5.5. I think I added the SSI stuff to 5.7, so it won't work for you if that's the case... If you upgrade, I'd go right to the 6.0 beta, which is actually more stable than 5.7...

I take that back, http://www.noordeman.com/cranbrookdesign/album55/cgi-bin/album.cgi?album=:recent&ssi=1 seems to work, though without thumbnails, it's all just the same image icon.

So to use SSI, you want to insert a call to http://www.noordeman.com/cranbrookdesign/album55/cgi-bin/album.cgi?album=:recent&ssi=1 on your page, where you want the images to appear...
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline krazee

  • album.pl Tester
  • **
  • Posts: 38
  • Karma: +0/-0
  • I love Album.pl
Re: SSI For Latest Uploads Possible?
« Reply #6 on: October 22, 2002, 07:38:08 »
wow thanks. i think i actually run 5.6
the icon thing is because i turned thumbnails off, as they won't scale due to absence of Imagemagick on my server.

ill upgrade anyway though. or should i then wait for your final 6 release?


Oh by the way is there a way to make the descriptions appear as well? should I turn something on or off?

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: SSI For Latest Uploads Possible?
« Reply #7 on: October 22, 2002, 08:25:20 »
Turns out you're on 5.7, so you're OK. :)

There are a number of new features in 6.0 that you may like, though there are still more to come, so it all depends if you can wait or want to go ahead. ;)

In the "SSI" mode, no descriptions appear, since they'd be very hard to format into the variety of sizes that I expect people will be inserting the SSI call into...
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline krazee

  • album.pl Tester
  • **
  • Posts: 38
  • Karma: +0/-0
  • I love Album.pl
Re: SSI For Latest Uploads Possible?
« Reply #8 on: October 22, 2002, 13:48:54 »
Ah ok that makes sense. Does that go for the "uploaded by..." info as well? (just curious).

I'll check it out. last time I think it wasn't so hard to upgrade and I gained so  much from it so I will definately go and check it out.

Cheers, rock on! ;D
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: SSI For Latest Uploads Possible?
« Reply #9 on: October 23, 2002, 05:35:07 »
Yeah, it's the same for the "uploaded by" stuff as well... If you haven't done a lot of customization, upgrades are pretty straightforward, but they get more complex the more changes you've made... :)
« 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 For Latest Uploads Possible?
« Reply #10 on: October 28, 2002, 21:03:14 »
« 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 For Latest Uploads Possible?
« Reply #11 on: October 28, 2002, 21:04:15 »
Quote
It is, check this out:

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

It's non-styled HTML for the recent uploads, which can be inserted or "SSI'd" into a page, and styled any way you want it. It was Dino's idea, and you can see it in action on his site.

Hope that fits the bill...


And thanks for the props, Mike. But it's you that really deserves all the credit.
« 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 krazee

  • album.pl Tester
  • **
  • Posts: 38
  • Karma: +0/-0
  • I love Album.pl
Re: SSI For Latest Uploads Possible?
« Reply #12 on: October 29, 2002, 00:10:59 »
Thanks Dino I got it working now, real nice. Only thing I am wondering is if I could cut the amount of recent uploads that how in half or a different number. But I am guessing that you can only change that setting in albums settings not only change that amount for the SSI.
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: SSI For Latest Uploads Possible?
« Reply #13 on: October 29, 2002, 05:47:49 »
Yeah, it's a global config item, so changing it will change it for the albums as well as the SSI stuff...

Naw, I changed my mind. Re-download and replace album.pl. Note the new entry in the change log:

Quote
The value of the "ssi" variable now indicates how many recent uploads to display: http://perl.cdnarmy.ca/cgi-bin/album.pl?album=:recent&ssi=5 will show just the most recent 5.


Edit: Decided to add one more, while I was poking around in that code:

Quote
Added randomizer "SSI" code: http://perl.cdnarmy.ca/cgi-bin/album.pl?random=1&ssi=1 will display the thumbnail for a random photo, linked to the actual photo in the album.


Cheers

Offline krazee

  • album.pl Tester
  • **
  • Posts: 38
  • Karma: +0/-0
  • I love Album.pl
Re: SSI For Latest Uploads Possible?
« Reply #14 on: October 30, 2002, 00:24:14 »
WOW that's so cool. I am guessing that edited .pl is the latest (beta 6) version right? In that case I have to wait with this a bit but I can't wait to add it to the new homepage. Thanks!
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »