I am creating a content adding form for my back-end to add properties. I own Slideshow Pro and Director so I have no need to use the cck imagefield or the drupal backend to store my photos; SSP Director automatically creates the thumbnails galleries etc. More importantly the xml feeds are created too, which I simply need to add that feed address to the SSP "Params" field.

  • I figured on adding a button in the CCK form to launch SSP Director in new window and add photos get the xml feed etc.
  • Then in the CCK form I need to type in the xml feed address and the other ssp parameters.
  • I also have multiple types of galleries like custom nav and others with no nav etc. so I will also need to be able to differentiate which ssp instance I am calling.
  • Im hoping that I can use some of your module code to fill some of the gaps in what I am trying to do.

Should be a fun night!
I am going to try out a few different methods and see if I can get anything functioning ... I will report back here on my progress.

P.S. Has anyone else attempted to integrate Slideshow Pro, Director and CCK in this way??

Comments

Macronomicus’s picture

I took the easy way out and simply made a cck field in which you enter the url to the xml file produced by SSP Director. Then I created a node template with contemplate added my embedding code there and added the cck hooks for the field with the xml url in it.

In your SSP instance within flash you add this actionscript to frame one... It sets up the variable to connect the player to any director xml address you send it.
my_ssp.xmlFilePath=xmlfile;

Then name the instance on the stage my_ssp save and export.

Then in your embedding code within your node template add the "flashvars" param with the "value" being a php hook to the field you created in your cck form for entering the xml address... My hook was as follows.
<?php print $node->field_lead_gallery_xmlfile[0]['view']?>

You could just as well place a conditional statement around the whole embed script so if your not calling an xml file than the player doesn't show. I didnt need that functionality though as I want the player on every page of this node type with a default gallery if none has been supplied. Which I handled with a default value in the cck form.

I still have to get a nice instructional block which has a few buttons and launches director in pop-up or something, so that someone can upload images in context of creating an instance of that content type, in this case adding a property.

Seems like it may be a waste as drupal has an image functionality but i already had director and its sweet, full of ajax and whatnot and only 25 bucks... hope this helps if someone else is attempting the same thing.

Macronomicus’s picture

Status: Active » Fixed

Closing this now as I have found the work around.

Might want to drop this in the docs in case someone also buys director from the SSP folks (which most do). This gives them a way of automating the view of SSP and utilizing the SSP Director, as the image base.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

Macronomicus’s picture

Component: Miscellaneous » Documentation
Status: Closed (fixed) » Postponed (maintainer needs more info)

Does anyone want to add this to the docs for SSP Integration before it disappears in the issues log? Or I could do it if you give me permission; I could clean up the steps and make it short and sweet. Just a thought...

Josh

B-Dot’s picture

Hi Josh,

I was very happy to stumble upon your post, because I am trying to integrate SSP and SSP_Director with Drupal.

I'm having some difficulty getting this to work, perhaps because I'm not that familiar with CCK and Contemplate. If you have a moment to revisit this, perhaps we can emerge with the "short and sweet" outline you mention above - I'll certainly help in whatever way I can.

I follow the part about adding the code the the FLA file and exporting. I presume one then uploads this SWF to Drupal's Files directory?

I'm confused about the CCK/Contemplate part. I've got both installed. Do I also need the Drupal Slideshowpro module?

Can you list the correct steps, with a bit more information, that one needs to take to get this to work?

Thanks,

Barnaby

elephantix’s picture

hi
sorry but i´m in ugly need in a little bit more detailed explanation. i justs tryed to follow your steps but didnt get the exat way from the embedding code graph on. could you please give me some more advice to that and if it should also work within drupal 6.8 ?
thanks
carsten

elephantix’s picture

hi i also try to get that to work so - did you find a way to get it to work ? i would be happy if you could give me a bit support with your solution.
thanks in advance!
carsten

attiks’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev

Here's how I did it.
1/ Install the module as described in the readme

2/ Add 3 new fields (sspalbumid, sspwidth, sspheight) to the content type (for example page), see /admin/content/node-type/page/fields

3/ Goto /admin/content/node-type/page/display and mark those field as Exclude

4/ Create a node-page.tpl.php (base it on node.tpl.php) and add the following code, it assumes ssp_director is installed in the root

    <?php 
      if ($node->field_sspalbumid[0]['value']) {
        $ssp_args = array (
          'path' => '/ssp_director/images.php?album=' . $node->field_sspalbumid[0]['value'],
          'width' => isset($node->field_sspwidth[0]['value']) ? $node->field_sspwidth[0]['value'] : '560',
          'height' => isset($node->field_sspheight[0]['value']) ? $node->field_sspheight[0]['value'] : '415',
        );
        print slideshowpro_embed ($ssp_args);
      }
    ?>