forum.coppermine-gallery.net

No Support => Feature requests => Topic started by: Rodinou on January 23, 2005, 12:00:32 pm

Title: Coppermine and Flash Interface Navigation ? Look this link
Post by: Rodinou 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 ...

Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: Hein Traag 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 ??
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: Joachim Müller on January 23, 2005, 04:02:17 pm
see http://forum.coppermine-gallery.net/index.php?topic=7920.0

Joachim
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: Rodinou 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 ...
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: Joachim Müller on January 24, 2005, 09:13:40 am
let's see some code contribution, not just a "proof of concept" or "general idea"...

Joachim
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t 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 (http://www.airtightinteractive.com/simpleviewer/) )

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-
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t 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..
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t 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
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: 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 :)
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t 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
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: Rodinou 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.
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t 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 ;)
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: Rodinou 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 ?
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t 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-
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: Rodinou on January 27, 2005, 06:53:31 pm
I'm waiting for your tests ?! (for me all you write = chinese) :)
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t 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 )
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t 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 (http://www.sephiroth.it/python/sepy.php)) and compiler(Flush (http://www.debreuil.com/flush/))

Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: rphMedia 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
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t on January 28, 2005, 03:10:16 pm
Simple Viewer (http://s92220213.onlinehome.us/gallery/index1.html)

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 )
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: rphMedia 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.
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t on January 28, 2005, 04:02:28 pm
I see
but what i don't see is that it looks like you modified the swf file ( no link on the simpleviewer site anymore ), so i don't get why you didn't try to implement what i was talking about above in this thread:  adding the "thumb_" prefix directly in the .fla or .as script.
because even if as you say having two time thumbs is not taking space, IMHO doing that is redundant ( since we got already thoses thumbs ) and...not really pretty? :)
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: rphMedia on January 28, 2005, 04:09:24 pm
I didn't modify the swf file, I have the fla source.  And you make it sound like it's real easy to modify the scripting.  Not so; I'm sure I could do it, but haven't had the time lately.  If you feel confident, purchase the program and go for it. There's well over a thousand lines of code in this.  Hopefully you have some intermediate knowledge of Flash.  Not recommended for beginners, trust me.
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t on January 28, 2005, 04:23:54 pm
:lol: sorry for feeling so confident  ;D
but yea for me it's just a "filename" var dude...so action script or php or ..

anyway, i was more trying to be constructive than to offend you, you got the .fla, you got flash, have fun ;)
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: rphMedia on January 28, 2005, 04:38:01 pm
No, no.  No offense taken.  If and when I get around to it, I'll modify it and probably post it here somewhere.  Once I get the Flash / PHP communication down to a science, I too will feel more confident and try to integrate it a bit more.  
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: Rodinou on January 29, 2005, 03:08:23 am
It's very cool !!! :)

For me perfect integration would be ...

album
title album
html nav - flash nav

people choose how to surf : page per page (very heavy for server, but you can post comments, vote ...)

flash nav : very intuitive, elegant, fast, but no comments, no votes ...

for me it would be great ... Simple Viewer is quite fantastic.

Hope you'll have time, one day .... :)
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t on January 29, 2005, 04:22:49 am
@rphMedia / Ron

here's below the mod i was speaking of ( i like to be concrete so i just looked at the code by myself ;) ):

find in the main script of the .fla ( at the beginning of the init() function )
Code: [Select]
gThumbPath = gXMLRoot.attributes.thumbPath;

and replace it with
Code: [Select]
gThumbPath = gXMLRoot.attributes.thumbPath + gXMLRoot.attributes.thumbPrefix;

to use it now, just add an attribute thumbPrefix=$CONFIG['thumb_pfx']  in the <SIMPLEVIEWER_DATA> tag,
and set imagePath = thumbPath = $CONFIG['ecards_more_pic_target'] ( see my first post in this thread for details )

-matt-

