Got my xml_dynamic.php working. It was a version issue I'm pretty sure, I had it working on one website, but not the other. After copying the xml_dynamic.php from the working site, it worked! Can't wait for Big Brother!!!
suprsidr
Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2007-10-24 10:51
I have a release candidate of the mini with much better/smoother transitions and now my xml.php supports keyword albums and tags. It also looks for the imageblock disabled flag and checks user permissions.
Setting the external embed dimensions control the size. The mini simply scales the images to Stage.width x Stage.height but will honor aspect ratio of the image.
I guess if you wanted to use the full image or a derivative you could edit xml.php to point the thumbUrl to the derivative of your choice.
Suprsidr, I understand this concept, but I can't figure out HOW or WHAT to actually edit in xml.php to point the thumbUrl (actually getView() in my case) to a derivative (resized) image. I have your xml.php working with Polaroid Gallery, but the full size images in my gallery take ages to load. That's why I want to call the resized images instead.
I've dug around and it seems that what I want to do is change the getView() function to point to a different image id, I'd assume by changing the way getId() is called and somehow using GalleryDerivativeImage. I suck at the Gallery2 core functions so I just know what I piece together from digging through code other people have written.
Do you have any suggestions?
EDIT - after posting this I switched to using the getThumbUrl() function just because it seems like I'd be able to work with it a bit more.
StoneUSA7
Joined: 2007-06-15
Posts: 12
Posted: Thu, 2008-02-21 21:31
I figured it out.
Problem was it was making a multi-dimensional array. Just had to add the ['0'] after the [$itemId] and it worked fine. Which means it pulls the first resized image it finds (640x480 for me). If you want a different resize, just change the ['0'] to a ['1'] or whatever number resize you'd like to use. I just renamed the getThumbUrl() function so if you want to use this just drop it into the xml.php and call it by replacing getThumbUrl($item) with getResize($item).
I also wanted to re-iterate that this is for the Polaroid Gallery by Christopher Einarsrud and would probably not have much meaning for anyone using the regular MiniSlideshow mod, though it may.
That's looking awesome. It's going to be a great module. Keep up the great work and I can't wait to see the final product.
Suprsidr, any word on Big Brother? Still anticipating...
Xaneth
Joined: 2006-12-26
Posts: 20
Posted: Tue, 2008-09-30 22:31
In fact, the new minislideshow.swf looks a lot like it's big brother now, but when increase the size of the flash window, it still displays in thumbnail sizes. Is there any way to increase it to 500 or 600 pixels? Or is that a limit of minislideshow.swf?
Xaneth
Joined: 2006-12-26
Posts: 20
Posted: Tue, 2008-09-30 22:43
Figured it out using the useFull feature, awesome!
Posts: 7
That's looking awesome. It's going to be a great module. Keep up the great work and I can't wait to see the final product.
Posts: 1
I was seeing this module on another website and finally came here.
After some trying I'm getting the following error:
"Loading xml feed.....
"Loading 1/5"
I'm using Joomla CMS and my gallery directory is called g2.
May the problem be that my g2data-directory is not in the public_html directory, but at /home/xxx/ ??
Can someone try to help me?
Edit: The error I see in my error log is:
Posts: 8339
Kai has instructions for Joomla on his site: http://www.gallery-addons.com/Gallery-Addons/Component/Embedding_Gallery2/6/
-s
FlashYourWeb and Your Gallery
Posts: 104
Hows the "Big Brother" version coming along???
--
http://ChristianJamesPhoto.com
Posts: 20
Got my xml_dynamic.php working. It was a version issue I'm pretty sure, I had it working on one website, but not the other. After copying the xml_dynamic.php from the working site, it worked! Can't wait for Big Brother!!!
Posts: 8339
I have a release candidate of the mini with much better/smoother transitions and now my xml.php supports keyword albums and tags. It also looks for the imageblock disabled flag and checks user permissions.
And actually I also have a beta of our all-in-one media player who's xml.php supports mediaRss for piclens and other media players.
I've been busy lately - you really should update.
-s
FlashYourWeb and Your Gallery
Posts: 32509
@suprsidr:
can you put your new versions of the mp3/ flash video modules up for review at reviews.gallery2.org?
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 12
Suprsidr, I understand this concept, but I can't figure out HOW or WHAT to actually edit in xml.php to point the thumbUrl (actually getView() in my case) to a derivative (resized) image. I have your xml.php working with Polaroid Gallery, but the full size images in my gallery take ages to load. That's why I want to call the resized images instead.
I've dug around and it seems that what I want to do is change the getView() function to point to a different image id, I'd assume by changing the way getId() is called and somehow using GalleryDerivativeImage. I suck at the Gallery2 core functions so I just know what I piece together from digging through code other people have written.
Do you have any suggestions?
EDIT - after posting this I switched to using the getThumbUrl() function just because it seems like I'd be able to work with it a bit more.
Posts: 12
I figured it out.
Problem was it was making a multi-dimensional array. Just had to add the ['0'] after the [$itemId] and it worked fine. Which means it pulls the first resized image it finds (640x480 for me). If you want a different resize, just change the ['0'] to a ['1'] or whatever number resize you'd like to use. I just renamed the getThumbUrl() function so if you want to use this just drop it into the xml.php and call it by replacing getThumbUrl($item) with getResize($item).
Posts: 12
Whoops. There was a bug. If there were no resizes then it was returning a blank ($thumbUrl = "";).
I switched that else statement out so that if there were no resizes then you will see the original image:
I also wanted to re-iterate that this is for the Polaroid Gallery by Christopher Einarsrud and would probably not have much meaning for anyone using the regular MiniSlideshow mod, though it may.
Posts: 20
Suprsidr, any word on Big Brother? Still anticipating...
Posts: 20
In fact, the new minislideshow.swf looks a lot like it's big brother now, but when increase the size of the flash window, it still displays in thumbnail sizes. Is there any way to increase it to 500 or 600 pixels? Or is that a limit of minislideshow.swf?
Posts: 20
Figured it out using the useFull feature, awesome!