Tags:
media1Add my vote for this tag create new tag
view all tags

Question

I'd like to be able to embed a flash application like this one in my wiki pages: http://www.fotomaps.net/demo/index.html

Ideally the would appear inside of the body of twiki, surrounded by all of the typical skins / menus / etc.

Has anyone an idea how I could do that ?

(PS - I have command line access to the server. So I'm not worried about editing the xml files, etc. My main problem is just getting the app to appear)

Thank you! Keith

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Plugins

-- KeithHelfrich - 23 Feb 2008

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

As TWiki supports all html (including javascript, css, etc...) normally you will just have to copy/paste the html code of the page into a TWiki page and it will run. Points to check for however:

  • remove empty lines, as TWiki expands them in P tags
  • make all tags stay on a single line
  • use <noautolink> ... </noautolink> around your HTML code
  • check you do not have constructs like %XXX%

-- ColasNahaboo - 23 Feb 2008

See also EmbedFlashPlugin.

-- ArthurClemens - 23 Feb 2008

Thanks, guys. That has gotten at least the framework of the application to show up. But it says "loading 100%" and nothing else (the map does not load).

I notice there is a config.xml that isn't being read, and I'm not certain how to proceed. The SWF, embed javascript & all of those components are in the pub directory, but the HTML etc is in the topic itself.

I've also used the EmbedFlashPlugin like this =%EMBEDFLASH{filename="%ATTACHURL%/fotomaps.swf" }%

This gives me the same result as above ... the framework for the app loads, but the map does not. I can tell that the config.xml is not being read & wonder what to do.

-- KeithHelfrich - 23 Feb 2008

Any idea of how to overcome the fact that not everything is located in the same directory ?

Would it be possible to rig TWiki somehow so that the flash app could be located all in the same directory ?

I've tried to %INCLUDE% the application from the pub dir, but that doesn't work, either....

-- KeithHelfrich - 23 Feb 2008

by default, for security, the recommended apache config makes most files in pub/ mime-type forced to text/plain. You may want to remove this

-- ColasNahaboo - 23 Feb 2008

Thanks, Colas. I don't want to undo any recommended security settings. It's not worth the compromise. Are you certain that is the problem ?

If so, then I don't see any reason why I couldn't create an `alternate pub` directory which allows the necessary mime-type but is not writable by twiki (via attachments). This would mean that command line access to the server is req'd in order to abuse the mime-type .. would it not ?

Truth is, I don't know how to solve this, but I would like to. There's a free demo version of the software available for download and I would gladly send US$100 to somebody who gave me instructions on how to securely embed this app (and others like it) into my twiki pages. It's not much money, but if one of the wiki-gurus could whip up a cookbook in less than a hour it might be an attractive proposal.

If not, then I'll carry on rewardless with my meager attempts to get it working :-/ ..any and all ideas are welcome

-- KeithHelfrich - 23 Feb 2008

Well, the best I've found is that the thing will run just fine if I call it from the ../pub directory. But when embedded within the twiki topic itself, the config.xml file(s) don't get read.

So the best I could do so far was launch the app in a new window from the twiki site, and have that new window stripped down w/out the address bar, etc.

It would be nice to embed this thing directly into the twiki page itself.

-- KeithHelfrich - 25 Feb 2008

I am doing an update on EmbedFlashPlugin. Do you have any example code I can test?

-- ArthurClemens - 25 Feb 2008

Yeah, sure. You can download the free trial soft here: http://www.fotomaps.net/trial.html

Basically, I've found that it is not possible to bring a flash app which relies on an external config.xml thru twiki. Note that in this case there are two external xml files: config.xml and photos.xml ... This app is one example, but I've also tried apps and found the same.

-- KeithHelfrich - 25 Feb 2008

I have updated EmbedFlashPlugin to do this - it does run fotomaps if all files are attached to the topic. It now even allows to point to a different domain using the base attribute. See enclosed examples.

-- ArthurClemens - 26 Feb 2008

Hi Arthur, sounds great, I can't wait to try it. For the moment, I'm stuck on installation of the EmbedFlashPlugin. Your updates have broken it on my older CairoRelease twiki, and on my newer twiki I'm lost in a maze of read-only mounts & soft links. I'll have to get my friendly developer for hire to help me with that .. doh!

But as soon as I get it working I'll report back. Would the email address on your ArthurClemens page be the right place to send $ via paypal ?

Thanks again,

-- KeithHelfrich - 28 Feb 2008

Sorry about the upgrade problem... progress must go on! Yes, you can use that email address.

-- ArthurClemens - 28 Feb 2008

Hi Arthur, I still don't have the EmbedFlashPlugin working correctly on my fancy new TWiki 4+ system. Is there any reason why the plugin would not work when run from read-only mounts of a pseudo-install setup of the TWiki web ?

The symptoms are that TWiki.EmbedFlashPlugin page just shows up empty (twiki shell, nothing at all inside of the topic). And a %EMBEDFLASH{filename="http://twiki.org/p/pub/Plugins/EmbedFlashPlugin/sample.swf" width="550" height="400"}% in the sandbox web gives me just that text and no love.

As far as I can tell, this plugin is pseudo-installed just like all of the others, and all of the softlinks / read-only mounts are good.

-- KeithHelfrich - 07 Mar 2008

If the topic file is empty something did not copy correctly. The file in SVN (MAIN branch) looks ok. You can try the zipped download version as well.

-- ArthurClemens - 08 Mar 2008

No, the data/TWiki/EmbedFlashPlugin.txt text file is in tact & healthy. But for some reason, it just doesn't resolve when requested thru my TWikiSite ? I've attached here for you a MANIFEST file for use with pseudo-install..

-- KeithHelfrich - 08 Mar 2008

It looks like you have an older version. The latest MANIFEST is:

data/TWiki/EmbedFlashPlugin.txt 0660
lib/TWiki/Plugins/EmbedFlashPlugin.pm 0440
pub/TWiki/EmbedFlashPlugin/sample.fla 0777
pub/TWiki/EmbedFlashPlugin/sample.swf 0777
pub/TWiki/EmbedFlashPlugin/img/thumbs/Agave.jpg 0777
pub/TWiki/EmbedFlashPlugin/img/thumbs/Clown-Fish.jpg 0777
pub/TWiki/EmbedFlashPlugin/img/thumbs/Daisies.jpg 0777
pub/TWiki/EmbedFlashPlugin/img/thumbs/Dandelion-Seeds.jpg 0777
pub/TWiki/EmbedFlashPlugin/img/thumbs/Dandelion.jpg 0777
pub/TWiki/EmbedFlashPlugin/img/thumbs/Faux-Fur.jpg 0777
pub/TWiki/EmbedFlashPlugin/img/big/Agave.jpg 0777
pub/TWiki/EmbedFlashPlugin/img/big/Clown-Fish.jpg 0777
pub/TWiki/EmbedFlashPlugin/img/big/Daisies.jpg 0777
pub/TWiki/EmbedFlashPlugin/img/big/Dandelion-Seeds.jpg 0777
pub/TWiki/EmbedFlashPlugin/img/big/Dandelion.jpg 0777
pub/TWiki/EmbedFlashPlugin/img/big/Faux-Fur.jpg 0777
pub/TWiki/EmbedFlashPlugin/swf/ThumbController.swf 0777

Also make sure everything is readable by your webserver.

-- ArthurClemens - 08 Mar 2008

Hi Arthur, even with the newest download I get a blank screen on the plugin page. Just don't know why, but I still suspect that it has something to do with the softlinks & read-only mounts. Not sure why, though, because none of the other plugins have this problem. I'll keep working on it & let you know what the fix finally is...

-- KeithHelfrich - 15 Mar 2008

Hi Arthur, I still don't have this working yet. Someday, when I do, I will let you know! It's just a maze of links & mounts and I don't know how to fix it.

-- KeithHelfrich - 07 May 2008

I have the exact same problem. Is there a solution?

-- RajivMehra - 2009-06-19

I am also facing the same kind of problem. The flash (.swf) does not get loaded. I used -- %EMBEDFLASH{filename="example.swf"}%. Also tried using ATTACHURL like this --- %EMBEDFLASH{"%ATTACHURL%/example.swf"}% But if I click on the attachment and click on the file it opens separately. But it does not get loaded into the TWiki content page as per the above syntax. I downloaded "EmbedFlashPlugin.tgz " from the plugin website. All the files are installed in my Linux Machine where TWiki is installed.

Any workaround to solve this? Anyone ever encountered this problem and solved? Please help me out.

Thanks to all.

-- SubhashSrinivasamurthy - 2009-10-07

Change status to:
Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt MANIFEST.txt r1 manage 0.2 K 2008-03-08 - 20:47 UnknownUser manifest for EmbedFlashPlugin
Edit | Attach | Watch | Print version | History: r20 < r19 < r18 < r17 < r16 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r20 - 2009-10-07 - SubhashSrinivasamurthy
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.