Coppermine and Flash Interface Navigation ? Look this link Coppermine and Flash Interface Navigation ? Look this link
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Coppermine and Flash Interface Navigation ? Look this link

Started by Rodinou, January 23, 2005, 12:00:32 PM

Previous topic - Next topic

0 Members and 5 Guests are viewing this topic.

Rodinou


Hein Traag

What exactly do you want with this request ? Have simpleviewer intergrated into coppermine or do you want to tell the people that there is also a flash way to view pics ??

Joachim Müller


Rodinou

Sorry gaugau ...

the truth is I wanted to realize that in DHTML to navigate with a minimum mysql REQUESTS with coppermine ... and I found this site which is incredible ...

Joachim Müller

let's see some code contribution, not just a "proof of concept" or "general idea"...

Joachim

nol33t

Quote from: GauGau on January 24, 2005, 09:13:40 AM
let's see some code contribution, not just a "proof of concept" or "general idea"...

here is mine which allow to view any album with this viewer but:

- i'm pretty disappointed by the result, because of the way this viewer deals with thumbs: Thumbnails must have the same name as the full-size image, and in a different folder... so I cheated in telling the viewer thumbs pics=normal ones, but as a result thumbs are just a part of the "fullsize pic"..

- this viewer is waiting for a file called imageData.xml, so it has to be re-created each times someone ask to view a new album--> i have no idea how it behaves when several people are calling the script at the same time.. (that problem is fixed)

except that, the result is pretty cool ;)

demo: http://nol33t.free.fr/cpg/simpleview.php?album=1

if someone wants to play a little more with, here is the content of the simpleview.php file and the getxml.php ( don't forget to add the viewer.swf file provided on the simpleviewer site )

simpleview.php

<?php
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');

$album $HTTP_GET_VARS['album'];
pageheader("Simple View");
starttable("100%""Simple View");
echo <<< EOT
<td>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="100%" height="550" align="middle">
      <param name="movie" value="viewer.swf" />
      <param name="quality" value="high" />
      <param name="scale" value="noscale" />
      <param name="BGCOLOR" value="#FFFFFF" />
      <param name=FlashVars value="xmlDataPath=getxml.php?album=
$album">
      <embed src="viewer.swf" FlashVars="xmlDataPath=getxml.php?album=
$album" width="100%" height="550" align="middle" quality="high" scale="noscale" bgcolor="#FFFFFF" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />    
</object>
</td>
EOT;
endtable();
pagefooter();
?>



getxml.php

<?php
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');

$options .= '<SIMPLEVIEWER_DATA maxImageDimension="480" textColor="0x000000" frameColor="0x8AA5B5" bgColor="0x181818" frameWidth="20" stagePadding="40" thumbnailColumns="3" thumbnailRows="3" navPosition="right" navDirection="LTR" ';

// Set showDownloadLinks to true if you want to show a 'Download Image' link as the caption to each image.
$showDownloadLinks false;

$album $HTTP_GET_VARS['album'];

$album_title="";
        
$pic_data get_pic_data($album,$count,$album_title);
$options .= 'title="'.$album_title.'" imagePath="'.$CONFIG['ecards_more_pic_target'].'" thumbPath="'.$CONFIG['ecards_more_pic_target'].'">';
$xml '<?xml version="1.0" encoding="UTF-8" ?>
'.$options;
        $i = 0;
        if (count($pic_data) > 0) {
                foreach ($pic_data as $key => $row) {
                        $i++;

$xml .= '<IMAGE>';
$xml .= '<NAME>'.get_pic_url($row, 'normal').'</NAME>';
//add auto captions: 'Image X'
if ($showDownloadLinks){
$xml .= '<CAPTION><![CDATA[<A href="'.get_pic_url($row, 'normal').'" target="_blank"><U>Open image in new window</U></A>]]></CAPTION>';
}else{
$xml .= '<CAPTION></CAPTION>';
}
$xml .= '</IMAGE>';

                }
}
$xml .= '</SIMPLEVIEWER_DATA>';
echo $xml;
?>


-matt-

nol33t

it's really silly...there's a way to customize the XML Data Source ( no file, could be the output of a php script, that resolves the imageData.xml unique file prob ), but no way to change the thumbnails file names, it HAS to be the same than the normal one..nevermind it was fun to try it out...;) ( I got to start to learn doin' some flash  ;D )

--edit: @Tarique: but by reducing the size of the swf flash file, and using only the thumbnails pictures, maybe that would do the trick for your Tiny Flash thing..

nol33t

Quote from: nol33t on January 25, 2005, 03:12:49 AM
@Tarique: but by reducing the size of the swf flash file, and using only the thumbnails pictures, maybe that would do the trick for your Tiny Flash thing..

something like this....;)
http://nol33t.free.fr/cpg/tinyflash.php?album=2

