I'd like to have cpg132 use a flash slideshow rather than the one used.
How/where in displayimage.php would I insert a text link to start the show and
bypass the existing Java show? I'd like to just use the existing sideshow icon button that shows
on that naviagition bar.
Cheers,
Dave
there's a flash slideshow mod posted on the mods/hacks board. Either use that one, or code one for yourself. The coppermine dev team are no flash coders, we have put up a help request some time ago to contribute a flsh slideshow, but so far the flash slide show mentioned in the mods section is the only reply we have.
Joachim
I think you mis-read me, or I'm just a bad explainer. I have my flash slideshow all set. I need to know where in cpg132 I insert it so that when I click on the s/s button it will bring up my flash s/s rather than the java script show that's currently there. I was thinking I could just do a link to it but the problem is that will not give me the pictures in the users account to show in the s/s.
If you can help me out here, I can probably get you a flash show that will be great for you to use in cpg.
Plus you'll already have the intergation all set.
Thanks,
Dave
you need to edit displayimage.php, findfunction slideshow()
and modify the stuff in this function definition and the file it incudes, include/slideshow.inc.php
Joachim
OK, here's what we're trying to do :)
I have the code for the flash file working great for a specific user or all user's pics.
<?
$xml = '<?xml version="1.0" encoding="UTF-8" ?>';
$xml .= '<slideshow><settings><image_folder></image_folder><time>3</time><fade>1</fade>
<repeat>true</repeat><captions>false</captions></settings><images>';
create_tree("albums/userpics/10006", '^thumb_', '^normal_', '^index'); // this line
function create_tree($file_dir, $filter = '', $filter2 = '', $filter3 = '') {
global $xml;
if ($handle = @opendir($file_dir))
{
$list = array();
while (false !== ($file = @readdir($handle))) {
if ($file != "." && $file != "..") {
if( !empty($filter) && !is_dir($file_dir . '/' . $file) )
if( preg_match("/$filter|$filter2|$filter3/", $file) ) //everything but those filtered prefixes
continue;
$list[] = $file;
}
}
foreach($list as $file) {
if( is_dir($file_dir . '/' . $file) ) {
create_tree($file_dir . "/" . $file, $filter, $filter2, $filter3);
}
else
$xml .= '<image>' . '<file>' . $file_dir . '/' . $file . '</file>' . '<caption>' . '</caption>' . '</image>' . "\n";
}
closedir($handle);
}
}
$xml .= '</images></slideshow>';
echo $xml;
?>
This line here -
create_tree("albums/userpics/10006", '^thumb_', '^normal_', '^index');
What we'd like to do is include any specific cpg files and use a variable to open the current user's folder. Is there a global that knows what user pics/folder that's currently selected? So that that line above looks something like this - example:
create_tree($users_album_folder, '^thumb_', '^normal_', '^index');
Is this possible or would we have to create an additional php file? I think that once we figure that out, the link "shouldn't" be that hard to do. Thanks.
Joachim,
[respectfully]
Is this not possible or is it that [you] don't have the time to mess with this? I assure you that if I can get some of this information to give me a kick start, I can have a nice mod here that you may want to include in your current devel version. I will do all I can to give you guys an option for a flash image show (instead of or in addition to, the javascript that currently exists). Totally open source and GPL compliant. I can get around in PHP pretty well, but am no expert. A tiny bit of guidance would be appreciated :)
[/respectfully]
Ron,
I confess I was too busy to actually look into this issue; I was hoping some other dev team member would have the time. I really appreciate your contribution very much, no offense meant when I don't answer (because answering actually means looking deeply into the code). If no other dev has got the time to look into this I will do so later.
Joachim
Thank you kindly, understand ((busy))....