need a flash-based plugin/module developed for use with Gallery 2.3.1 multisites
scaturan
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 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 __________________________________________________________ |
|
Posts: 8339
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
Posts: 1153
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.
Posts: 1153
would this be any help at all?
http://stackoverflow.com/questions/2852329/subdomain-and-uploadify-not-working
Posts: 8339
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:
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
Posts: 1153
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!
Posts: 8339
my crossdomain policy
so when you load the swf from https://base.pixi.me/gallery2/modules/uploadify/lib/uploadify.swf
then all the javascript needs to come from https://base.pixi.me/ as well w/ allowScriptAccess = always or sameDomain
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 1153
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.