Customize link placement for slideshows?

ichthyous

Joined: 2006-06-16
Posts: 324
Posted: Thu, 2010-08-05 20:51

Hi there I am trying to implement the Expose slidehsow feature using the Exlide module. The slideshow is working fine, except for the fact the the "view slideshow" link is placed on every page. I want to limit the link placement just to pages which actually have items in them...if they have subcategories it doesn't show the images in the subcat albums. Is there anyway to exclude the view slideshow link from the homepage, and have it show only on albums with items in them, not other nested albums? Thanks for any help!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2010-08-05 21:02
Quote:
Hi there I am trying to implement the Expose slidehsow feature using the Exlide module.

Wow, that is really really old. How'd you get it working? A very very old G2?

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

 
ichthyous

Joined: 2006-06-16
Posts: 324
Posted: Thu, 2010-08-05 21:46

Yes, Im on version 2.2. I haven't upgraded yet becuase Im running the zencart module which won;t work with newer versions of Gallery. I am not at all married to Exlide, if I could use the Cooliris slideshow instead I would prefer it...Exlide has yoo many issues to resolve

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2010-08-05 22:08

You can try the latest slideshow w/ 2.2, but you'll have to edit module.inc with your current API versions.
I honestly cannot remember what changed between 2.2x and 2.3

You can find your current API version in Gallery Admin -> Maintenance -> System Information

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

 
ichthyous

Joined: 2006-06-16
Posts: 324
Posted: Thu, 2010-08-05 22:41

Ok thanks I'll try it...would be great if it works I'll let you know

 
ichthyous

Joined: 2006-06-16
Posts: 324
Posted: Fri, 2010-08-06 14:59

I uploaded the module but it's not showing up in the list of plugins...I don't know what part of module.inc to edit with my API info can you please let me know which code to change?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2010-08-06 15:20
	$this->setRequiredCoreApi(array(7, 49));
	$this->setRequiredModuleApi(array(3, 9));

if you look at your modules/core/module.inc, it will have the same lines with the correct values for your G2 version.

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

 
ichthyous

Joined: 2006-06-16
Posts: 324
Posted: Fri, 2010-08-06 15:23

Here is the info that my System Info shows...where is the API info?:

Gallery version = 2.2-svn core 1.1.16
PHP version = 4.4.4 apache
Webserver = Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a
Database = mysqlt 5.0.27-standard-log, lock.system=flock
Toolkits = LinkItemToolkit, Thumbnail, Gd, ImageMagick
Acceleration = none/86400, none/86400
Default theme = PGlightbox
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11

 
ichthyous

Joined: 2006-06-16
Posts: 324
Posted: Fri, 2010-08-06 15:33

Ok I grabbed the API numbers from the module.inc file you mentioned...it's
$this->setRequiredCoreApi(array(7, 10));
$this->setRequiredModuleApi(array(3, 1));
The plugin does not show up in the plugins panel though...what should it be called there?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2010-08-06 15:41

it should be plain slideshow
clear your database cache

2.2-svn is super old, the release announcement for the final 2.2 was from 2007-03-16 YIKES!
You should at the very least upgrade to the final 2.2.x which was 2.2.6

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

 
ichthyous

Joined: 2006-06-16
Posts: 324
Posted: Fri, 2010-08-06 15:51

Ok I got it installed...didn't realize I had to replace the old module. I am getting an error though when I click 'view slideshow' on my photo pages:

Fatal error: Call to undefined method SlideshowView::getItem() in /home/xxxx/public_html/gallery2/modules/slideshow/Slideshow.inc on line 64

Line 64 is the first line after commented:

/* Build slideshow for an album */
list ($ret, $item) = $this->getItem();
if ($ret) {
return array ($ret, null);
}
list ($ret, $items, $start) =
SlideshowHelper::buildAlbumSlideshow($item, $startId, $offset);
if ($ret) {
return array ($ret, null);
}
}

I might try to upgrade to the latest svn for 2.2 but Im afraid of losing my zencart functionality. The developer never updated the module and it's something I really need

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2010-08-06 16:00

Looks like it is not going to work for you - Sorry.
We could work around this simple error, but there are sure to be others and that would be a step in the wrong direction.

There is also SlideshowPro, but it costs $29 and requires one of my connectors - OPML or SSP (which also may not work with 2.2 either)
You could try my scripts before buying SlideshowPro itself.

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

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2010-08-06 16:03

Zencart is listed as a 2.3.x module http://codex.gallery2.org/Gallery2:Modules:zencart
And Dayo is still active in these forums.

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

 
ichthyous

Joined: 2006-06-16
Posts: 324
Posted: Fri, 2010-08-06 16:08

I see...well we tried. If I can upgrade to 2.3 it should all work no? Last time I checked the zencart module was not updated so its great news to hear that it is now...I gues I have no more excuses to upgrade my gallery! THanks so much for your help

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2010-08-06 17:08

Before you upgrade, you may want to contact Dayo or post to the appropriate forum to see if there will be any upgrade issues for zencart.

Also Make sure you backup you're entire g2data and gallery directories as well as a db backup.

It's also been suggested to do incremental updates from those older versions.

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

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Sat, 2010-08-07 08:41

Well, you have an old version of G2 and will also have to be running an old version of ZC (probably v1.2.7).

To upgrade, here are the steps to follow.

  • Back everything up including database
  • uninstall zencart module in your G2 Admin (you will need to reconfigure)
  • Upgrade G2 to v2.2.6 by overwriting the 2.2.2 files
  • Upgrade G2 to v2.3.1 by overwriting the 2.2.6 files. Do not cut corners by jumping here straight from 2.2.2 as while 2.2.2 to 2.2.6 and 2.2.6 to 2.3.1 upgrades were tested by the devs, 2.2.2 to 2.3.1 was not and can result in issues. Also do not go to 2.3.1 until you confirm that the 2.2.6 upgrade went ok.
  • Install ZC v1.3.9d and zencart module v3.3.0 as outlined in the codex link given above but point to your existing ZC database and use the "Database Upgrade" option (Don't select "Install"). I also suggest using the pre-patched ZC v1.3.9d fileset linked in the codex. Refer to http://tutorials.zen-cart.com/index.php?article=98 for more details on upgrading ZC. When they say create a new folder, this has to be under the G2 directory for the zencart module to work.
  • Upgrade to ZC v1.3.9e after (This has just been released and a prepatched version will be added soon. Just a few files to add to v1.3.9d)
  • Carry over any modifications or custom stuff you may have in your current installation.

Having said that, I know your site and think you have done a lot of work on it although a lot of the custom features you did would be in the new version of the zencart module and you will have a far more secure installation.

Something that could really be useful is to go into the module.inc file and modify the default pricing and options structure to something close to yours before activating the module for the first time so that you get a close start point.

The theme customisations you did will have to be redone but the new module includes two theme that can serve as a convenient start point unlike when you did it before when you would have had to do everything from scratch.

When installing the new module, print out a copy of the codex page and follow it line by line, ticking off each step as you go along. Most of the issues I have seen with installing it come from people skipping one step or the other.

--
dakanji.com

 
ichthyous

Joined: 2006-06-16
Posts: 324
Posted: Sun, 2010-08-08 14:45

Thanks for the help guys...I have in fact customized both my gallery theme and my zencart to the nth degree so I'mm sure there will be some issues, but I guess it's about time to bite the bullet. If I have any specific questions I will post them here