--edit: corrected some sentences, my english is not that good at 4AM..
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: marcos on January 30, 2005, 12:34:04 pm
Hi guys... may I join this quest?

I think flash UI is the best...no doubt ....  and coppermine is the best... no doubt

so ... it just make them go together....

It isn't that complicated to make comments and votes with flash...
AMFPHP (www.amfphp.org)  is there and it is easy and good...

A make a flash visualizer that do vote but it isn't online yet...
hmm ... the gallery is www.flyby.com.br
check out some pic and click on "ZOAR ESTA FOTO" .. it's a nice feature .. and I got a way to save
the masterpieces that will be made.....

The thumb part is the one that I tought will be the last... but now I see you guys get it done.

Is someone want to discuss this on MSN:
chadart_net@hotmail.com

Thanx...

marcos augusto
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t on January 30, 2005, 03:43:48 pm
AMFPHP (www.amfphp.org)  is there and it is easy and good...
still in beta, but yes it looks really promising :)

About the SimpleViewer "mod":


have a nice sunday!
-matt-
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: rphMedia on January 30, 2005, 03:59:45 pm
Hi Matt,

If you don't have the source code, how did you know about that line in the fla?  Just curious.

I've already asked the author if I can give (even sell) the swf files.  No problem, as long as you don't supply the fla in any way. You can even include it in commercial projects, which is nice as well.

And no, haven't played with the code yet, but your suggestion looks like it may work.  
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t on January 30, 2005, 04:16:03 pm
If you don't have the source code, how did you know about that line in the fla?  Just curious.

The code is in the swf too ;)

About sharing the swf: That's sweet! I wasn't sure when i read the terms of use about freely sharing a modified  and "ad-free" swf.

Let me know then if you can/are up to attach here a swf with the thumb_prefix modification

-matt-


Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: marcos on January 31, 2005, 06:36:34 am
Hi nol33t,

about the bandwidth stuff.... the only data that will be tranfered is for the pic that is in "zoom" mode...
no need for xml...
just get some information about the pic and Query the DB directly....
the comments for example....
i don't need the exif .. so i can discard that info....

The vote.. its better: we can make a bar on the side of the picture...
it opens with the total votes so far... and the user drags it for it vote...
i think theres a site where I saw something like that.. but I can't remember right now....

Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t on February 01, 2005, 02:00:21 am
I had an answer from Felix Turner, author of SimpleViewer.

I'm not gonna transcript our whole conversation, but here are two sentences:
Quote
As far as using SimpleViewer with Coppermine, I think this is a good idea.
However, because this project has the potential to be used by a large number
of users, I would prefer the SimpleViewer download link to remain visible.

This makes sense to me, and i understand his point of view, and plan to respect it.
Everything cannot be open source - free of use, Felix makes nice innovative products, want to get some recognition and $ for it, nothing more normal.

Moreover, i realized today that the thumbnail size which had to be used with this viewer had to be of a fixed sized ( 45x45 ) and couldn't be cutomized through the options of the xml in input, so that would make another modification to make it fit in a nice way with coppermine.

What i'm looking for is to integrate this kind of flash viewer with cpg  - imo it would be highly innovative for an open source php gallery - but i said the words,  i'm looking for an open source one (flash included),  therefore customizable by anybody, and which would fit with coppermine since it would be made&designed for.

I'm gonna head this way and I'm up to start from scratch (or not entirely, www.amfphp.org looks really interresting and could make things a lot simpler..)  and i think that on this one there's enough work for severals ( reflexion, design, conception - php & flash )

So if there are serious and motivated people...let me know your thoughts ;)

-matt-



Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: Tarique Sani on February 01, 2005, 06:05:30 am
Having commerical add-ons to Coppermine makes sense to me as well :) think about that
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t on February 01, 2005, 10:51:55 am
It sure does :)
That's why i humbly suggested to the author of SimpleViewer to add the thumbprefix attribute option directly in his product to make it more "CPG  compliant", because it would still be a pretty flash mod, and people who would like an ad-free version would just have to click, go on his site, and buy the rights to.

