| View previous topic :: View next topic |
| Author |
Message |
graham_k Platinum Sponsor


Joined: 08 Nov 2004 Posts: 1399 Location: Varies frequently
|
Posted: Mon Dec 18, 2006 3:04 am Post subject: seeking a ThickBox album generator |
|
|
Anyone know of one? I would to auto-generate a web page full of thumbs, from a given directory, with ThickBox behaviour. _________________ Check out my snippets at http://www.keellings.com/software/pivot.php |
|
| Back to top |
|
 |
Bob Pivot Author


Joined: 19 Jul 2002 Posts: 3602 Location: At Home
|
Posted: Mon Dec 18, 2006 4:19 pm Post subject: Re: seeking a ThickBox album generator |
|
|
what you could do is:
- get a tool like irfanview to make thumbnails in a folder with images.
- make sure the thumbnails follow pivot's .thumb.jpg naming scheme..
- Write a small script in php that reads the dir, and outputs every found image as [[popup:bla:bla:bla]]
- Copy that output into a pivot entry, and you're done. _________________ Search the Forum - Pivot Documentation - phpinfo
Also visit: Mypivot - Pivot Styles |
|
| Back to top |
|
 |
graham_k Platinum Sponsor


Joined: 08 Nov 2004 Posts: 1399 Location: Varies frequently
|
Posted: Wed Dec 20, 2006 1:24 am Post subject: Re: seeking a ThickBox album generator |
|
|
Thanks for teh advice, Bob.
Actually, I wasn't thinking of a snippet (shudder!), but something that I could use outside of Pivot (horror!) _________________ Check out my snippets at http://www.keellings.com/software/pivot.php |
|
| Back to top |
|
 |
joffrey Pivot Groupie


Joined: 30 Oct 2005 Posts: 33
|
Posted: Tue Dec 26, 2006 3:22 pm Post subject: Re: seeking a ThickBox album generator |
|
|
I would LOVE a snippet that could do this..
Maybe with four parameters:
- folder
- columns
- max thumb height
- max thumb width
Something like:
[[gallery:images/somesubfolder/:3:50:50]]
The thumbs could/should be generated on the fly.
The final look and feel would be a table style, with x columns, so with the above mentioned example:
img1 ヲ img2 ヲ img3
img4 ヲ img5 ヲ img6
img7
I've got some code like this in asp/.net but I知 no php expert.
But this seems to be what I知 looking for, I値l keep on searching, if I can't find anything, maybe I値l look into re-coding the photo library into a snippet.
------------------
edited to show all possible attributes (and as a reminder to myself :-) |
|
| Back to top |
|
 |
joffrey Pivot Groupie


Joined: 30 Oct 2005 Posts: 33
|
Posted: Tue Dec 26, 2006 6:36 pm Post subject: Re: seeking a ThickBox album generator |
|
|
| graham_k wrote: |
Thanks for teh advice, Bob.
Actually, I wasn't thinking of a snippet (shudder!), but something that I could use outside of Pivot (horror!) |
Maybe the following script works as a possible base for you Graham:
http://bolgallery.free.fr/
It basically generates html & thumbs of specified folders. |
|
| Back to top |
|
 |
Dave@Gradeant Pivot Groupie In Training


Joined: 08 Dec 2006 Posts: 5
|
Posted: Wed Jan 10, 2007 11:35 am Post subject: wow |
|
|
wow! i would also love to have this 'gallery' type in pivot! _________________ www.gradeant.com |
|
| Back to top |
|
 |
Bob Pivot Author


Joined: 19 Jul 2002 Posts: 3602 Location: At Home
|
|
| Back to top |
|
 |
joffrey Pivot Groupie


Joined: 30 Oct 2005 Posts: 33
|
Posted: Wed Jan 10, 2007 12:57 pm Post subject: Re: seeking a ThickBox album generator |
|
|
I actually found a ready made extension :-)
http://forum.pivotlog.net/viewtopic.php?t=7061&highlight=gallery
The only problem I have with that one though is that it doesn't work on my windows host box.
So I致e manually 'hacked' that extension to work for me.
But I would still love to have some kind of 'front end media management' a.k.a. gallery included in pivot. Cause the next release might cripple my hacked extension.
Bob, the plogger one looks good; however it's again a gallery that requires a MySQL database. Since I only want to have generated thumbs & link to image I don't need all the additional stuff.
But I値l keep that one in mind if I need a more extensive gallery.
Cheers,
Joff
---
edited to correct a typo |
|
| Back to top |
|
 |
stavrosg Sub Minion of Pivot Groupie-Ness


Joined: 29 Dec 2006 Posts: 15
|
Posted: Wed Jan 10, 2007 4:42 pm Post subject: Re: seeking a ThickBox album generator |
|
|
| I used www.sgal.org and hacked it a bit to use thickbox instead of a seperate page to display the images. Does the job wonderfully. |
|
| Back to top |
|
 |
graham_k Platinum Sponsor


Joined: 08 Nov 2004 Posts: 1399 Location: Varies frequently
|
Posted: Fri Jan 12, 2007 2:40 am Post subject: Re: seeking a ThickBox album generator |
|
|
| stavrosg wrote: |
| I used www.sgal.org and hacked it a bit to use thickbox instead of a seperate page to display the images. Does the job wonderfully. |
Care to share? _________________ Check out my snippets at http://www.keellings.com/software/pivot.php |
|
| Back to top |
|
 |
stavrosg Sub Minion of Pivot Groupie-Ness


Joined: 29 Dec 2006 Posts: 15
|
Posted: Fri Jan 12, 2007 5:51 pm Post subject: Re: seeking a ThickBox album generator |
|
|
Sure. I used singapore 0.10.1 for this.
Download jquery.js, and thickbox [ http://jquery.com/demo/thickbox/ ] and put them in the includes/ subdirectory.
Then, add this to the template's header:
| Code: |
<!-- Includes for the ThickBox script -->
<script type="text/javascript" src="<?php echo $sg->config->base_url ?>includes/jquery.js"></script>
<script type="text/javascript" src="<?php echo $sg->config->base_url ?>includes/thickbox.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo $sg->config->base_url ?>includes/thickbox.css" />
<!-- End ThickBox includes --> |
Finally, apply this patch:
| Code: |
diff -u includes-orig/image.class.php includes/image.class.php
--- includes-orig/image.class.php 2007-01-12 23:37:44.000000000 +0200
+++ includes/image.class.php 2007-01-12 23:40:49.000000000 +0200
@@ -213,7 +213,7 @@
function thumbnailLink($class = "sgThumbnailAlbum", $type = "album")
{
- return '<a href="'.$this->URL().'">'.$this->thumbnailHTML($class, $type).'</a>';
+ return '<a href="'.$this->imageURL().'" title="'.$this->name().$this->byArtistText().'" class="thickbox" rel="album">'.$this->thumbnailHTML($class, $type).'</a>';
}
function thumbnailPopupLink($class = "sgThumbnailAlbum", $type = "album")
|
Hopefully, it'll work.
Unfortunately, I can't link to mine, because it isn't yet online but it'll get to it, eventually. |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|