ssaguiar |
01-26-2010 09:46 PM |
Dear friends:
I am experimenting serious problems, this is why I am taking some more time to answer to everybody.
I use the slideshowpro.
Warning: This works with the version I have of HP, I don't know if it will work with the last one.
First of all, you must create a folder, in your home, called xml.
Then, you must put the slideshowpro files in this folder (param.xml, slideshowpro.swf and swfobject.js).
My param.xml file's content is:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<params>
<customParams
navButtonStyle = "Default"
/>
<nativeParams
albumBackgroundAlpha = "1"
albumBackgroundColor = "0x303030"
albumDescColor = "0xCCCCCC"
albumDescSize = "9"
albumPadding = "8"
albumPreviewScale = "Proportional"
albumPreviewSize = "54,41"
albumPreviewStrokeColor = "0xFFFFFF"
albumPreviewStrokeWeight = "1"
albumPreviewStyle = "Inline Left"
albumRolloverColor = "0x262626"
albumStrokeAppearance = "Visible"
albumStrokeColor = "0x141414"
albumTextAlignment = "Left"
albumTitleColor = "0xFFFFFF"
albumTitleSize = "10"
audioAutoStart = "On"
audioLoop = "Off"
audioPause = "Off"
audioVolume = ".8"
autoFinishMode = "Switch"
cacheContent = "None"
captionAppearance = "Overlay on Rollover (if Available)"
captionBackgroundAlpha = ".75"
captionBackgroundColor = "0x000000"
captionHeaderBackgroundAlpha = ".75"
captionElements = "Header and Caption"
captionHeaderText = "{imageTitle}"
captionPadding = "5,5,5,5"
captionPosition = "Top"
captionTextAlignment = "Left"
captionTextColor = "0xEEEEEE"
captionTextSize = "9"
contentAlign = "Center"
contentAreaAction = "Launch Hyperlink"
contentAreaBackgroundAlpha = "1"
contentAreaBackgroundColor = "0x303030"
contentAreaInteractivity = "Action Area Only"
contentAreaStrokeAppearance = "Visible"
contentAreaStrokeColor = "0x262626"
contentFrameAlpha = "1"
contentFrameColor = "0x262626"
contentFramePadding = "0"
contentFrameStrokeAppearance = "Hidden"
contentFrameStrokeColor = "0x333333"
contentOrder = "Sequential"
contentScale = "Downscale Only"
contentScalePercent = "1"
directorLargePublishing = "On"
directorLargeQuality = "80"
directorLargeSharpening = "1"
directorThumbQuality = "60"
directorThumbSharpening = "1"
displayMode = "Auto"
feedbackBackgroundAlpha = ".3"
feedbackBackgroundColor = "0x000000"
feedbackHighlightAlpha = ".8"
feedbackHighlightColor = "0xFFFFFF"
feedbackPreloaderAlign = "Center"
feedbackPreloaderAppearance = "Beam"
feedbackPreloaderPosition = "Inside Content Area"
feedbackPreloaderScale = "1"
feedbackPreloaderTextSize = "12"
feedbackTimerAlign = "Top Right"
feedbackTimerAppearance = "Visible"
feedbackTimerPosition = "Inside Content Area"
feedbackTimerScale = "1"
feedbackVideoButtonScale = "1"
fullScreenReformat = "On"
fullScreenTakeOver = "On"
galleryAppearance = "Visible"
galleryBackgroundAlpha = "1"
galleryBackgroundColor = "0x1C1C1C"
galleryColumns = "2"
galleryOrder = "Left to Right"
galleryPadding = "10"
galleryRows = "4"
galleryNavActiveColor = "0x303030"
galleryNavAppearance = "Visible"
galleryNavInactiveColor = "0x000000"
galleryNavRolloverColor = "0x262626"
galleryNavStrokeAppearance = "Visible"
galleryNavStrokeColor = "0x141414"
galleryNavTextColor = "0xCCCCCC"
galleryNavTextSize = "9"
keyboardControl = "On"
mediaPlayerAppearance = "Visible on Rollover"
mediaPlayerBackgroundAlpha = ".25"
mediaPlayerBackgroundColor = "0x000000"
mediaPlayerBufferColor = "0x000000"
mediaPlayerButtonColor = "0xFFFFFF"
mediaPlayerButtonShadowAlpha = ".6"
mediaPlayerElapsedBackgroundColor = "0xFFFFFF"
mediaPlayerElapsedTextColor = "0x000000"
mediaPlayerPosition = "Bottom"
mediaPlayerProgressColor = "0xCCCCCC"
mediaPlayerScale = ".8"
mediaPlayerTextColor = "0x999999"
mediaPlayerTextSize = "9"
mediaPlayerVolumeBackgroundColor = "0x000000"
mediaPlayerVolumeHighlightColor = "0xCCCCCC"
navAppearance = "Always Visible"
navBackgroundAlpha = "1"
navBackgroundColor = "0x121212"
navButtonColor = "0xEEEEEE"
navButtonInactiveAlpha = ".4"
navButtonsAppearance = "All Visible"
navButtonShadowAlpha = ".6"
navGradientAlpha = ".3"
navGradientAppearance = "Glass Dark"
navLinkAppearance = "Thumbnails"
navLinkCurrentColor = "0xEEEEEE"
navLinkPreviewAppearance = "Visible"
navLinkPreviewBackgroundAlpha = "1"
navLinkPreviewBackgroundColor = "0xFFFFFF"
navLinkPreviewScale = "Proportional"
navLinkPreviewSize = "80,60"
navLinkPreviewStrokeWeight = "1"
navLinkRolloverColor = "0xFFFFFF"
navLinksBackgroundAlpha = "1"
navLinksBackgroundColor = "0x000000"
navLinkSpacing = "10"
navNumberLinkColor = "0x999999"
navNumberLinkSize = "9"
navPosition = "Bottom"
navThumbLinkBackgroundColor = "0x666666"
navThumbLinkInactiveAlpha = "1"
navThumbLinkShadowAlpha = ".6"
navThumbLinkSize = "20,20"
navThumbLinkStrokeWeight = "1"
panZoom = "On"
panZoomDirection = "Random"
panZoomFinish = "Off"
panZoomScale = "1,1.2"
permalinks = "Off"
smoothing = "On"
startup = "Load Album"
textStrings = "Previous Screen,Next Screen,Screen,of,No caption,No title,Playing,Paused,Click play to start audio"
toolAppearanceContentArea = "Hidden"
toolAppearanceNav = "Visible"
toolColor = "0x222222"
toolDelayContentArea = "0"
toolDelayNav = ".5"
toolLabels = "Gallery,Previous Group,Previous,Next,Next Group,Pause,Play,Full Screen,Normal Screen,Open Link"
toolTextColor = "0xEEEEEE"
toolTextSize = "9"
toolTimeoutContentArea = "0"
transitionLength = "2"
transitionPause = "4"
transitionDirection = "Left to Right"
transitionStyle = "Cross Fade"
typeface = "Lucida Grande,Lucida Sans Unicode,Verdana,Arial,_sans"
typefaceEmbed = "Off"
typefaceHead = "Lucida Grande,Lucida Sans Unicode,Verdana,Arial,_sans"
videoAutoStart = "Off"
videoBufferTime = "5"
xmlFilePath = "images.xml"
xmlFileType = "Default"
/>
</params>
The code to show the pictures, must be placed in the file (for the version I have ver 1.0 beta1, I think):
/components/com_hotproperty/views/property/tmpl/default.php
In the place where you want to have your pictures seen, put this code:
Code:
<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="400" height="340" id="loader" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="true" />
<param name="FlashVars" value="xmlFilePath=http://www.ssaguiar.com/xml/<?php echo($this->p->id.'.xml'); ?>&xmlfiletype=Default¶mXMLPath=/xml/param.xml" />
<param name="base" value="." />
<param name="movie" value="/xml/slideshowpro.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#121212" /> <embed base="." FlashVars="xmlFilePath=http://www.ssaguiar.com/xml/<?php echo($this->p->id.'.xml'); ?>&xmlfiletype=Default¶mXMLPath=/xml/param.xml" src="/xml/slideshowpro.swf" quality="best" bgcolor="#121212" width="400" height="340" name="loader" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
Remember to change
Code:
http://www.ssaguiar.com/
to your site's address.
Before that, you must create the xml files of the pictures dynamically, if they are not already created:
Code:
<?php
$filename = '/home/ssaguiar/public_html/xml/'.$this->p->id.'.xml';
if ( !file_exists($filename))
{
$somecontent='<?xml version="1.0" encoding="UTF-8"?>'."\n";
$somecontent=$somecontent.'<gallery>'."\n";
$somecontent=$somecontent."\t".'<album id="Imovel" lgPath="/'.$hp_imgdir_standard.DS.'" tnPath="/'.$hp_imgdir_thumb.DS.'" title="'.$this->p->type.'" description="'.$this->p->name.'" tn="/'.$hp_imgdir_thumb.DS.(($image->standard <> '') ? $image->standard : $hp_img_noimage_thumb).'">'."\n";
if (!empty($this->images))
{
foreach($this->images AS $image)
{
$somecontent=$somecontent."\t\t".'<img src="'.(($image->standard <> '') ? $image->standard : $hp_img_noimage_thumb).'" title="" caption="" link="" target="_blank" pause="" vidpreview="" />'."\n";
}
$somecontent=$somecontent."\t".'</album>'."\n";
$somecontent=$somecontent.'</gallery>';
touch($filename) or die("Unable to create: " . $filename);
$handle = fopen($filename, 'a') or die("Could not open file: " . $filename . "\n");
fwrite($handle, $somecontent) or die("Could not write to file: " . $filename . "\n");
fclose($handle);
}
}
?>
Again, remember to change the address to your site's address.
So the code is:
Code:
<?php
$filename = '/home/ssaguiar/public_html/xml/'.$this->p->id.'.xml';
if ( !file_exists($filename))
{
$somecontent='<?xml version="1.0" encoding="UTF-8"?>'."\n";
$somecontent=$somecontent.'<gallery>'."\n";
$somecontent=$somecontent."\t".'<album id="Imovel" lgPath="/'.$hp_imgdir_standard.DS.'" tnPath="/'.$hp_imgdir_thumb.DS.'" title="'.$this->p->type.'" description="'.$this->p->name.'" tn="/'.$hp_imgdir_thumb.DS.(($image->standard <> '') ? $image->standard : $hp_img_noimage_thumb).'">'."\n";
if (!empty($this->images))
{
foreach($this->images AS $image)
{
$somecontent=$somecontent."\t\t".'<img src="'.(($image->standard <> '') ? $image->standard : $hp_img_noimage_thumb).'" title="" caption="" link="" target="_blank" pause="" vidpreview="" />'."\n";
}
$somecontent=$somecontent."\t".'</album>'."\n";
$somecontent=$somecontent.'</gallery>';
touch($filename) or die("Unable to create: " . $filename);
$handle = fopen($filename, 'a') or die("Could not open file: " . $filename . "\n");
fwrite($handle, $somecontent) or die("Could not write to file: " . $filename . "\n");
fclose($handle);
}
}
?>
<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="400" height="340" id="loader" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="true" />
<param name="FlashVars" value="xmlFilePath=http://www.ssaguiar.com/xml/<?php echo($this->p->id.'.xml'); ?>&xmlfiletype=Default¶mXMLPath=/xml/param.xml" />
<param name="base" value="." />
<param name="movie" value="/xml/slideshowpro.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#121212" /> <embed base="." FlashVars="xmlFilePath=http://www.ssaguiar.com/xml/<?php echo($this->p->id.'.xml'); ?>&xmlfiletype=Default¶mXMLPath=/xml/param.xml" src="/xml/slideshowpro.swf" quality="best" bgcolor="#121212" width="400" height="340" name="loader" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
This will show your pictures as seen in my site:
http://www.ssaguiar.com/index.php?op...d=13&Itemid=77
Hope this help.
Sergio
|