But for the solution i'm trying to  figure out for coppermine, i'm looking for more flexibility..and maybe i didn't look around enough, but i didn't find it yet in an already made flash product.
And if i ( anybody? ;) ) make something,  open source is the way i see it  ( for many reasons i'm sure you know about ;) )
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: Rodinou on February 01, 2005, 07:18:55 pm
I'm ready to buy (tomorrow probably) SimpleViewer to see the code ...

let me know if you are interested : i have any knowledge about flash ... I have a lot ideas, but any knowledge : what a pity.


For me, Coppermine is great about the admin and the gallery, but a lot of way about navigation, intuition and quick ... and this mod could be PERFECT.
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: marcos on February 03, 2005, 09:05:05 pm
Hi guys...

I found some altenatative stuff:
http://tufat.com/category1.htm

It's only 5 dollars...

Just like simpleviewer... a lot of stuff must change...
but it's a good start .. i think....

Thinking about making amfphp search the DB when a photo is opened...
If the users changes the picture... just ignore the last query and go on...

This week changed my life.... I made my start on flashcomm server...
It's something I going to integrate on my gallery too..

Hmm....voice chat with who is watching this picture too.... heheh
videochat...
I already made CPG  .flv compatible... no credits for me... just used a already
made flv player.. but it works nice....if someone is interessed .. just ask

Thanx ...
bye
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: Rodinou on February 05, 2005, 02:49:43 am
RHAAAAAAAAAAAAAAAAAA LOVELY !!!!

http://www.easterpig.com/demo/gallery/H7/photo_content.html >>> simply EXACTLY perfect for Coppermine and serveral galleries by category ... WAOUHHHHHHHHHHHHH !


http://www.easterpig.com/demo/gallery/brightidea/ AHHHHHHHHHHHHH !!! I'm crying ... I think I become crazy when I see EXACTLY I have always had in my head ...

Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t on February 06, 2005, 11:12:00 pm
What i'm looking for is to integrate this kind of flash viewer with cpg  - imo it would be highly innovative for an open source php gallery - but i said the words,  i'm looking for an open source one (flash included),  therefore customizable by anybody, and which would fit with coppermine since it would be made&designed for.

Hi,
Here is an alpha demo to illustrate my point of view: http://nol33t.free.fr/cpg/flash4cpg.php

This flash browser was made with the help of the amazing & excellent tutorial of Alessandro Crugnola: "Create an image gallery with AMFPHP" (http://www.sephiroth.it/tutorials/flashPHP/imagebrowser/)

As is said, it's only an alpha, I still got to poll informations ( comments, view x times, etc..) from the database, shouldn't take too long i think (but we never know ;D)

IMO the answer for flash navigation in a photo gallery is using Flash remoting

-matt-
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: Rodinou on February 07, 2005, 12:52:40 pm
What i'm looking for is to integrate this kind of flash viewer with cpg  - imo it would be highly innovative for an open source php gallery - but i said the words,  i'm looking for an open source one (flash included),  therefore customizable by anybody, and which would fit with coppermine since it would be made&designed for.

Hi,
Here is an alpha demo to illustrate my point of view: http://nol33t.free.fr/cpg/flash4cpg.php

This flash browser was made with the help of the amazing & excellent tutorial of Alessandro Crugnola: "Create an image gallery with AMFPHP" (http://www.sephiroth.it/tutorials/flashPHP/imagebrowser/)

As is said, it's only an alpha, I still got to poll informations ( comments, view x times, etc..) from the database, shouldn't take too long i think (but we never know ;D)

IMO the answer for flash navigation in a photo gallery is using Flash remoting

-matt-

OK ... it becomes very interesting !!!

1. thumbs are too long to load ... :)
2. when clicking on album, show the FIRST pic in intermediate size (I LOVE the pop layer on the bottom right of the pic)

Otherwise, it's quite perfect !!! Do you use XML to configure like SimpleViewer ?
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t on February 07, 2005, 01:28:06 pm
1. thumbs are too long to load ... :)
2. when clicking on album, show the FIRST pic in intermediate size (I LOVE the pop layer on the bottom right of the pic)

As i said it's an alpha demo, i did not focus on the "design", i focused on implementing a flash remoting solution:
Basically, when you click on a button of the viewer, it:
- calls an action script function in the flash
- this function calls a function on the server side ( so php coding here )
- another function on the flash viewer ( so client side ) gets the result

(FYI thumbs are long to load right now cause they are regenerated on the fly from the "normal size" image, the goal is to use directly the existing thumbs, so should be a lot faster then)

Quote
Otherwise, it's quite perfect !!! Do you use XML to configure like SimpleViewer ?
thanx, but not quite perfect yet:
-  the albums list is a list of the subdirectories of "albums/" ( edit and userpics excluded )
-  the image list is a list of the "normal_" prefixed pictures
--> so right now it's file system orientated, the goal is to make it db-orientated, using coppemine functions/config vars etc, then it will be a real "Flash coppermine viewer"

Hope i was clear ;)
-matt-

Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: Rodinou on February 07, 2005, 05:48:50 pm
You were very clear :) but indeed, if the thumbs are created on the fly, it's so impressive ...

