Forums / All Other Contributions/Addons / Slideshowpro SSP ?

Slideshowpro SSP ?

Locked

Views: 7,509

Results 1 to 20 of 27
This thread is locked. New replies are disabled.
21 Jan 2008, 17:37
#1
mac8mypc avatar

mac8mypc

New Zenner

Join Date:
Sep 2007
Posts:
14
Plugin Contributions:
0

Slideshowpro SSP ?

I searched for this a while back and found a couple people asking for it, so I thought I would post this.

I created a php script for the xml output to work with slideshowpro. It pulls the product title and links to the item when you click on the slideshow. Just input your mysql info and point the flash file to this php script and you should be good to go.

I made it pull a random 20 items, but you could easily modify the SQL to grab the featured products, specials, etc...

here's the code.

<?php
echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>
";
?>
	<gallery>
	  <album id='1' title='Album Title'>
<?php
	
	// connect to db
	$data = mysql_connect("localhost", "username", "password");
	$db = mysql_select_db("database_name", $data);
	
	// get our product ID's and titles
	$sql = "
		SELECT zc_products.products_id, zc_products.products_image, zc_products_description.products_name
		FROM zc_products, zc_products_description
		WHERE zc_products.products_status = 1 
		AND zc_products.products_id = zc_products_description.products_id 
		ORDER BY RAND()
		LIMIT 0, 20
	";
	$get_p = mysql_query($sql, $data);
	while($row = mysql_fetch_array($get_p)) {
?>
	    <img src="images/<?php echo $row['products_image'] ?>" title="<?php echo $row['products_name'] ?>" caption="<?php echo $row['products_name'] ?>" link="index.php?main_page=product_info&products_id=<?php echo $row['products_id'] ?>" target="_self"/>
<?php
	}
?>	
	  </album>
	</gallery>

I tried to keep it simple, so if anyone has modifications feel free to contribute!

23 Jan 2008, 22:15
#2
stickytree avatar

stickytree

New Zenner

Join Date:
Jan 2008
Posts:
5
Plugin Contributions:
0

Re: Slideshowpro SSP ?

i'm gonna try this now i've manually done an ajax slideshow on my site but it's a pain in the ######## to do, if this works you theman !!!!

i'll report back soon,,,

04 Mar 2008, 07:28
#3
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Slideshowpro SSP ?

Hey!, I was fooling around with this some time back as well but couldn't get the SQL to tie back to my Zen (1.3.8a).

Any chance you could provide a few more basic details regarding setting this up? Don't think it's over my head but can't quite figure out how to put everything together. I'm fine being treated like a dummy too......you wouldn't be the first!

I've got a separate SQL database right now for SSP though I guess I could populate it with the Zen SQL data if that is what's needed.