Tarique Sani

No this is not what I was talking about - look the thing which flickr has :)
SANIsoft PHP applications for E Biz

nol33t

Quote from: Tarique Sani on January 25, 2005, 05:26:55 AM
No this is not what I was talking about - look the thing which flickr has :)
definitely...a lot more tiny and auto slideshow etc..but when i wanted to compare yesterday on flickr they were on maintenance  ;D

Rodinou

simply perfect !!!! really !!!

you seem to be french ... is it possible to talk together on msn (if you have it ?) ( >> rod@fantasya.net )

Great, great and great.

nol33t

Quote from: Rodinou on January 27, 2005, 03:10:18 PM
is it possible to talk together on msn (if you have it ?)

i don't have msn, anyway as i wrote, i'm glad you like it but i'm pretty disappointed by the result, part of because of the thumbnail / fullsize picture's same name issue..
if you got any ideas let them know here ;)

Rodinou

the only solution is to buy the .FLA file to change some things inside (the name of the thumb, for example) ... and I'm ready to pay it ... but do you have some knowledge in flash to modify the .FLA file ?

nol33t

Quote from: Rodinou on January 27, 2005, 05:46:59 PM
do you have some knowledge in flash to modify the .FLA file ?
no  ;D
but ActionScript is not a tough language and IMHO that really shouldn't be hard wether to:

- tell the script that thumb filename = 'prefix' + normal picture ( using $CONFIG['thumb_pfx'] , which would be a new option set in the xml)
or
- directly add a <THUMB_IMAGE></THUMB_IMAGE> in the xml and use it in the flash script

-matt-

Rodinou

I'm waiting for your tests ?! (for me all you write = chinese) :)

nol33t

nothing to test, you just have to:

- buy the .fla and .as files

- modify it with flash mx or find someone to do it ( I personally can't, don't have a license for...yet )

nol33t

Rodinou, for your information and if you are really motivated,
i think that modifing the .as ( action script file ) should be enough, maybe there's no need to modify the .fla file (you could ask this to the support of SimpleViewer ), and in this case
there's free ActionScript editor (SE|PY) and compiler(Flush)


rphMedia

Here are a couple that I'm working on.

*removed old link


And my personal rendition (Firefox doesn't like this one - haven't figured out why just yet) -

*removed old link

nol33t

Quote from: rphMedia on January 28, 2005, 02:47:45 PM
Simple Viewer

you got the same problem that mine don't you? looks like you are using two directories to display pictures & thumbs,  ssimages/ and thumbs/ ...so how do you make it work with coppermine? ( i'm not gonna copy all my thumbs twice  ;D )

rphMedia

Nah, no problem.  The xml output you looked at is deceiving.  The thumbs are created dynamically on the fly (once).  It first looks in a folder and strips out a _normal prefix, creates the thumbs in that directory, and it's done.  Sure it can implemented in Coppermine, that's why I'm here  ;D

Even if you had say 3000 images (unlikely) in that folder, the thumbs average about 2K, so you're only talking <1MB of space.