multiple simpleviewers

kforer

Joined: 2006-06-30
Posts: 12
Posted: Thu, 2009-06-25 19:13

I would like to have two different simpleviewer slideshows, one as at http://eebee.com/moments/lib/xml_slideshow/index.shtml and another on the on the main page, http://eebee.com/index18v.php. My gallery installation is at http://www.eebee.com/moments/main.php.

I can simply change the navbar link, so that instead of going to main.php, the visitor goes to the slideshow index.shtml above. However I would also like to use the Gallery for a mini-slideshow on the site's home page and that causes problems.

Right now there is a flashden mini-xml gallery on the home page that works but it must be edited by hand. I'd much prefer to pull the images from the latest 30 in the Gallery. However when I embed the simpleviewer script on the main page it uses most of the parameters set in the Simpleviewer plugin page, the ones I use for http://eebee.com/moments/lib/xml_slideshow/index.shtml

I tried to get
http://eebee.com/moments/main.php?g2_view=simpleviewersource.XMLOut&g2_itemId=7
working but it gives an xml error.

http://eebee.com/moments/main.php?g2_view=simpleviewersource.XMLOut%26g2_itemId=7
gives a security violation.

IS there a way to get both these different simpleviewer slideshows at the same time?

Thanks!
Kathy

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 7939
Posted: Thu, 2009-06-25 19:50
 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Thu, 2009-06-25 21:06

I'm sorry, I don't really understand what you're trying to do ... the simpleviewersource plugin generates the xml for simpleviewer for the images in any gallery album you like. with parameters set individually for each album if you wish.

 
kforer

Joined: 2006-06-30
Posts: 12
Posted: Thu, 2009-06-25 21:55

I would like the slideshow view, as I customized it with shtml includes, to load when I click on the navbar heading /moments. I want it to work like what's at http://eebee.com/moments/lib/xml_slideshow/index.shtml -- but is that only working because permissions are 777? -- without having to go to that URL. Or should I write an .htaccess redirect?

I also want to have a mini slideshow on the home page. But when I use the gallery feed to make one, I also pick up the xml preferences that have been set in the Simpleviewer tab and the two viewers need to look very different.

What I am reading as the way to make the slideshow view in the browser http://eebee.com/moments/main.php?g2_view=simpleviewersource.XMLOut%26g2_itemId=7 -- (somehow instead of main.php?) -- doesn't seem to work for me, whether I use %26 or simply &.

I just reread your post and a partial solution presents itself. Is there a way to create virtual albums, something that picks up a subset of the larger album without having to duplicate the data? Maybe the most recently added 30 photos or the past three months. Perhaps that's a plug-in. The main album is one large directory, not split by date or subject.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Fri, 2009-06-26 08:16

HI kforer,

I'm still very confused about what you want to achieve, and entirely unsure what it has to do with permissions or & vs. %26% url encoding.

Are you asking if it's possible to have two different sets of simpleviewer options (within simpleviewersource) for the same Gallery2 album? If that is your question, then the answer is no, it's not possible.

Gallery2 has a feature called virtual albums that will display within the Gallery structure (possibly with some programming) for instance the 30 most recent pictures. However, Simpleviewersource doesn't support Gallery2 virtual albums I'm afraid.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 7939
Posted: Fri, 2009-06-26 10:48
 
kforer

Joined: 2006-06-30
Posts: 12
Posted: Sun, 2009-06-28 23:34

Alec,
I would like to have a SimpleViewer slideshow with includes for custom headers and footers instead of my custom gallery theme. I would also like to have a smaller slideshow with different parameters on the home page of the web site.

As I understand it's not possible without having multiple albums. However, the documentation (your documentation?) says that there are "two basic modes of operation, to use the Simpleviewer application within your own website but displaying pictures stored within Gallery - or - to offer Gallery visitors the opportunity to use Simpleviewer within the Gallery environment."

Does that mean I can take advantage of two different sets of "Simpleviewer Source - Album Settings" parameters? the offerSlideshow "loader if loaded through the Gallery link" and the Simpleviewer Parameters that are "forwarded directly to Simpleviewer."

What I can't seem to do is get Simpleviewer to load in the first instance, my Gallery environment. Though that is probably because I've modified the theme code and can't display RSS feeds. Is there a way to take advantage of that first method so SimpleViewer loads directly instead of the theme? Or is the best solution right now to create multiple albums that have, as you noted, multiple sets of parameters?

Thank you

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Sun, 2009-06-28 23:58
Quote:
However, the documentation (your documentation?)

yes

Quote:
says that there are "two basic modes of operation, to use the Simpleviewer application within your own website but displaying pictures stored within Gallery - or - to offer Gallery visitors the opportunity to use Simpleviewer within the Gallery environment."

Does that mean I can take advantage of two different sets of "Simpleviewer Source - Album Settings" parameters?

No.

There are two sorts of simpleviewer parameters. The ones provided in the xml data, and the (fewer) ones included in the javascript loader, like background colour.

The two "modes" of operation aren't different to each other. In one case you provide your own javascript loader in your own webpage, and in the other "mode" you use a gallery link to load a page using the Slideshow.tpl (check it out) which includes the javascript loader. If using your own javascript you can use your own "javascript" parameters by hard-coding them. If you're using the contents of Slideshow.tpl you can set those parameters in the Simpleviewersource album configuration page. But all the important parameters are included via the xml and you'll get the same set of those for any given Gallery2 album, regardless of how you load simpleviewer.