I use SSP director for interface right now. My images have item numbers associated with them but since it was an existing database, these numbers do not match the Zen product ID (used easy populate). In other words, I upload the images and the names of these images are my item number. Initially I was trying to go through the advanced search using the images filename (item #) to take the viewer to the Zen Cart but it didn't work.

I don't remember exactly why but pretty sure I asked about it in the forum back then, obviously never got it to work.

Let me know if you need any more information about my setup.

04 Mar 2008, 07:56
#4
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Slideshowpro SSP ?

Some details came back. Since my products already existed and there were thousands of them I tried to maintain using my image names which were the product numbers as well. Essentially I just mirrored my image directory to SSP to get all the images and went from there.

Some of my product numbers had zeros in the them (eg. 00024) and it was these products where the link to Zen via advanced search wouldn't work properly. Of course these numbers are in my Zen SQL database.

So for me it is kind of a requirement to utilize my existing database and setup or it would end up being too much work for the payoff of having it.

04 Mar 2008, 17:00
#5
mac8mypc avatar

mac8mypc

New Zenner

Join Date:
Sep 2007
Posts:
14
Plugin Contributions:
0

Re: Slideshowpro SSP ?

I wrote my script to be as simple as possible. It pulls the image names from the zen cart database and uses the images already associated with the products. The only catch is, you have to know some SQL to make it work exactly how you want to.

I'm not quite sure what you're asking, but I would definitely ditch director and find a way that doesn't require you to manage duplicate data.

04 Mar 2008, 18:47
#6
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Slideshowpro SSP ?

Thanks for the quick reply, I figured it might be a little confusing, sorry about that.

I guess I wanted to know the (very) basics like what to do/where to put your quoted script. I do have some basic SQL experience and I've replaced and added stuff before so I know the basic operations.

It also sounded like you might have found a way to deal directly with the already existing data and your right I would like to avoid that which is one of the reasons that I stopped dead some months ago since my updates involve a couple of steps already.

I just want a picture gallery like that on Zen!! I've already got lightbox images but want a page that just has all of the pictures so people can browse. Every add-on that I've looked at fails to do what I would expect lots would like.

Thanks again for your help, any pointers appreciated but not expected.

04 Mar 2008, 19:02
#7
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Slideshowpro SSP ?

What else, a little more clarification (or lack of!).

Do you copy and paste the code into a file and name it something then upload somewhere?

What exactly does it produce on the page? Just a selection of random pictures based on the number you put in (in this case 20)?

Basically, how is everything pulled together between Zen and SSP?

Again, no response expected but here if you feel generous again!

Regardless, thanks for the reply.

17 Mar 2008, 23:54
#8
zankye avatar

zankye

New Zenner

Join Date:
Sep 2006
Posts:
13
Plugin Contributions:
0

Re: Slideshowpro SSP ?

I was able with the code above to make it work. The only difference was the prefix for the tables that was zen_ instead of zc_.

18 Mar 2008, 00:49
#9
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Slideshowpro SSP ?

Don't know if your responding to my posts or not but I, too, got the one above to work but it isn't what I'm looking for.

I've all but given up at this point for the time being at least.

With the help of another author (flash_slideshow_gallery_1.2) I got that one to work and that was the closest yet to what I would like.

It pulled all of the product images directly but wouldn't fit all the images inside the flash (in this case) window and all the product images would need to be resized which would be too much upkeep for me when new products were posted. Plus this one forced images with "previous" and "next". rather than scrolling through with control to stop, etc..

There was another one that scrolled but the load time was too long (I've got 6000+ unique products!).

In a perfect world, my gallery/slideshow would:

  1. Pull all images from the images folder without any further processing. flash_slideshow_gallery_1.2 seemed to do this (albeit with improper sizing) very quickly.
  2. Scroll all of those pictures with control with the customer to stop/start.
  3. Link to the products page so customers can click on things they like.
  4. Of course it has to be pretty fast so there isn't a long load time delay.

I have a Filemaker database that has all of my products/meta data in it so I am able to easily export various fields and coding for cutting and pasting like in flash_slideshow_gallery_1.2 and others but that is about all of the effort I would be able to keep up with on a regular basis.

Oh well, it's a nicety but not a necessity so I can be patient. I'm sure I'll run across something eventually.

18 Mar 2008, 17:13
#10
zankye avatar

zankye

New Zenner

Join Date:
Sep 2006
Posts:
13
Plugin Contributions:
0

Re: Slideshowpro SSP ?

Here's a link of a working version of slideshow pro with external captions and zen cart. http://www.divajewels.ca

18 Mar 2008, 21:32
#11
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Slideshowpro SSP ?

Looks pretty good! Appears to do all I want if it is pulling from your existing product images (versus uploading images and their thumbnails too in Director!).

I'm using SlideShowPro Director 1.0.9.2 though I have SSP as well if that's necessary (haven't worked at all with it without Director though). Didn't see anything specifically within Director to get to where I needed to be.

Any guidance? I know a little about a lot but need to see all the pieces to the puzzle before it clicks for me. The code above just resulted in multiple images spread out on the page for me without the necessary links to the products.

It is very likely that I'm just missing something simple, sorry, still a little learning curve for me though I said that about Zen at one point in time too!

18 Mar 2008, 21:53
#12
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Slideshowpro SSP ?

I'm bleary eyed from this one and after trying so many packages and add-ons I now can't even say with certainty that I DID get the code above to work.

I don't want it on every page as you have since it would slow to a crawl with the number of products so I paste into and EZ-page. Anyway, couldn't get it to work that way though maybe your yelling at the screen "no dummy! that's not how you do it!!" by now. You wouldn't be the first!

18 Mar 2008, 21:56
#13
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Slideshowpro SSP ?

Sorry for multiples, working real time.

Ok, now I remember. Uploaded as a PHP file but what I get when I go there is a number of images (including numerous "broken" image links). Scattered over page with no window, movement, links or anything else.

18 Mar 2008, 22:20
#14
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Slideshowpro SSP ?

Ok, last one. Here's what I see.

I do get the images to show top to bottom/left to right on the page (not in a window).

Broken images are showing because not all of the products have pictures. Obviously this is an issue since I wouldn't want just blank windows showing up and even with tons of pictures there are a lot not processed yet for the 6000+ items (some never will as they are common and description will say it all).

Links don't work at all though I note that the url does not have the &cPath=xx_xxx_xxx before the

&products_id=<?php echo $row['products_id']

as it does in the actual urls for the products when you view them normally.

Thanks for the help, I wont fill it up any further!!

18 Mar 2008, 23:35
#15
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Slideshowpro SSP ?

Got links to work but for some reason I had to change the code:

<a href="index.php?main_page=product_info&products_id=<?php echo $row['products_id'] ?>"<img src="images/<?php echo $row['products_image'] ?>" title="<?php echo $row['products_name'] ?>" caption="<?php echo $row['products_name'] ?>" target="_self"/>

Unfortunately though I edit PHP files as a normal function of Zen, it is either directed by add-ons or hunt and peck method changes on my part. Still can't look at a file and have it flow in my mind.

Title of the item shows when you hoover over though there are no "captions" if I understand those correctly as they appear to show up on your site on the pictures.

And, of course, I have no clue how to get them in a nice gallery window.

Further then I've come before and closest to what I want so far. Thanks mac8mypc for the code.

19 Mar 2008, 02:41
#16
zankye avatar

zankye

New Zenner

Join Date:
Sep 2006
Posts:
13
Plugin Contributions:
0

Re: Slideshowpro SSP ?

Jeffrey. heres'what you need to do. First of all you don't need director. Create a Php file with the code that is is displayed on this thread. change only the database name database login and password according to your database. check if your tables start with prefix zen_ or zc_ and change accordingly.

Save the file as your_name.php On the flash working file (fla) , with component inspector open for the slide show, under XML file type : your_name.php

Upload both the flash File (swf) and the your_name.php to the root of your zen cart.

disable navigation : Hidden For the captions external you need: On the Component Caption appearance: hidden Create a new layer. insert a text filed dynamic , and as instance call: t_txt Create if you don't have a actions layer and type the following:

listenerObject = new Object(); listenerObject.onImageData = function(eventObject):Void { t_txt.html=true; t_txt.htmlText=eventObject.data.caption; } my_ssp.addEventListener("onImageData", listenerObject);

Save a and publish. Upload to the server to publish on zen cart like this link: http://www.anthealth.com/

Go to : includes/templates/template_default/common/ open : tpl_main_page.php

find :

<!-- eof breadcrumb -->

INSERT THIS CODE:

<div align="center"> After this paste flash code: <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="372" height="280" id="showcase2" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="false" /> <param name="movie" value="your_flash_file.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /> <embed src="your_flash_file.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="372" height="280" name="showcase2" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> </div>

save file. That's it let me know if you need any more help

19 Mar 2008, 03:04
#17
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Slideshowpro SSP ?

Whoa!, want an awesome response! All I was working with the the single .php file code coded, shows what I know! Did learn some things along the way so not a total loss.

Have to digest this one, it's a big one. Flash is probably my weakest point believe it or not but I'm pretty sure I know of what you speak from a little fooling around recently with another slideshow.

The only question I have is is there a way to do this just on a stand alone EZ-page, I don't really want it at the top of every page.

Shame I can't pull this off easily with the actual SSP/Director output format, I like the scrolling thumbnails, etc.. Guess you can't have it all. Fortunately this is just a nicety and not a necessity.

What ever the final outcome, thanks so much for the time you've put into this for me.

I'll put some serious work into this one before I take you up on any offers for more help (what were you thinking!!?).

Got to put it to bed tonight or I'll be up until 5am like the many times when I first got into Zen!

Thanks again.

19 Mar 2008, 03:18
#18
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Slideshowpro SSP ?

Ignore my single question of the previous post.

I reserve the right to come back though!!!!!

19 Mar 2008, 04:22
#19
zankye avatar

zankye

New Zenner

Join Date:
Sep 2006
Posts:
13
Plugin Contributions:
0

Re: Slideshowpro SSP ?

Not a problem. I don't know how well you know flash but is not that difficult, to achieve this. I believe for this Ez-pages you only need in the editor of zencart to change to html, and paste the flash Html code.

I think that was you were asking.

13 Jun 2008, 09:26
#20
twdhosting avatar

twdhosting

Zen Follower

Join Date:
Mar 2005
Posts:
119
Plugin Contributions:
0

Re: Slideshowpro SSP ?

Can this be used to pull just the featured products from the DB or the new products? Can the flash be produced to provide left / right scrolling so that you can have say 10 images with only 2 showing (and then scroll left and right to view them all)?

Any help would be appreciated!

If someone knows how to do this then let me know (wink wink)