But with this system, a lot of servers could at least, BREATHE again :)
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t on February 07, 2005, 11:05:46 pm
But with this system, a lot of servers could at least, BREATHE again :)
well... on the fly but server side  ;D
but i think ( not sure though ) that creating thumbs for the flash viewer on the fly, but from the coppermine thumbs, would be still a lot faster

Quote
2. when clicking on album, show the FIRST pic in intermediate size
done, and it does look nicer ...;)
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: Rodinou on February 09, 2005, 02:45:15 pm
Ohhhhhhhh yes !!! and you have done something very cool ! the name of the album on each pic !!! Could you continue in this way and put UNDER this title the title of the pic when this pic has it ?!

Your stuff becomes interesting ... but now : how to do when we see a category ?!
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t on February 11, 2005, 11:47:13 pm
thanx, but not quite perfect yet:
-  the albums list is a list of the subdirectories of "albums/" ( edit and userpics excluded )
-  the image list is a list of the "normal_" prefixed pictures
--> so right now it's file system orientated, the goal is to make it db-orientated, using coppemine functions/config vars etc, then it will be a real "Flash coppermine viewer"

done!!  ;D

Take a look at the now "beta" version ;) : http://nol33t.free.fr/cpg/flash4cpg_db.php

- The flash viewer uses the config.inc.php file of coppermine to connect to the db with the correct cpgprefix table, and then recover other valuable info ( thumb prefix, normal prefix, and folder where the pictures are stored("fullpath" in cpgx_config) )

- All the albums and pictures info are then recovered from the coppermine tables: ( hover your mouse on the grey box at the bottom right corner of the picture :) )
  - picture namesize
  - resolution
  - upload date
  - viewed x times
  - title of the picture when there's one available ( go on the "Misc" album to check that, there's title on almost every pictures )

- Thumbs are now "thumbs of the coppermine thumbs" ( so they should load a lot faster)

next things i'm planning to add:
- list albums depending on the category chosen
- add the comments of the picture ( don't know exactly where/how to put them yet..)

on my todo list too: to release a  "working on any site"  version: you unzip everything and it works on your coppremine install, so long i have tried to code it in this way so that shouldn't be too hard

Constructive feedback welcome, so let me know what you think!  :D

-matt-
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: Tranz on February 11, 2005, 11:51:09 pm
ooh la la. Great job :)

View full image redirected to what seems like the index page of the album folder and I got redirected to the gallery home page.
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t on February 12, 2005, 12:12:41 am
ooh la la. Great job :)
thank you :)

