1. 9 years, 6 months ago Magus
    Hi, I Work Here

    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

  2. 9 years, 6 months ago roland

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

  3. 9 years, 6 months ago Magus
    Hi, I Work Here

    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

  4. 9 years, 6 months ago Magus
    Hi, I Work Here

    My error with typing

    function add_swf($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','add_swf');
    

    That should be better

    Magus

  5. 9 years, 6 months ago roland

    thanks Magus, ill that later, thanks you so much for the support :)

  6. 9 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    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

  7. 9 years, 5 months ago roland

    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

  8. 9 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    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/

  9. 9 years, 5 months ago roland

    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

  10. 9 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    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.

  11. 9 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    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.

  12. 9 years, 5 months ago roland

    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

  13. 9 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    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:

    [swf src=\"http://chiaraspastry.com/Untitled-2.swf\" width=600 height=300]
    

    Perhaps also de-activate FitVids at Appearance > Theme Settings > Layout.

    Thanks

  14. 9 years, 5 months ago roland

    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?

  15. 9 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    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

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More