auto start slideshow based on keyword album?

al_uk

Joined: 2006-08-24
Posts: 11
Posted: Sat, 2007-10-13 10:02

Hi,

I would like to run a fullscreen slideshow for all images in all albums that contain the keyword "Slideshow". The slideshow would ideally start automatically when the browser starts.

I can do this by setting the default theme for the keywords module to be Slider, but I don't want _all_ keyword albums to be slideshows, just this one. Therefore I would like to keep matrix as the default theme for keyword albums.

And so to the question:-
Can I construct a url that I can set as the home page in a browser which would start a slideshow for all images containing the "Slideshow" keyword?

Alternatively, I was thinking of writing some sql to write a text file containing the path to all files with keyword "Slideshow", and then using this text file to drive some slideshow software... But I'd rather use g2!

thanks,

Al

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2007-10-13 10:11

http://www.flashyourweb.com/article.php?story=mini_v2RC1

this could easily be modified to do what you require.

-s
FlashYourWeb and Your Gallery

 
al_uk

Joined: 2006-08-24
Posts: 11
Posted: Sat, 2007-10-13 16:20

Thanks, looks promising. I found 2 issues:-

1. Specifying an album worked ok, but specifiying a keyword returned a bunch of random images. I guess I should raise this on the flashyourweb forum.
2. I wasn't able to get the applet to show images fullscreen without showing scrollbars in IE.

I used a simple test page as follows.

<html>
<body bgcolor="black">
<embed width="1024" height="768" align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" name="minislide" wmode="transparent" quality="high"
flashvars="xmlUrl=http://vmg2/gallery2/xml.php?mode=dynamic&g2_view=keyalbum.KeywordAlbum&g2_keyword=test
&useFull=true&shuffle=true
&delay=3&transInType=Fade&transOutType=fade"
src="http://vmg2/gallery2/minislideshow.swf"></embed>
<body>
</html>

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2007-10-13 16:47

this url does not help me:
http://vmg2

-s
FlashYourWeb and Your Gallery

 
al_uk

Joined: 2006-08-24
Posts: 11
Posted: Sat, 2007-10-13 17:04

ah, sorry, not publicly available at the moment - is there a debug output I can generate?

I'll work on making it public in the mean time.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2007-10-13 17:21
al_uk wrote:
Specifying an album worked ok, but specifiying a keyword returned a bunch of random images

Is your keywordAlbum module installed? and have you actually added keywords to at least a few items? <- sorry have to ask.
If you view the xmlUrl directly with a browser do you observe any errors?

al_uk wrote:
I wasn't able to get the applet to show images fullscreen without showing scrollbars in IE.

I may have crippled the useFull var as this was causing many problems with users trying to display movies and such.(And it was being used as a banner ad rotator which is far from my intended use)
I will re-render for you.

no built-in debug, sorry.

-s
FlashYourWeb and Your Gallery

 
al_uk

Joined: 2006-08-24
Posts: 11
Posted: Sat, 2007-10-13 18:10

ok, http://vmg2/gallery2/xml.php?mode=dynamic&g2_view=keyalbum.KeywordAlbum&g2_keyword=test errors in Firefox, but in IE, I get the XML mini slide show feed with the correct images shown.

However, when I try my test page containing
<html>
<body bgcolor="black">
<embed width="800" height="600" align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" name="minislide" wmode="transparent" quality="high"
flashvars="xmlUrl=http://vmg2/gallery2/xml.php?mode=dynamic&g2_view=keyalbum.KeywordAlbum&g2_keyword=test"
src="http://vmg2/gallery2/minislideshow.swf"></embed>
<body>
</html>

I get a different set of images! not sure why...

 
al_uk

Joined: 2006-08-24
Posts: 11
Posted: Sun, 2007-10-14 10:56

I've now found that the querystring passed from minislideshow.swf to xml.php is being truncated. Only "mode=dynamic" is passed, not the g2_view and g2_keyword parameters, hence the incorrect images being displayed.

The test page is still as follows

<html>
<body bgcolor="black">
<embed width="800" height="600" align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" name="minislide" wmode="transparent" quality="high"
flashvars="xmlUrl=http://vmg2/gallery2/al.php?mode=dynamic&g2_view=keyalbum.KeywordAlbum&g2_keyword=test"
src="http://vmg2/gallery2/minislideshow.swf"></embed>
<body>
</html>

(al.php is simply writing out the querystring for debug purposes)

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2007-10-14 11:02

Are you using a wysiwyg editor to produce your pages?
Is it replacing the ampesand with &amp;?

-s
FlashYourWeb and Your Gallery

 
al_uk

Joined: 2006-08-24
Posts: 11
Posted: Sun, 2007-10-14 11:12

using textpad editor, so shouldnt be a problem...
details as follows:-

SERVER:-
Gallery version = 2.2.3 core 1.2.0.5
PHP version = 5.2.1 apache2handler
Webserver = Apache/2.2.4 (Win32) PHP/5.2.1
Database = mysqlt 4.1.22-community-nt, lock.system=flock
Toolkits = Dcraw, ImageMagick, ArchiveUpload, Ffmpeg, LinkItemToolkit, Thumbnail, Exif
Acceleration = none/0, full/3600
Operating system = Windows NT VMG2 5.2 build 3790
Default theme = matrix
gettext = disabled
Locale = en_GB
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7
Rows in GalleryAccessMap table = 51
Rows in GalleryAccessSubscriberMap table = 9928
Rows in GalleryUser table = 10
Rows in GalleryItem table = 9918
Rows in GalleryAlbumItem table = 331
Rows in GalleryCacheMap table = 44

