Hi I have created a interactive pdf in Indesign and convert it to swf, is there a way I can upload it to my vantage theme website? the animation is just “turn pages”. I wanto to upload it/ place it to my home page.
SWF
This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.
Hi again Roland
You can use the tinyMCE editor you already have installed. This has an embed video button. Upload your swf, copy the link to the swf. Add a text widget, click the insert video button to paste the path in.
Hope this helps
Magus
Hi again Magus! :)
The catch is there is animation on the SWF interactive, its like a book that you will turn pages, can TinyMCE editor can do that? I’m sorry im still waiting for the file, so cant try it if its work! :)
thanks magus :)
Hi Roland
It should work.
If it does not allow you to upload the swf file then you will need to add some script to your child-themes functions.php, via Appearance->editor. This will enable the uploading of swf files.
{code]
function demo($mimes) {
if ( function_exists( ‘current_user_can’ ) )
$unfiltered = $user ? user_can( $user, ‘unfiltered_html’ ) : current_user_can( ‘unfiltered_html’ );
if ( !empty( $unfiltered ) ) {
$mimes[‘swf’] = ‘application/x-shockwave-flash’;
}
return $mimes;
}
add_filter(‘upload_mimes’,’demo’);
[/code]
Magus
My error with typing
That should be better
Magus
thanks Magus, ill that later, thanks you so much for the support :)
Thanks for that snippet Magus. roland if you need a stater child theme for Vantage we now have one up here:
https://github.com/siteorigin/vantage-child
A plugin might also be the way to go to allow this file type upload:
https://wordpress.org/plugins/search.php?type=term&q=swf
Hi again Magus!
I tried deleting and installing again the Black TinyMCE widget, and i go to my pages >menupage and add a row and add the visual editor (they say its the new name of tinyMCE) and there no button thats says upload the SWF file? am i gonna paste the script you did? heres the screen shot of my page now
*MENU PAGE : http://i.imgur.com/Uoq1Uka.jpg
Hi roland
I’d recommend trying a plugin first. The snippet Magus has suggested needs to be carefully inserted into a functions.php file contained in a child theme. Not button will appear, your Media Library will just start accepting that file extension for upload. A plugin can do the same thing without the need for a child theme. There is no problem with child theming for this, a plugin option is just easier, why not try:
https://wordpress.org/plugins/allow-swf-upload/
Hi andrew! please see the link : http://i.imgur.com/pIvCerJ.jpg
The snipet that Magus created I’ll add it to my APPERANCE> CSS ? or APPERANCE> EDITOR? im sorry do I need to install the child theme? I clicked the link you gave me a while ago the child theme but I dont understand, should I install it or I just need to clicked some button to activate the child theme? do you have tutorial about chiled theme on how to use it? Im so sorry
Thanks for the feedback.
To confirm: Please don’t use a child theme for this, rather use a plugin. It’ll be much simpler:
https://wordpress.org/plugins/allow-swf-upload/
Install the above plugin, you can even go to Plugins > Add New and just search for “allow swf upload”. Once activated you will be able to upload your SWF file to the Media Library.
Just checked your image attachment now.
Great, now that you’re running the recommended plugin there is no need to child theme or add snippets. That’s done.
Please could you go to Media, browse to the SWF file and paste the link here. I’ll try testing on my side to see what’s going on there. Will be with you ASAP. Thanks.
Hi andrew, thanks! heres the URL link, but this is just trial file I just want to see the look
http://chiaraspastry.com/wp-content/uploads/2015/04/Untitled-2.swf
Not really winning this side.
Would you perhaps try the following option:
https://wordpress.org/plugins/anywhere-flash-embed/
Place your flash file in your WordPress root folder via FTP or hosting file manager, then use the shortcode the above plugin provides to insert your file into the Text tab or a page or post:
Perhaps also de-activate FitVids at Appearance > Theme Settings > Layout.
Thanks
Andrew do you mean I’ll have to upload again my SWF file to Media folder?, Sorry I dont get you when you say place it on wordpress folder via FTP or hosting file manager. I dont know where is that FTP of hosting manager? my hosting is bluehost you mean ill login and from there there is a button of upload?
There are two challenges we’re working through:
1. Being able to upload Flash to the Media Library.
2. Embedding Flash objects.
I was suggesting uploading to the site root to avoid problem 1. But let’s rather try this:
1. Install and activate: https://wordpress.org/plugins/anywhere-flash-embed/
2. Try this shortcode in the Text tab of a page:
[swf src=\”http://chiaraspastry.com/wp-content/uploads/2015/04/Untitled-2.swf\” width=600 height=300]
Adjust width height as required.
3. Before doing point 2, de-activate FitVids.js at Appearance > Theme Settings > Layout.
Thanks