Quote
View full image redirected to what seems like the index page of the album folder and I got redirected to the gallery home page.
corrected! ;) edit--fixed is a better word no?  ;D
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: Rodinou on February 12, 2005, 02:12:56 pm
Ok it's very very cool !!! :)


But ... (mmmmmmmmmmmmmm héhé)

- probleme with VERTICAL photos ... you have only horizontal photos, and if you put vertical photos, they will be smaller. To resolve it, it would be to
- create a "flash form" which contains the lists of albums of a category (and not a list on the left, which takes a lot of place)
- put on the left (or right : possibility to configure like SimpleViewer ?) the thumb list.

Other things ???
Choose like Coppermine the number of the page we want to see : to see 400 photos, we have to see xxx preloads of thumbs ... or jump directly to the xxxx page would be great.

mmmmmmm the rest if perfect !!! Arghhhhhh yes !!! by putting "powered by coppermine" on bottom, possibility to have ONLY the flash without the Coppermine interface (very practice when we want to see your wonderful flash cpg in popup windows)
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t on February 12, 2005, 03:29:14 pm
- probleme with VERTICAL photos ... you have only horizontal photos, and if you put vertical photos, they will be smaller. To resolve it, it would be to
- create a "flash form" which contains the lists of albums of a category (and not a list on the left, which takes a lot of place)
- put on the left (or right : possibility to configure like SimpleViewer ?) the thumb list.
i won't change the display, it's too time consuming and the result is ok for me: the viewer browses through intermediate pictures ( btw it takes the fullsize one if the intermediate doesn't exist ), and so for vertical pictures the result is the same than in coppermine no? ( and you still can click on "view full image")
however to choose the category i think about using a pop-up indeed

Quote
Choose like Coppermine the number of the page we want to see : to see 400 photos, we have to see xxx preloads of thumbs ... or jump directly to the xxxx page would be great.
well if you click twice you'll arrive on page 2? :) I mean you don't have to wait for the thumbs to load to click to get the next page so..it's a good idea imo but it won't be my priority

Quote
by putting "powered by coppermine" on bottom, possibility to have ONLY the flash without the Coppermine interface (very practice when we want to see your wonderful flash cpg in popup windows)
little dilemna here..indeed if you point directly on the swf http://nol33t.free.fr/cpg/flash4cpg_db.swf it does look nice and i imagine how it would look with a pop-up with a 800x600 autoresized/no toolbar window..
but if i add a "powered by coppermine" thing i will then have to think of a nice way for people not to remove it...i think i can implement it just like it's done in coppermine but not really much more..
@Dev Team: would that be ok for you?

--edit: but that would mean that when integrated in a coppermine page ( flash4cpg.php ), the powered by would be here twice..I think it needs some extra reflection..

-matt-
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t on February 12, 2005, 05:15:24 pm
i imagine how it would look with a pop-up with a 800x600 autoresized/no toolbar window..

Concrete example:
- go on the main page of my site: http://nol33t.free.fr/cpg/ (http://nol33t.free.fr/cpg/index.php)
- click on "Navigation Flash" in the top menu

 :)

-matt-
--edit: the link wasn't workin' with IE... ::) -fixed-
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: Rodinou on February 13, 2005, 04:12:45 am
ok ok ... and ok :)

other requests ? Yes of course !!!


What's happened on the left menu if you have more albums ? A scrollbar appears ? Your example contains in fact ONE category (you have displayed your coppermine like it), and less than 20 albums ... (I live in Normandy ... :)) ...


Another thing ... is it possible to display it on coppermine by adding a cell ... see my example :
What's happening on this page http://www.sortons.net/photos/index.php?cat=96

The top would be on the left menu, we click, ohhhh another category list appears, or if it's directly the albums, the albums appear (like your example)

Another example ...
http://www.sortons.net/photos/index.php?cat=2
Beneath the name of category, try to find a solution for user to
- he surfs by coppermine (page per page)
- he surfs with your flash4Cpg