CLIENT:-
flash 9.8.28.0 on winxp sp2 using IE and Firefox

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2007-10-14 11:36

try replacing the ampersand with %26 ie.
http://vmg2/gallery2/xml.php?mode=dynamic%26g2_view=keyalbum.KeywordAlbum%26g2_keyword=test

-s
FlashYourWeb and Your Gallery

 
al_uk

Joined: 2006-08-24
Posts: 11
Posted: Sun, 2007-10-14 11:49

Ah, that worked! thank you.

Could you let me know how to get useFull to work - does this use the original file, or does it use the largest other res available from g2?

Also, any plans for a full screen version?

cheers,

Al

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2007-10-14 12:11
suprsidr wrote:
I may have crippled the useFull var as this was causing many problems with users trying to display movies and such.(And it was being used as a banner ad rotator which is far from my intended use)
I will re-render for you.

I've been struggling with the proper way to handle large albums in the mini's big brother. (its worth waiting for the thumbs to come in)

I'm also back to working on our All-in-one player now that the weather has turned cold again. Hence me being online 24/7 ;)

-s
FlashYourWeb and Your Gallery

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2007-10-14 12:38

in order to take advantage of full browser flash, you need to set your page height to 100% and embed your swf 100% width and 100% height.
There is a rather long tut here. Pay special attention to the html part 3/4 of the way down the page.

Looking back to the mini's swf, looks like I re-enabled useFull for v.2.0
Basically it uses the <view> instead of the <thumbUrl> from the xml.
We could use the preferred, but I don't think I finished setting that up yet.

-s
FlashYourWeb and Your Gallery

 
al_uk

Joined: 2006-08-24
Posts: 11
Posted: Mon, 2007-10-15 11:54

thanks, All working now. Full screen version on Firefox using the full view file. needed a combination of "%26" and "&"

Can I use multiple keywords in the query?

Al

for reference, my container page looked like this:-

<html>
<link rel="stylesheet" type="text/css" href="dpf.css" />
<body bgcolor="black">
<embed width="100%" height="100%" align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" name="minislide" wmode="transparent" quality="high"
flashvars="xmlUrl=http://vmg2/gallery2/xml.php?mode=dynamic%26g2_view=keyalbum.KeywordAlbum%26g2_keyword=SlideshowA&useFull=true&shuffle=true&delay=2&transInType=Fade&transOutType=Fade"
src="http://vmg2/gallery2/minislideshow.swf"></embed>
<body>
</html>

and the css file looks like this

/* hide from ie on mac \*/
html {
height: 100%;
}

#flash_placeholder {
height: 100%;
}
/* end hide */

body {
height: 100%;
margin: 0px;
padding: 0px;
}

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2007-10-15 22:04
Quote:
Can I use multiple keywords in the query?

Not at present, I'll give it a shot tonight and let you know.

-s

FlashYourWeb and Your Gallery

 
geraldgrogan

Joined: 2007-01-06
Posts: 9
Posted: Tue, 2007-10-16 04:20

Gallery version = 2.2.2 core 1.2.0.4
PHP version = 5.1.4 apache2handler
Webserver = Apache/2.2.2 (Win32) DAV/2 mod_ssl/2.2.2 OpenSSL/0.9.8b mod_autoindex_color PHP/5.1.4 mod_jk/1.2.15
Database = mysqli 5.0.45-community-nt, lock.system=database
Toolkits = Exif, ImageMagick, LinkItemToolkit, Thumbnail, Gd, ArchiveUpload, Ffmpeg, jpegtran
Acceleration = none/0, full/900
Operating system = Windows NT JMGROGANXP 5.1 build 2600
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Rows in GalleryAccessMap table = 161
Rows in GalleryAccessSubscriberMap table = 6324
Rows in GalleryUser table = 10
Rows in GalleryItem table = 6318
Rows in GalleryAlbumItem table = 149
Rows in GalleryCacheMap table = 176

********

I was able to get the code listed above to work just fine (thanks for the tip).

I have only one remaining question. Why are my pictures displaying sideways? (see the attached html file for a sample of my code)

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2007-10-16 10:48

Could not get your site to come up, but my guess would be jpegtran or other image rotation.
Are the original pics rotated?

-s
FlashYourWeb and Your Gallery

 
geraldgrogan

Joined: 2007-01-06
Posts: 9
Posted: Tue, 2007-10-16 15:33

Yes, these pictures (at least the vertical ones) were rotated using Gallery. Is this something that can be corrected using another parm in this command?

Sorry about the server. My wife turned it off last night. I'll make sure it's kept on.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2007-10-16 22:41

Sorry, there is currently no way to rotate images in the mini. Not sure how to tell it which ones.

-s
FlashYourWeb and Your Gallery

 
geraldgrogan

Joined: 2007-01-06
Posts: 9
Posted: Wed, 2007-10-17 01:38

The minislide is working just great with the thumb sized pics.
When I use the fullsize (using useFull=true), that's when it rotates the pics (or rather is not rotated correctly).
Apparently, the thumb sized pics are created as rotated correctly.

I'll try it again, using pre-rotated pics (as a second copy of the original - in a different album).

Thanks for the assistance.