Embed Slideshowpro for album photo module in drupal 6

tech.gsr - April 6, 2009 - 11:42

Hi

I am using photo module for drupal 6. well it is working fine. i want to embed the Slideshowpro with photo album module. Already there is an integration module for image module. But i want to integrate with photo album module.

How i can start ?

any help .....

Thanks
GSR TECH

somebody please

tech.gsr - April 6, 2009 - 13:06

somebody please help................

use dfgallery

balik kampung - April 15, 2009 - 07:32

You can use dfgallery to have the slideshow for your photos module.
after you install photos module go to admin>siteconfig>photos upload
you can see the following settings.

FLASH slide show:
Disabled
Enabled
Please download dfgallery, and save to flash_gallery under , e.g: sites/all/modules/photos/flash_gallery/gallery.swf

just follow the above settings and you are done.
you can view the working module at www.balikampung.com

Hi balik

tech.gsr - April 16, 2009 - 16:14

I got it, now my photo album is working with slideshowpro. well thanks.

GSR TECH.

HOW HOW

twsanders - May 6, 2009 - 22:15

How did you get it to work I am having problems also!

hi i am bit busy only 8 days

tech.gsr - May 12, 2009 - 14:04

hi
i am bit busy only 8 days are remains for deadline of our project.

give me some time i will tell you whole history.......

you just check the "php xml builder" of slideshowpro.

Khalid Ahmed

Integrating SSP into D6 (with SSP Director?)

David Brix - June 6, 2009 - 07:20

Hello!

I noted your post regarding integrating Slideshow Pro into Drupal. In your post dated May 12th, you mentioned that you would post how you did it after you got past your deadline. No doubt your very busy, but that information would be very helpful not only to myself but many others in our search for integrating SSP with Drupal 6. Could I in any way entice you to write your post?

Also, I am interested in not only integrating SSP but also to link it in with SSP director so that I can make use of the director interface in setting up my galleries within SSP. Have you been able to integrate SSP director as well?

Thank you in advance for helping not only myself but many others by sharing your experience.

Regards,
David Brix

Hello All

tech.gsr - June 24, 2009 - 07:12

To integrate slideshowpro with album photo module i did the following thing. please forgive me may be this code is not perfect because just now 8 months ago i entered in this drupal world after completing my MCA.

so first you create ssp.swf file and upload it in root directory and while creating swf file give the path in "xml file path" property as http://www.yoursite.com/images.php.

after that create one php file in root directory called images.php. that file is going to generate the xml file.

images.php

<?php
////////// ************  GSRTECH : Khalid
// this file is going to generate xml file to swf player.
///////// *************
include_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
drupal_bootstrap(DRUPAL_BOOTSTRAP_DATABASE);

    global
$user;
   
$myid = $user->uid;
   
$myname = $user->name;
   
   
////////// ************  GSRTECH : Khalid
// starts of generating xml file for swf player.
///////// *************

   
$output = "<?xml version=\"1.0\" encoding=\"utf-8\"?>
\n";
$output .= "<gallery>\n";
$output = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
$output .= "<gallery>\n";

////////// ************  GSRTECH : Khalid
// following codes will generate image path like http://www.mydomain.com/sites/default/files/photos/
//
and it also generate root path like http://www.mydomain.com
///////****************
static $image_path;
if (!$image_path)
{
$schema = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http';
$image_path = $schema .'://'. $_SERVER['HTTP_HOST'] . base_path() . file_directory_path() .'/'. variable_get('image_default_path', 'photos') .'/';
$root_path = $schema .'://'. $_SERVER['HTTP_HOST'] . base_path();
}