At least
http://www.sortons.net/photos/index.php?cat=63
Put under the pic descr 2 links : one for CPG visit, one for Flash4CPG

and THE LEAST OF THE LEAST
http://www.sortons.net/photos/displayimage.php?album=1275&pos=0

On my example, on the right
"Surf with Flash4CPG"

I know, it's a lot of stuff, but I think Flash Solution will be, in next futures, a STANDARD.

Let me know, to finish, your stuff is simply amazing, and thanx to realize one of my dreams.
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t on February 13, 2005, 04:25:49 am
 ;D Comments added (http://nol33t.free.fr/cpg/flash4cpg_db.php)  ;D ( the first pic of first album is a good example )

-matt-

@Rodinou: just saw your last post, right now the album list is the whole list of the albums in coppermine ( most of my albums have no category indeed, but 3 have ):

- yes if there's too many albums to display the list will be scrollable
- as i wrote earlier i plan to implement a "category" button which will display the albums of the category chosen only

thanx for your compliments, and...be a little more patient  ;)
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: Titooy on February 13, 2005, 01:42:43 pm
Nice work !!!

http://nol33t.free.fr/cpg/flash4cpg_db.php

There's a kind of small bug when you click on Outside: the image is smaller than the frame (maybe should it be centered) and you see another pic under it. Looks like there's a problem unloading "old" pics.

Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t on February 13, 2005, 02:00:40 pm
Thanx :)
I have noticed this "glitch" yes, however it's not happening all the time...but indeed it's a kind of small bug that i'm gonna hunt down ;)

-matt-
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: Rodinou on February 13, 2005, 02:50:07 pm
Excuse me, I'm very exciting, simply ! :)

ANother thing (ohhhhhhhhhhhhhhh don't bite me !!!) :)

would it be possible to change the height/width of the thumb, cause 15 px seems to be very little ... (no ?)

Are the colors customizable ?

That's all :)
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: skypix on February 15, 2005, 03:58:31 pm
Fantastic work, nol33t, you are creating a marvelous improvement to Coppermine that answers the big problems I have with the gallery: namely, how to scroll filmstrip.  Wonderful work.

How can a newbie like me who knows very little about php incorporate this into my site (www.skypix7.com)  When do you think it will be done? 

Keep up the good work, your dialogue with Rodinou is fascinating, he is cracking the whip!   ;D
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t on February 16, 2005, 01:35:10 am
Thanks for the feedback, makes me want to release something stable asap

Quote
How can a newbie like me who knows very little about php incorporate this into my site (www.skypix7.com)  When do you think it will be done?
just wait a little bit..it's still in beta stage, got to take care first of some major ( hided ;) ) probs, and i'm expecting to release something stable in a month max.
I could release all the files right now..but you would have to modify the flash viewer to make it work on your own website and i don't want / have no time to give support for something not stable enough..

Quote
your dialogue with Rodinou is fascinating, he is cracking the whip! 
no comment?  ;D

-matt-
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: skypix on February 16, 2005, 10:18:56 pm
Thanks Matt, I'll be watching, thanks for all the hard work...it'll be awesome when you're done with it.

Jim
www.skypix7.com
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: skypix on February 16, 2005, 10:56:23 pm
Will the thumbnail field be configurable, i.e. will we be able to change size of thumbs, colors etc.?
Jim
www.skypix7.com
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t on February 17, 2005, 12:04:45 pm
Will the thumbnail field be configurable, i.e. will we be able to change size of thumbs, colors etc.?
there's two problematics here:

- setting the color dynamically ( with params in the embed tag calling the flash viewer ) should be pretty easy, so i would say yes for being able to configure the colors ( thumbs borders, album list, ..?)

- for the size of the thumbs...that would imply to redraw the whole layout dynamically...which is way beyond my flash skills right now, and to be honnest a real pain to realize...however on a second step, what i could do is provide a couple of differents "statics layout", e.g.:
  . the existing one
  . one with less thumbs but two times bigger
  . one with thumbs list vertically on a side of the main pic
 
but as i said it would be on a second step ;)

