{"id":12166,"date":"2011-02-15T20:26:39","date_gmt":"2011-02-15T20:26:39","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/jj-swfobject\/"},"modified":"2011-03-07T04:15:45","modified_gmt":"2011-03-07T04:15:45","slug":"jj-swfobject","status":"publish","type":"plugin","link":"https:\/\/gl.wordpress.org\/plugins\/jj-swfobject\/","author":7532944,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.5","stable_tag":"1.0.5","tested":"3.1.4","requires":"2.8","requires_php":"","requires_plugins":"","header_name":"JJ SwfObject","header_author":"JJ Coder","header_description":"","assets_banners_color":"","last_updated":"2011-03-07 04:15:45","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.redcross.org.nz\/donate","header_plugin_uri":"","header_author_uri":"","rating":5,"author_block_rating":0,"active_installs":30,"downloads":8759,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2","1.0.4","1.0.5"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1566869","resolution":"1","location":"plugin"}},"screenshots":{"1":"Widget controls."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[206,80,6124,6123,162],"plugin_category":[43,50],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-12166","plugin","type-plugin","status-publish","hentry","plugin_tags-flash","plugin_tags-shortcode","plugin_tags-swf","plugin_tags-swfobject","plugin_tags-widget","plugin_category-customization","plugin_category-media","plugin_committers-jjcoder"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/jj-swfobject.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/jj-swfobject\/trunk\/screenshot-1.png?rev=1566869","caption":"Widget controls."}],"raw_content":"<!--section=description-->\n<p>Allows you to insert a swf file using a widget or a shortcode.<\/p>\n\n<p>You can specify the following parameters:<\/p>\n\n<p>NOTE: sc means shortcode:<\/p>\n\n<ul>\n<li>Title: Title. Leave blank for no title. (sc: title=\"My Title\")<\/li>\n<li>Alternate Content. Content to display if can't embed flash. (sc: alt=\"Flash required\")<\/li>\n<li>HTML id: HTML id to use. Defaults to 'jj_swfobject'. Needs to be different for multiple instances on same page. (sc: html_id=\"jj_swfobject\")<\/li>\n<li>Path: Rath to swf. (sc: title=\"\")<\/li>\n<li>Width: Width of swf. (sc: width=\"\")<\/li>\n<li>Height: Height of swf. (sc: height=\"\")<\/li>\n<li>Version: Flash version required. Defaults to '9.0.0'. (sc: version=\"\")<\/li>\n<li>Flashvars: Fashvars for swf. eg, {name1:\"hello\",name2:\"world\",name3:\"foobar\"} (sc: flashvars=\"\")<\/li>\n<li>Params: Params for swf. eg, {menu:\"false\"} (sc: params=\"\")<\/li>\n<li>Attributes: Attributes for swf. eg, {id:\"myDynamicContent\",name:\"myDynamicContent\"} (sc: attributes=\"\")<\/li>\n<\/ul>\n\n<p>Check out swfobject documentation for more info. (http:\/\/code.google.com\/p\/swfobject\/wiki\/documentation)<\/p>\n\n<p>Shortcode Examples:<\/p>\n\n<ul>\n<li>[jj-swfobject path=\"\/mypath\" html_id=\"banner\" width=\"200\" height=\"200\" version=\"9.0.0\"]<\/li>\n<\/ul>\n\n<p>Try out my other plugins:<\/p>\n\n<ul>\n<li>JJ NextGen JQuery Slider (http:\/\/wordpress.org\/extend\/plugins\/jj-nextgen-jquery-slider\/)<\/li>\n<li>JJ NextGen JQuery Carousel (http:\/\/wordpress.org\/extend\/plugins\/jj-nextgen-jquery-carousel\/)<\/li>\n<li>JJ NextGen JQuery Cycle (http:\/\/wordpress.org\/extend\/plugins\/jj-nextgen-jquery-cycle\/)<\/li>\n<li>JJ NextGen Unload (http:\/\/wordpress.org\/extend\/plugins\/jj-nextgen-unload\/)<\/li>\n<li>JJ NextGen Image List (http:\/\/wordpress.org\/extend\/plugins\/jj-nextgen-image-list\/)<\/li>\n<\/ul>\n\n<h3>Contributors<\/h3>\n\n<!--section=installation-->\n<p>Please refer to the description for requirements and how to use this plugin.<\/p>\n\n<ol>\n<li>Copy the entire directory from the downloaded zip file into the \/wp-content\/plugins\/ folder.<\/li>\n<li>Activate the \"JJ SwfObject\" plugin in the Plugin Management page.<\/li>\n<li>Refer to the description to use the plugin as a widget and or a shortcode.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<p>Question:<\/p>\n\n<ul>\n<li>How can I upload swf files using wordpress Media?<\/li>\n<\/ul>\n\n<p>Answer:<\/p>\n\n<ul>\n<li><p>Try adding code below to your functions.php file<\/p>\n\n<p>if ( ! function_exists( 'add_my_mime_types' ) ) :\nfunction add_my_mime_types($existing_mimes=array()) {\n  $existing_mimes['swf'] = 'application\/x-shockwave-flash';\n  return $existing_mimes;\n}\nendif;\nadd_filter('upload_mimes', 'add_my_mime_types');<\/p><\/li>\n<\/ul>\n\n<p>Question:<\/p>\n\n<ul>\n<li>How can I use plugin inside normal PHP code?<\/li>\n<\/ul>\n\n<p>Answer:<\/p>\n\n<ul>\n<li>echo do_shortcode('[jj-swfobject path=\"\/mypath\" html_id=\"banner\" width=\"200\" height=\"200\" version=\"9.0.0\"]');<\/li>\n<\/ul>\n\n<p>Question:<\/p>\n\n<ul>\n<li>Doesn't work after upgrade? or Doesn't work with this theme?<\/li>\n<\/ul>\n\n<p>Answer:<\/p>\n\n<ul>\n<li>Please check that you don't have two versions of jQuery loading, this is the problem most of the time. Sometimes a theme puts in <br \/> tags at the end of newlines aswell.<\/li>\n<\/ul>\n\n<!--section=changelog-->\n<ul>\n<li>1.0.5: FAQ.<\/li>\n<li>1.0.4: Donate to Christchurch Quake.<\/li>\n<li>1.0.2: Readme.<\/li>\n<li>1.0.1: FAQ.<\/li>\n<li>1.0.0: First version.<\/li>\n<\/ul>","raw_excerpt":"Allows you to insert a swf file using a widget or a shortcode using the swfobject library.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/12166","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=12166"}],"author":[{"embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jjcoder"}],"wp:attachment":[{"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=12166"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=12166"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=12166"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=12166"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=12166"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=12166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}