Quote:
What I can't seem to do is get Simpleviewer to load in the first instance, my Gallery environment. Though that is probably because I've modified the theme code and can't display RSS feeds.

I don't see any connection with RSS feeds, RSS isn't used by, or relevant to, simpleviewersource.

Quote:
Is there a way to take advantage of that first method so SimpleViewer loads directly instead of the theme?

The basis of the first "method" is to use your own html (or php) page instead of loading a Gallery page, and put the If you really really want to do this from within Galllery you could use the htmlblock module which lets you write/edit static pages from within Gallery, and you could put the javascript loader into that static page.

(If that doesn't answer the question then it's probably because I don't really understand what "SimpleViewer loads directly instead of the theme" means.)

Loading simpleviewer via a static html page will still not give you two sets of simpleviewer parameters for one Gallery album; as soon as you use an xmlDataPath for simpleviewer that (via simpleviewersource) loads the pictures from Gallery2 then you'll get the same parameters - the ones you set for that album.

Overall there's no difference between the two "methods" of using simpleviewersource; it's just that some people might like to use it as an alternative slideshow from wthin gallery, so a .tpl file with the simpleviewer loader is provided along with a menu link to load that as a page - and some people just want Gallery2 as a back-end image database for a webpage that already uses simpleviewer.

 
kforer

Joined: 2006-06-30
Posts: 12
Posted: Mon, 2009-06-29 00:26

First of all, thank you for the module!

Quote:
In one case you provide your own javascript loader in your own webpage, and in the other "mode" you use a gallery link to load a page using the Slideshow.tpl (check it out) which includes the javascript loader.

Though Slideshow is enabled, there's now way to view it or link to it from my modified theme. I deleted whatever code to load the sidebar things in my Theme. I thought there might be a way to lad it directly without the visitor having to click on a link to open it.

Quote:
I don't see any connection with RSS feeds, RSS isn't used by, or relevant to, simpleviewersource.

I thought Simpleviewer used some kind of feed from Gallery to populate its slideshow. RSS must be the wrong word.

Quote:
If you really really want to do this from within Galllery you could use the htmlblock module which lets you write/edit static pages from within Gallery, and you could put the javascript loader into that static page.

This is probably the answer for the main Gallery page where I would prefer my .shtml file with SimpleViewer javascript to the main.php Gallery, but would still like to use Gallery as a back end image database.

And the answer for the home page is to create a second album with only the most recent thirty images. Then I can use a second set of parameters, and all is done!

Thank you for your help.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2009-06-29 09:52
Quote:
Though Slideshow is enabled, there's now way to view it or link to it from my modified theme. I deleted whatever code to load the sidebar things in my Theme. I thought there might be a way to lad it directly without the visitor having to click on a link to open it.

That's easy enough, the simplviewersource slideshow is just another Gallery "view" page, so it has a url of the form:

<yoursite>/gallery2/main.php?g2_view=simpleviewersource.Slideshow&g2_itemId=xxxx

where xxxx is the Gallery id of the album in question.

 
kforer

Joined: 2006-06-30
Posts: 12
Posted: Mon, 2009-06-29 17:36
Quote:
That's easy enough, the simplviewersource slideshow is just another Gallery "view" page, so it has a url of the form:

<yoursite>/gallery2/main.php?g2_view=simpleviewersource.Slideshow&g2_itemId=xxxx

where xxxx is the Gallery id of the album in question.

That was my confusion exactly and why I wondered about &, %26 and &amp;

Neither http://eebee.com/moments/main.php?g2_view=simpleviewersource.XMLOut&g2_itemId=7 (lacking style information) nor
http://eebee.com/moments/main.php?g2_view=simpleviewersource.XMLOut%26g2_itemId=7 (security violation) work for me.
Permissions are set as suggested in Gallery. What should Simpleviewer permissions be, or is it something else?

 
kforer

Joined: 2006-06-30
Posts: 12
Posted: Mon, 2009-06-29 17:39
suprsidr wrote:
But my minislideshow does support Dynamic Albums ... still.

I'm trying that for the home page and it works nicely. However, the choice is either to have too low res images or too high which then take too long to load. If I use only 12 instead of 24 its faster but I'd like more. The Dynamic Album is terrific!

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2009-06-29 18:23
Quote:
http:......./main.php?g2_view=simpleviewersource.XMLOut&g2_itemId=7

That's not what I wrote.

 
kforer

Joined: 2006-06-30
Posts: 12
Posted: Mon, 2009-06-29 18:42
Quote:
simpleviewersource.Slideshow

That worked. Thanks.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 7939
Posted: Mon, 2009-06-29 21:20
Quote:
However, the choice is either to have too low res images or too high

have gallery build some medium resizes and use:
http://www.yoursite.com/gallery2/mediaRss.php?mode=dynamic%26g2_view=dynamicalbum.RandomAlbum%26g2_maxImageWidth=600%26g2_maxImageHeight=600&useFull=true
Here we poll for images no larger than 600x600 in our random album.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
kforer

Joined: 2006-06-30
Posts: 12
Posted: Mon, 2009-06-29 21:57
suprsidr wrote:
have gallery build some medium resizes and use:
http://www.yoursite.com/gallery2/mediaRss.php?mode=dynamic%26g2_view=dynamicalbum.RandomAlbum%26g2_maxImageWidth=600%26g2_maxImageHeight=600&useFull=true
Here we poll for images no larger than 600x600 in our random album.

Thanks, That worked really well!