[PGLightBox] Use Default Slideshow instead of lightbox slideshow

nameht

Joined: 2004-11-21
Posts: 46
Posted: Sat, 2009-05-30 00:32

I would like to change the slideshow link that shows up on album changes to use the slideshow that is used when you click the sidebar slideshow

 
nameht

Joined: 2004-11-21
Posts: 46
Posted: Sat, 2009-05-30 00:35

Just for clarification

I would like to use the new PicLens slideshow instead of the one that is linked to in PGLightBox theme

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Sat, 2009-05-30 01:22

I don't think PGLightBox theme has been updated for 2.3
it would be something like this:

{if $theme.pageType == 'photo'}
    <a href="{g->url arg1="view=slideshow.Slideshow" arg2="itemId=`$theme.parent.id`"}"> {g->text text="View Slideshow"} </a>
{/if}
{if $theme.pageType == 'album'}
    <a href="{g->url arg1="view=slideshow.Slideshow" arg2="itemId=`$theme.item.id`"}"> {g->text text="View Slideshow"} </a>
{/if}

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

 
nameht

Joined: 2004-11-21
Posts: 46
Posted: Sat, 2009-05-30 03:19

I tried this, I put it in NavigatorTop.tpl

it gives me the right URL /gallery2/main.php?g2_view=slideshow.Slideshow&g2_itemId=19874

which points me to a page with "This album has no photos to show in a slideshow. Back to Album View"

I think it is because it is missing all the arguments that come with the sidebar, and i think thats why the slide show is not loading

Quote:
<a href="main.php?g2_view=slideshow.Slideshow&amp;g2_itemId=19874" onclick="var p=PicLensLite;p.setCallbacks({onNoPlugins:function(){location.href='http://xxxx.net/gallery2/main.php?g2_view=slideshow.Slideshow&amp;g2_itemId=19874'}});p.setLiteURLs({swf:'http://xxxx.net/gallery2/main.php?g2_view=slideshow.DownloadPicLens&amp;g2_file=swf&amp;g2_v=1.3.1.14221'});p.start({feedUrl:'http://xxxx.net/gallery2/main.php?g2_view=slideshow.SlideshowMediaRss&amp;g2_itemId=19874', guid:19874, pid:'2PWfB4lurT4g', delay:10});return false" class="gbAdminLink gbLink-slideshow_Slideshow">View Slideshow</a>

how would i call upon the slideshow module?

thanks for your help!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Sat, 2009-05-30 03:27

put it in album.tpl and photo.tpl where you want the link to appear.

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

 
nameht

Joined: 2004-11-21
Posts: 46
Posted: Sat, 2009-05-30 07:32

am i doing something wrong because i still get the This album has no photos to show in a slideshow. Back to Album View error but the same link in the sidebar works and loads the PicLens slideshow

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Sat, 2009-05-30 11:34

Cooliris can only display images, and with my update flash videos
my update for the slideshow module: http://www.flashyourweb.com/filemgmt/index.php?id=21

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

 
nameht

Joined: 2004-11-21
Posts: 46
Posted: Sat, 2009-05-30 16:38

I have updated to your slideshow module, but still no luck on getting the link to load the slideshow correctly

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Sat, 2009-05-30 17:43
 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Sat, 2009-05-30 18:03

Your rewrite is not setup correctly.
try it without rewrite, I bet it works

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

 
nameht

Joined: 2004-11-21
Posts: 46
Posted: Sat, 2009-05-30 18:11

i dont think rewrite is not enabled,

i went to site admin --> url rewrite and unchecked view slideshow, should i be looking somewhere else as well?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Sat, 2009-05-30 19:10

Try this instead of my above code:

        {if (isset($links) || isset($theme.itemLinks))}
		{if !isset($links)}{assign var="links" value=$theme.itemLinks}{/if}
		{foreach from=$links item=itemLink}
		{if $itemLink.moduleId == "slideshow"}
		  {g->itemLink link=$itemLink
		     title="View Slideshow" text="View Slideshow" class="gbAdminLink gbLink-slideshow_Slideshow"}
		{/if}
	{/if}

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

 
nameht

Joined: 2004-11-21
Posts: 46
Posted: Sat, 2009-05-30 19:29

thanks

your code worked except for i had to add in {/foreach}

here is the code for anyone else that needs this

Quote:
{if (isset($links) || isset($theme.itemLinks))}
{if !isset($links)}{assign var="links" value=$theme.itemLinks}{/if}
{foreach from=$links item=itemLink}
{if $itemLink.moduleId == "slideshow"}
{g->itemLink link=$itemLink
title="View Slideshow" text="View Slideshow" class="gbAdminLink gbLink-slideshow_Slideshow"}
{/if}
{/foreach}
{/if}

I have a few more issues with the PGLightBox theme, can you help me out in this thread or should i start another threaD?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Sat, 2009-05-30 20:32

The title of this thread has to do with the slideshow.

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