Coppermine and Flash Interface Navigation ? Look this link - Page 2 Coppermine and Flash Interface Navigation ? Look this link - Page 2
 

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]

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 3 Guests are viewing this topic.

nol33t

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? :)

rphMedia

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.

nol33t

: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 ;)

rphMedia

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.  

Rodinou

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 .... :)

nol33t

@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 )

gThumbPath = gXMLRoot.attributes.thumbPath;


and replace it with

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..

marcos

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
goingtowritethislaterbecausemyspacebarisnotworkingproperly

nol33t

Quote from: marcos on January 30, 2005, 12:34:04 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":


  • Imo, that should be only used to browse "by album". Comments and some info about the pictures could be added, but it should stay light, since each time someone will browse an album, a whole xml data flow will be sent to the "swf", with data about the whole album. I'm talking about saving some bandwith here, and avoiding to penalize small servers / light clients etc...hope i make sense

  • About the thumbnail problematic ( they have to be right now in a different directory ):

    • Ron did you have time to try to implement the mod i suggested? If you did let me know what you think
    • I thought yesterday about doing this mod by myself, but there's some legal issues here: First i didn't buy the code yet ( but i'm up to it ), but i wanted to know before, if we mod the flash viewer, if we'll be able to share it with the coppermine community. Because if it's not the case, imho there's no point to keep going in that direction ( no big deal there's many others ;) ). So i just sent a mail to the simpleviewer author to know exactly what we could or could not do with his product. I'll let you know what the answer is. Again, hope i make sense.
have a nice sunday!
-matt-

rphMedia

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.  

nol33t

Quote from: rphMedia on January 30, 2005, 03:59:45 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-



marcos

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....

goingtowritethislaterbecausemyspacebarisnotworkingproperly

nol33t

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-




Tarique Sani

Having commerical add-ons to Coppermine makes sense to me as well :) think about that
SANIsoft PHP applications for E Biz

nol33t

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 ;) )

Rodinou

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.

marcos

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
goingtowritethislaterbecausemyspacebarisnotworkingproperly

Rodinou

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 ...


nol33t

Quote from: nol33t on February 01, 2005, 02:00:21 AM
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"

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-

Rodinou

Quote from: nol33t on February 06, 2005, 11:12:00 PM
Quote from: nol33t on February 01, 2005, 02:00:21 AM
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"

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 ?

nol33t

Quote from: Rodinou on February 07, 2005, 12:52:40 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-