$res11=db_query("Select nid as nodeId1, title as tit1, type as ntype, uid as myid FROM {node} where type='photos' AND uid=%d", $myid);
while($var=db_fetch_object($res11))
{
$output .= "<album id=".'"';
$var12=$var->nodeId1;
$output .= $var->nodeId1.'"'." ";
$output .= "title=".'"';
$output .= $var->tit1.'"'." ";
$output .= 'description="';

////////// ************  GSRTECH : Khalid
// to fetch the album description

$rsdes=db_query("select nid as nodeid, body as description from node_revisions where nid=$var12");
$des=db_fetch_object($rsdes);
$output .= $des->description.'"'." ";

////////// ************  GSRTECH : Khalid
// used to get the cover image  .....
/////////*************
$rs=db_query("select fid as imgfid, pid as albumpid from x_album where pid=$var12");
$rs1=db_fetch_object($rs);
$rs3=$rs1->imgfid;
if($rs3 == 0)
{
$res6 = db_query("select files.fid as imfid, filepath as imgpath, filename as imgtit from files inner join x_image on files.fid = x_image.fid where x_image.pid = $var12") ;
$covthumb = db_fetch_object($res6);
$covthumb1=$covthumb->imgtit;
$output .= "tn=".'"';
$output .= $image_path;
$output .= $myname."/";
$output .= $covthumb1.'"'." ";
$output .= 'lgPath=""'.">\n";
}
else
{
$res7 = db_query("select fid as myfid, filename as imgtit from files where fid = $rs3");
while($covthumb2 = db_fetch_object($res7))
{
$covthumb3=$covthumb2->imgtit;
$output .= "tn=".'"';
$output .= $image_path;
$output .= $myname."/";
$output .= $covthumb3.'"'." ";
$output .= 'lgPath=""'.">\n";
}
}

////////// ************  GSRTECH : Khalid
// to check the particular which jpg file is exists
/////////*************
$res5 = db_query("select files.fid as imfid, filepath as imgpath, filename as imgtit from files inner join x_image on files.fid = x_image.fid where x_image.pid = $var12") ;
      while($var1=db_fetch_object($res5))
        {
$output .= "<img src=".'"';

$filename1 = 'C:\wamp\www\drupal6\sites\default\files\photos\tech.gsr\thumb_';
$filename1 .= $var1->imfid;
$filename1 .= '\1024x768_scale_thumb_';
$filename1 .= $var1->imgtit;

if(file_exists($filename1))
{
$output .= $image_path;
$output .= $myname."/";
$output .= "thumb_";
$output .= $var1->imfid."/";
$output .= "1024x768_scale_thumb_";
$output .= $var1->imgtit.'"'." ";
}
else
{
$output .= $image_path;
$output .= $myname."/";
$output .= $var1->imgtit.'"'." ";
}

$output .= "title=".'"';
$output .= $var1->imgtit.'"'." ";
$output .= 'caption="';
$output .= $var1->imgtit.'"'." ";
$output .= "link=".'"';
$output .= "javascript:NewWindow=window.open('";
$output .= $root_path;
$output .= "?q=photos/image/";
$output .= $var1->imfid."#image-load"."',";
$output .= "'myWindow',";
$output .= "'width=600,height=600,scrollbars=2');"." ";
$output .= 'NewWindow.focus(); void(0);'.'"'." ";

$output .= "target=".'"';
$output .= "_blank".'"'." ";
$output .= "tn=".'"';

$filename = 'C:\wamp\www\drupal6\sites\default\files\photos\tech.gsr\thumb_';
$filename .= $var1->imfid;
$filename .= '\100x75_scale_thumb_';
$filename .= $var1->imgtit;


if(file_exists($filename))
{
$output .= $image_path;
$output .= $myname."/";
$output .= "thumb_";
$output .= $var1->imfid."/";
$output .= "100x75_scale_thumb_";
$output .= $var1->imgtit.'"'."/>\n";
}
else
{
$output .= $image_path;
$output .= $myname."/";
$output .= $var1->imgtit.'"'."/>\n";
}

}

$output .= "</album>"."\n";
}

$output .= "</gallery>" ;

?>

then embed the player code on a page.

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="542" height="441" id="loader" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="true" />
<param name="base" value="." />
<param name="movie" value="ssp.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#121212" />
<param name="FlashVars" value="xmlfile=/images.php" />
<embed base="."  FlashVars="xmlfile=/images.php" src="/ssp.swf" quality="best" bgcolor="#121212" width="550" height="450" name="loader" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

hope that will give some idea to all.

Regards,
Khalid Ahmed
GSR TECH

Root directory

Marc Hoefman - October 9, 2009 - 09:39

This looks just what I need!

The integration of album photos and slideshowpro looks very interesting en I am certainly going to give it a try.

I'm somewhat confused with the notion of "root" that you mention where the images.php and ssp.swf must be uploaded. Is this relative to the Drupal installation or really to the root of public_html?

Can you please indicate in which root directory the files should be uploaded? (Currently I have Drupal installed in a subdomain).

Regards

Marc Hoefman

Hi Marc Hoefman, I'm

tech.gsr - October 20, 2009 - 09:54

Hi Marc Hoefman,

I'm somewhat confused with the notion of "root" that you mention where the images.php and ssp.swf must be uploaded. Is this relative to the Drupal installation or really to the root of public_html?

Really i dont know about subdomain, i think you should upload this files in Drupal installation.

and i have created a module for this which is working very well for me. If you want send me your email-id.

Thanks & Regards
Khalid Ahmed
GSR TECH

I would like to try your

c0dex - November 1, 2009 - 17:42

I would like to try your module on my site. If possible, please email it to me: lortiz[at]c0dex[dot]com

Also, thank you for sharing your knowledge, Kalid Ahmed.

Thanks
0rtiz

 
 

Drupal is a registered trademark of Dries Buytaert.