--edit: after some extra reflexion..on a first step, maybe you'll be able to choose ( through params too ), between 2 rows of 10 thumbs, and 1 row of 5 but bigger ones

-matt-
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: skypix on February 17, 2005, 09:39:23 pm
Matt, don't want to drive you nuts on this, it's fine the way you've got it so far.  If it could be changed down the road, or selected between a couple layouts like you say, that would be plenty cool. 
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: Rodinou on February 18, 2005, 01:47:52 am
If thumbs could have 50px size it would be perfect ... now I'm not sure only 5 pics per page/thumb is suffisant :) 20 would be OK ...

So ...

About 200 px on the left for the albums / categories ... that's OK ...

by defaut, INTERMEDIATE PICS are 400 px ... right ? If pic is bigger, Flash can resize it by scaling, right ?! ... so ... I continue .... 400 px ...

If we are 3 thumbs rows with 50 px but 5px on padding ... I have 55 + 55 + 50 ... and 15 pics per page ...


So ... I add ...


200 px ... + 20 px padding (separating the menus and the intermediate pic) + 400 px (intermediate pic) + 20 px (separating intermediate pic and thumbs) + 55 + 55 + 50

I obtain .... 800 px ... I remove 10 px padding ... I have 780 px ... I remove 10 px on the left ... I have 770 px ...

770px is the EXACT SIZE to have a full width on a 800x600 screen ...

about height ...

To have pics vertically and horizontally (I hope, I dream it would be possible), We take the 400 px height ...

So ... 400 px height ...

How many thumbs can i put on 400px height ... 7 ... = 385 px ... I obtain .... 7x3 thumbs = 21 thumbs per page !!!

We can add 10 px on top and bottom for esthetism ... and about 20px on the top for the title of the Album, for example, instead on the pic  (put only on the pic the title of the pic)

400 px enters easily in a 800x600 screen : because we are ok we use this option by a popup ? ... so :) ....

Now ... I illustrate by a drawing :)

So "my" vision ... :)

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.sortons.net%2Falbums%2Fcpg%2Flayout1.jpg&hash=67e7e7dc5681fe701e1c4a3f3970593722531c27)
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.sortons.net%2Falbums%2Fcpg%2Flayout2.jpg&hash=92cee8b30685c9fd247ec7779c1e2f632556d2f5)
 
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: Joachim Müller on April 14, 2005, 06:27:45 pm
hm, just found this site, not sure where the link could go, so I thought someone with flash know-how might find this useful: http://www.emllabs.com/article.php?articleId=114
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: rphMedia on April 14, 2005, 09:47:27 pm
hm, just found this site, not sure where the link could go, so I thought someone with flash know-how might find this useful: http://www.emllabs.com/article.php?articleId=114

That's the exact premise I use for all of my dynamic Flash content.  Good info for beginners or for anyone that wants to delve into php/flash integration!
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: Rodinou on April 20, 2005, 01:15:27 pm
great
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: marcos on May 08, 2005, 06:20:03 am
Hello ,
I made an flash navigation, and will apreciate critics.

www.flyby.com.br
just go to the bottom and click any pic...
you got zoom, pan, jpg quality selection,
soon I'll be adding hotspots with text.. like flickr...

i'll like to give the code to coppermine users , if they want to

and if someone wants to join the project..
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t on May 09, 2005, 09:43:33 am
hm, just found this site, not sure where the link could go, so I thought someone with flash know-how might find this useful: http://www.emllabs.com/article.php?articleId=114
That's the way i ( well more the tutorials i worked with.. ) made the thumbnails too.
However about Step 1 " Grabbing the images", well i prefer to get the info from the db than the filesystem...;)

