need a flash-based plugin/module developed for use with Gallery 2.3.1 multisites

scaturan
scaturan's picture

Joined: 2004-09-12
Posts: 1153
Posted: Sun, 2011-02-06 09:13

hi,

I'm currently looking for flash-based plugin/module developed for my Gallery 2.3.1 multisites. Here are the specifics:

- functionality like http://codex.gallery2.org/Gallery2:Modules:uploadify which works only on standalone Gallery 2 installations. I need something that works for multisite Gallery 2 installations where the codebase runs on a different subdomain than the actual multisite (eg. crossdomain.xml requirements, etc...)

- support full HTTPS
- ability to adjust the amount of simultaenous uploads
- release it back to the community so that other Gallery 2 multisite users will benefit.

This project can be ongoing, if interested, please forward me the scope of work involved, and price quote.

Thank you, and best regards,

Steve Caturan

__________________________________________________________
liberate your photos with Gallery, make the switch today!
https://pixi.me/

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2011-02-06 15:06

Steve, have you tried what I suggest here?
and you might want to add a crossdomain.xml to each multisite.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
scaturan
scaturan's picture

Joined: 2004-09-12
Posts: 1153
Posted: Sun, 2011-02-06 19:08

hi Wayne,

After digging through several hours on Google trying to find a solution, it looks like its almost impossible to make this work in a multisite setting without hardcoding the https://mydomain.tld/crossdomain.xml into Security.loadPolicyFile(""); but that requires modifying the actual SWF file - something that's created by the Uploadify folks (i would assume). No matter what changes I make to crossdomain.xml - Apache doesn't indicate anywhere that it's being requested at all.

Any thoughts if this is something worth pursuing and paying for, or should I let this go, hehe. :)

 
scaturan
scaturan's picture

Joined: 2004-09-12
Posts: 1153
Posted: Sun, 2011-02-06 19:19
 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2011-02-06 19:29
Quote:
After digging through several hours on Google trying to find a solution, it looks like its almost impossible to make this work in a multisite setting without hardcoding the https://mydomain.tld/crossdomain.xml into Security.loadPolicyFile("");

Bulls@#t

flash does not care where the swf is stored, it has no clue of the filesystem.
it only cares where its being displayed from.
so if we have a swf /usr/local/mysite/my.swf
so if its being displayed in http://domain1.com/my.swf it will look to the root of domain1.com for the security policy
same if that very same my.swf is being displayed at http://domain2.com/my.swf it will automatically look to the root of domain2.com for the security file.

I'm thinking the issue is in the https and the inclusion of the javascript files.

at the top of ItemAddUploadify.tpl
lets include all the necessary js directly in the template for one particular site - you pick which site.
use full urls to the files with https:

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="https://yoursite.com/modules/uploadify/lib/jquery.uploadify.v2.1.0.min.js"></script>
<script type="text/javascript" src="https://yoursite.com/modules/uploadify/lib/jquery.jgrowl_minimized.js"></script>

also make sure the swf is being called in on the same domain/sub-domain (www is considered a sub-domain)
'uploader' : 'https://yoursite.com/modules/uploadify/lib/uploadify.swf',

once you have everything in the same domain/sub-domain it should work fine.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
scaturan
scaturan's picture

Joined: 2004-09-12
Posts: 1153
Posted: Sun, 2011-02-06 20:08

yep, made all those modifications, and I even installed the Flash Player with debugging enabled.

if I "View Source" from the multisite, I see 'uploader' : 'https://yoursite.com/modules/uploadify/lib/uploadify.swf',

everytime I refresh the Uploadify tab in Add Items, a log entry like below is shown:

OK: Root-level SWF loaded: https://base.pixi.me/gallery2/modules/uploadify/lib/uploadify.swf

I would expect something like below to follow right after (but nadda):

OK: Searching for <allow-access-from> in policy files to authorize dataloading from resource at .....

it might be HTTPS getting in the way, who knows. I think i'll let go of this for good. Thanks again for looking into this!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2011-02-06 20:24
 
scaturan
scaturan's picture

Joined: 2004-09-12
Posts: 1153
Posted: Sun, 2011-02-06 21:09

yep, https://base.pixi.me/gallery2/ is the codebase, and https://chel.pixi.me/ is the multisite

I would normally get this error:

SecurityError: Error #2060: Security sandbox violation: ExternalInterface caller https://base.pixi.me/gallery2/modules/uploadify/lib/uploadify.swf cannot access https://chel.pixi.me/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemAdd&g2_itemId=10031.
at flash.external::ExternalInterface$/_initJS()
at flash.external::ExternalInterface$/call()
at uploadify_fla::MainTimeline/setButtonSize()
at uploadify_fla::MainTimeline/frame1()

but it goes away once I add: scriptAccess : 'always', - which means, I would assume, after the object is loaded, it would request crossdomain.xml but nadda.