Hi,
using plugin, it appears this writes: playback, time, next cue on the flash file… How can I remove them??
Something like this in functions.php for Theme Hybrid:
add_action( 'wp_print_scripts', 'deregister_swfplayer', 100 );
function deregister_swfplayer() {
if ( !in_category( 'animation' )) {
wp_deregister_script( 'wp-swfobject' );
}
}
Thanks!
]]>This plugin works well for me, and it was easy to get it to embed a Flash movie in a post.
I had a requirement to embed it in my own plugin, on an admin page (i.e. within /wp-admin). Embedding using XHTML worked, but the SWFObject approaches didn’t (whether local or on Google).
I followed the instructions on the Codex and put the following code in my own plugin:
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
if (is_plugin_active('wp-swfobject/wp-swfobject.php')) {
add_action('admin_head', 'wpswfAddheader');
}
Hope this helps.
Nick.
Update wp-swfobject.php lines 36-50:
add_option("swf_version", $wpswf_params["swf_version"]);
add_option("swf_bgcolor", $wpswf_params["swf_bgcolor"]);
add_option("swf_wmode", $wpswf_params["swf_wmode"]);
add_option("swf_menu", $wpswf_params["swf_menu"]);
add_option("swf_quality", $wpswf_params["swf_quality"]);
add_option("swf_fullscreen", $wpswf_params["swf_fullscreen"]);
add_option("swf_scriptaccess", $wpswf_params["swf_scriptaccess"]);
add_option("swf_align", $wpswf_params["swf_align"]);
add_option("swf_message", $wpswf_params["swf_message"]);
add_option("swf_file", $wpswf_params["swf_file"]);
add_option("swf_showinfo", $wpswf_params["swf_showinfo"]);
add_option("swf_annotations", $wpswf_params["swf_annotations"]);
add_option("swf_loading", $wpswf_params["swf_loading"]);
add_option("swf_msgiphone", $wpswf_params["swf_msgiphone"]);
Update wp-swfobject.php line 448:
add_options_page('WP-SWFObject Options', 'WP-SWFObject', 'manage_options', basename(__FILE__), 'wpswfOptionsPage');
This will remove the has_cap error and add_option deprecated errors.
]]>Im getting this error
Warning: Missing argument 2 for wp_swfobject_echo(), called in
How to make my SWF animation to stop at start of movie?
Any ideas?