My work & RealLife took/take me too much time to update recently the Flash4CPG thingy (http://nol33t.free.fr/cpg/flash4cpg_db.php), but i kinda worked hard on it, so i'll attach the src files  ( php / fla ) on this thread if someone wants to play with / improve it ( cuz' i think it would make a nice plugin ;) )

I made an flash navigation, and will apreciate critics.
my main critic is that it's not a real "navigation", but more a flash display of the intermediate pic?

-matt-
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: nol33t on May 10, 2005, 12:55:15 am
Here it is:

- don't forget to download last version of amfphp from http://amfphp.sf.net

- in the action script part of the fla file, don't forget to change settings to your site..
Code: [Select]
_global.urlPath = "http://nol33t.free.fr/cpg/"
_global.basePath = urlPath + "";
_global.imagesPath = basePath + "albums/"
_global.gatewayurl = urlPath + "flash4cpg/gateway.php";

- as mentionned earlier in this thread, here's the link to the excellent tutorial of Alessandro Crugnola "Create an image gallery with AMFPHP" (http://www.sephiroth.it/tutorials/flashPHP/imagebrowser/)  on which this viewer is based from, if you need extra explanations ( e.g. the crop feature, implemented in flash4cpg from the tutorial, but disabled cause wasn't the main purpose of the exercise )

-matt- ;)

P.S.: .rar files attached, so remove the .txt extension once downloaded
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: marcos on May 12, 2005, 05:37:42 pm
Yes.. its better to call it a intermediate flash display, i thinking about joining everything inside flash,
making it refresh-free.

It will be easy, after the slideshow code is done, is just populate an array with the pics...
just one amfphp/sql query.......

and button on the album list: slideshow this album....

Where I'm trying to get now, is , making it a div layer...
so, in a lef-side oriented template... you could make a fullscreen without refresh, pop-ups.. etc...
it's pretty nice.. you could add an load original pic....


I used Quasimodo swfProxy too... its a nice code....
you can load progressive jpgs, gifs, etc inside flash...

and you can set the quality of the pics "on-the-fly"

i have re-maded the page..
now I got the login, logout, admin mode etc .. inside the top flash banner..

Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: marcos on May 15, 2005, 01:58:58 pm
Hello ,

If someone could help me out...

I'm changing GauGau's hardwired theme to use layer div's...

Ok, my point is, a 100% div layer on the top of everything in displayimage.php

The problem is, I cannot find where to change in theme.php to make the div html code comes first then
the table..otherwise, my full screen layer div you become a prisioner of the table...... that s not good
for a fullscreen image viewer....

the link
http://www.flyby.com.br/displayimage.php?album=22&pos=0

thanx!
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: Joachim Müller on May 17, 2005, 08:29:49 am
I'm changing GauGau's hardwired theme to use layer div's...
it wasn't me who created the theme, the line
Code: [Select]
  $Author: gaugau $just means that I was the last one who modified a file in the cvs before the release was packaged.
You might run into troubles doing what you're up to, as coppermine currently is based on nested tables. Try applying the div wrap in template.html
Your question is however not related to this thread, please don't post follow-ups.
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: marcos on June 05, 2005, 10:47:16 am
Ok GauGau, thanx for the xplanation.
well, thanx for who did it so.. heheh..

my post fits here because it is the idea of a flash interface pic viewer.... a full screen pic viewer ( or browser's full screen... better)

i thought about making an full screen div and let it "behind the scenes" when the users clicks on "see full" on the pic, the layer
comes to the top, with the pic loaded into flash.. with all the features of that simple visualizator I made...zoom pan.....

Actually, I had this idea now... man .. must stop drinking! heheh...kidding...
i was trying to make a div only when on the displaypic.php..hmmmmm..


going to try !

huauha...
Title: Re: Coppermine and Flash Interface Navigation ? Look this link
Post by: lordprodigy on March 29, 2006, 11:42:49 pm
marcos, I like your flash mods to coppermine... how hard is it to customise it / use it?

let me know...