.weblog engine
FAQ :: Search ::  Memberlist ::  Register :: Profile ::  Usergroups ::  Log in
Log in to check your private messages ::  Download Pivot :: Support Pivot | Info
Ads help support Pivot! Click on one that interests you today!
seeking a ThickBox album generator

 
Post new topic   Reply to topic   printer-friendly view    Pivot Support Forum Index -> Extension Discussion & Development
View previous topic :: View next topic  
Author Message
graham_k
Platinum Sponsor
<b>Platinum Sponsor</b>


Joined: 08 Nov 2004
Posts: 1399
Location: Varies frequently

PostPosted: Mon Dec 18, 2006 3:04 am    Post subject: seeking a ThickBox album generator Reply with quote

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
View user's profile Send private message
Bob
Pivot Author
<b>Pivot Author</b>


Joined: 19 Jul 2002
Posts: 3602
Location: At Home

PostPosted: Mon Dec 18, 2006 4:19 pm    Post subject: Re: seeking a ThickBox album generator Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
graham_k
Platinum Sponsor
<b>Platinum Sponsor</b>


Joined: 08 Nov 2004
Posts: 1399
Location: Varies frequently

PostPosted: Wed Dec 20, 2006 1:24 am    Post subject: Re: seeking a ThickBox album generator Reply with quote

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
View user's profile Send private message
joffrey
Pivot Groupie
Pivot Groupie


Joined: 30 Oct 2005
Posts: 33

PostPosted: Tue Dec 26, 2006 3:22 pm    Post subject: Re: seeking a ThickBox album generator Reply with quote

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
View user's profile Send private message
joffrey
Pivot Groupie
Pivot Groupie


Joined: 30 Oct 2005
Posts: 33

PostPosted: Tue Dec 26, 2006 6:36 pm    Post subject: Re: seeking a ThickBox album generator Reply with quote

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
View user's profile Send private message
Dave@Gradeant
Pivot Groupie In Training
Pivot Groupie In Training


Joined: 08 Dec 2006
Posts: 5

PostPosted: Wed Jan 10, 2007 11:35 am    Post subject: wow Reply with quote

wow! i would also love to have this 'gallery' type in pivot!
_________________
www.gradeant.com
Back to top
View user's profile Send private message
Bob
Pivot Author
<b>Pivot Author</b>


Joined: 19 Jul 2002
Posts: 3602
Location: At Home

PostPosted: Wed Jan 10, 2007 12:25 pm    Post subject: Re: seeking a ThickBox album generator Reply with quote

It seems like you could easily hack that bolgallery to output the images with a normal link, and then let thickbox handle them.

Another nice one i saw recently: http://www.plogger.org/

_________________
Search the Forum - Pivot Documentation - phpinfo
Also visit: Mypivot - Pivot Styles
Back to top
View user's profile Send private message Send e-mail Visit poster's website
joffrey
Pivot Groupie
Pivot Groupie


Joined: 30 Oct 2005
Posts: 33

PostPosted: Wed Jan 10, 2007 12:57 pm    Post subject: Re: seeking a ThickBox album generator Reply with quote

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
View user's profile Send private message
stavrosg
Sub Minion of Pivot Groupie-Ness
Sub Minion of Pivot Groupie-Ness


Joined: 29 Dec 2006
Posts: 15

PostPosted: Wed Jan 10, 2007 4:42 pm    Post subject: Re: seeking a ThickBox album generator Reply with quote

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
View user's profile Send private message
graham_k
Platinum Sponsor
<b>Platinum Sponsor</b>


Joined: 08 Nov 2004
Posts: 1399
Location: Varies frequently

PostPosted: Fri Jan 12, 2007 2:40 am    Post subject: Re: seeking a ThickBox album generator Reply with quote

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
View user's profile Send private message
stavrosg
Sub Minion of Pivot Groupie-Ness
Sub Minion of Pivot Groupie-Ness


Joined: 29 Dec 2006
Posts: 15

PostPosted: Fri Jan 12, 2007 5:51 pm    Post subject: Re: seeking a ThickBox album generator Reply with quote

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 user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    Pivot Support Forum Index -> Extension Discussion & Development All times are GMT - 4 Hours
Page 1 of 1
|
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Your generosity is appreciated!
Gambling News was the last to make a donation
:: go here for sponsorship information ::
Special thanks to our platinum sponsors: Gambling News  
DreamHost

powered by phpBB | RSS Feed