Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1] 2 3 4   Go Down

Author Topic: Coppermine and Flash Interface Navigation ? Look this link  (Read 62333 times)

0 Members and 2 Guests are viewing this topic.

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Coppermine and Flash Interface Navigation ? Look this link
« on: January 23, 2005, 12:00:32 pm »

http://www.airtightinteractive.com/photos/

It would be great, no ?!

There is a free and a paid version ...

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Coppermine and Flash Interface Navigation ? Look this link
« Reply #1 on: January 23, 2005, 03:44:43 pm »

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 ??
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Re: Coppermine and Flash Interface Navigation ? Look this link
« Reply #3 on: January 24, 2005, 09:11:31 am »

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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Coppermine and Flash Interface Navigation ? Look this link
« Reply #4 on: January 24, 2005, 09:13:40 am »

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

Joachim
Logged

nol33t

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 244
  • Exploring Coppermine in every directions
    • tieum's pics
Re: Coppermine and Flash Interface Navigation ? Look this link
« Reply #5 on: January 24, 2005, 11:01:36 pm »

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
Code: [Select]
<?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
Code: [Select]
<?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-
« Last Edit: January 25, 2005, 03:43:33 am by nol33t »
Logged

nol33t

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 244
  • Exploring Coppermine in every directions
    • tieum's pics
Re: Coppermine and Flash Interface Navigation ? Look this link
« Reply #6 on: January 25, 2005, 03:12:49 am »

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..
« Last Edit: January 25, 2005, 03:46:58 am by nol33t »
Logged

nol33t

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 244
  • Exploring Coppermine in every directions
    • tieum's pics
Re: Coppermine and Flash Interface Navigation ? Look this link
« Reply #7 on: January 25, 2005, 04: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

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: Coppermine and Flash Interface Navigation ? Look this link
« Reply #8 on: January 25, 2005, 05:26:55 am »

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

nol33t

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 244
  • Exploring Coppermine in every directions
    • tieum's pics
Re: Coppermine and Flash Interface Navigation ? Look this link
« Reply #9 on: January 25, 2005, 09:11:25 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

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Re: Coppermine and Flash Interface Navigation ? Look this link
« Reply #10 on: January 27, 2005, 03:10:18 pm »

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

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 244
  • Exploring Coppermine in every directions
    • tieum's pics
Re: Coppermine and Flash Interface Navigation ? Look this link
« Reply #11 on: January 27, 2005, 04:54:38 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

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Re: Coppermine and Flash Interface Navigation ? Look this link
« Reply #12 on: January 27, 2005, 05:46:59 pm »

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

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 244
  • Exploring Coppermine in every directions
    • tieum's pics
Re: Coppermine and Flash Interface Navigation ? Look this link
« Reply #13 on: January 27, 2005, 06:45:34 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

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Re: Coppermine and Flash Interface Navigation ? Look this link
« Reply #14 on: January 27, 2005, 06:53:31 pm »

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

nol33t

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 244
  • Exploring Coppermine in every directions
    • tieum's pics
Re: Coppermine and Flash Interface Navigation ? Look this link
« Reply #15 on: January 27, 2005, 07:21:02 pm »

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 )
« Last Edit: January 27, 2005, 08:32:27 pm by nol33t »
Logged

nol33t

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 244
  • Exploring Coppermine in every directions
    • tieum's pics
Re: Coppermine and Flash Interface Navigation ? Look this link
« Reply #16 on: January 27, 2005, 08:31:40 pm »

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)

« Last Edit: January 27, 2005, 09:08:21 pm by nol33t »
Logged

rphMedia

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 515
  • ***muvipix.com***
    • muvipix - Music | Video | Pictures
Re: Coppermine and Flash Interface Navigation ? Look this link
« Reply #17 on: January 28, 2005, 02:47:45 pm »

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
« Last Edit: March 02, 2005, 04:26:36 pm by rphMedia »
Logged

nol33t

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 244
  • Exploring Coppermine in every directions
    • tieum's pics
Re: Coppermine and Flash Interface Navigation ? Look this link
« Reply #18 on: January 28, 2005, 03:10:16 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

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 515
  • ***muvipix.com***
    • muvipix - Music | Video | Pictures
Re: Coppermine and Flash Interface Navigation ? Look this link
« Reply #19 on: January 28, 2005, 03:39:00 pm »

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.
Pages: [1] 2 3 4   Go Up
 

Page created in 0.29 seconds with 20 queries.