More SlideshowPro fun
suprsidr
Joined: 2005-04-17
Posts: 8339 |
Posted: Mon, 2009-04-27 02:54 |
Judging by the popularity of my Gallery -> SlideshowPro script. SlideshowPro's recent newsletter contained some very cool modal samples. Not being outdone I whipped one up based on jQuery's Thickbox. Interested in the method, let me know. -s |
|
Posts: 110
I just took a look, and I'm impressed, great job & design. (as well as functionality)
Gallery3 - "Third time's the charm".
Posts: 8339
I also added the same modal view to my videos http://www.flashyourweb.com/media/index.php?g2_itemId=30
each indavidual video has its own as well as the slideshow pro view.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 6
I'm not sure if this forum is still active. I just set up Gallery2 for couple weeks and have been looking for a better slideshow than the one comes with Gallery2. I checked out your site http://www.flashyourweb.com/media/index.php?g2_itemId=32 and the slideshow via the 'green button' is what I've been looking for. I'm interested to know how did you set that up and if it is something that I can add to my Gallery2 site. I'm currently using Gallery v2.3 and Carbon theme.
Thanks!
Posts: 8339
Lemme know when you have the above as they are required.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 6
Thanks for your quick reply! Sorry, I did not reply back sooner. I downloaded SlideshowPro, SSP script, jQuery and Thickbox. I downloaded the SlideshowPro (for Slash) trial version for now, since I'm not sure if I'm able to get it works on my Gallery site. I'm fairly new to Gallery2 and PHP. Based on SlideshowPro website, this version has the full functionalities, just that it can only show up to 3 pictures in an album. Please let me know if these are good enough to go forward!
Thanks!
Posts: 8339
upload slideshowpro.swf from the standalone sample directory to yoursite.com/gallery2
then you need to create a blank php page containing only slideshowpro contents:
save as thickSSP.php and upload to yoursite.com/gallery2
create another blank php page contents:
save as param.php and upload to yoursite.com/gallery2
you'll also need to configure ssp.php you got from mysite and upload to yoursite.com/gallery2
if your gallery is not in the default location(yoursite.com/gallery2) you'll need to edit these scripts to reflect your setup.
get thickSSP.php working, and we'll move on to altering your theme.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 6
Hi,
I think I got the thickSSP.php to work. I'm able to see the pictures from the album that I set the g2_itemId in thickSSP.php file.
What's next?
FYI, I'm using Carbon theme.
Thanks!
Posts: 8339
ok,
we need to reference jquery and thickbox in theme.tpl
so in gallery2/themes/carbon/templates/local/theme.tpl <- you may have to copy the original here
add these lines:
notice that you'll need to copy your thickbox to gallery2/thickbox
done with theme.tpl, lets move on to album and photo.tpl
again you should copy the originals to gallery2/themes/carbon/templates/local/ and work on them instead of the originals
in each, there should be a loop for item links:
there should already be a reference to the slideshow module {if $itemLink.moduleId == "slideshow"}
for photo.tpl:
and album.tpl:
clear your template cache a try it out
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 6
Hi,
Following your instructions and got it to work kind of. I still have an issue which in my configuration. My Gallery site URL (as part of installation, I believe) is http://gallery.mysite.com instead of http://mysite/gallery2, so I can get to SSP which direct URL but not when I'm logging to my Gallery. Any suggestions?
Thanks!
Posts: 8339
So is the link in the album incorrect?
adjust them as needed.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 6
I edited all the files that your mentioned and remove all the 'gallery2/' from the links. It is working now except for 'hide' albums. If I access to my hide albums without log in, I just get a spinning circle in SSP. Since I don't have many users or hide albums, this would be ok. I can use the default slideshow for these users and albums.
Thank you very much for all your help! You rock!!!
Posts: 8339
Hidden albums alter permissions.
I'm not sure if this will help, but try changing function getDisabledFlag in ssp.php to always return false:
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 6
That works. I also bought the SSP and replaced the trial version. It works great! Thanks so much!
Posts: 6
This is great ))
This is just what I needed to get SSP working in Gallery2. I installed specially a Gallery 2.3 in the root of my domain to get things going quickly.
I only had to search where the jquery.js had to go. Installed it in the thickbox subfolder and added a script reference in the theme.tpl for this.
Remaining task now for me is now to find which files (and which lines) to change for having Gallery2 with SSP in my_domain.com/this_subdomain/
Some questions:
- Would there be a method to avoid editing the files each time I create a new subdomain installation?
- Is it also possible to use, besides the standalone SSP, the SSP for flash also?
Thanks!
Posts: 8339
If all setups are going to be the same, you can use relative paths and urls ie.
There was a forum where I explain how to customize ssp in flash yourself but you'll have to search for it.
I believe it was my forums.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 6
Have now installed a gallery2 in a specific subdomain and changed wherever I could find the reference /gallery2 into /my_subdomain/gallery2
This change was applied in
- thickSSP.php
- ssp.php
- param.php
- album.tpl of carbon theme
- photo.tpl of carbon theme
- theme.tpl of carbon theme
Slideshowpro executes about as expected except
1. When ViewSlideshoPro is clicked, I get for a short time an icon (white with red cross) indicating that an image is not avalaible. I guess this is the time it takes to load thickbox/ssp. Is there a way to speed up the loading?
2. In attached file you will see that the miniature is scaled with visible pixels. What is to be done to avoid this?
Thank you very much for all your help!
Posts: 8339
Change it back.
Relative is from the site's root - domain.com/
A subdomain site's root - subdomain.domain.com/
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 6
I went back and changed like you advised. It works
Really thank you for the same day replies. This makes me jumping forward
I am now at the last step... looking into how/where to change the G2/carbon sidebar for having slideshowpro instead of piclens.
So far, I have no idea were this functions resides and what to do
Posts: 8339
gallery2/modules/core/templates/blocks/sidebar.tpl I believe.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 6
Ok, I will look into it together with the Drupal embedding of G2.
Either link ssp from the sidebar, delete the slideshow option from the sidebar or in worst case hide the sidebar through css.
Again many thanks for all your help
Posts: 4
The page for jQuery and Thikbox say that it's no longer supported:
Would you recommend using it anyway or working with one of the other libraries?
-jay
Posts: 8339
Mine is still setup w/ Thickbox, and I have not seen any compatibility issues w/ jQuery 1.4 but this is just the modal window slideshow pro is the real focus for you.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 8339
Just a heads up
Added a new OPML generator for G2 to create a multiple album xml feed for SSP
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 71
i have made some tests with opml. let say i have a G2 structure like this, where id1 is the root album of a user
I have set:
xmlFilePath= $site /gallery2/opml.php?g2_itemId=1, slideshowPro only show me the albums id 2 & 3 (only the first sub-albums that contain files)
can i make it show me all the albums that contain files ?
i have tried $site /gallery2/opml.php?g2_itemId=1&g2_itemId=5 or $site /gallery2/opml.php?g2_itemId=1?g2_itemId=5 or $site /gallery2/opml.php?g2_itemId=1&recursive=true ... but nothing seems to work
Posts: 8339
OPML only adds direct children of the id specified that contain valid types.
It is not recursive.
but line 68 is the conditional if you want to play with it.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2