{"id":14707,"date":"2011-09-01T15:16:30","date_gmt":"2011-09-01T15:16:30","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/make-safe-for-work\/"},"modified":"2011-09-01T15:16:55","modified_gmt":"2011-09-01T15:16:55","slug":"make-safe-for-work","status":"closed","type":"plugin","link":"https:\/\/tw.wordpress.org\/plugins\/make-safe-for-work\/","author":8205170,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.1","stable_tag":"0.1","tested":"3.2.1","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Make Safe For Work","header_author":"Ben Irvin","header_description":"","assets_banners_color":"","last_updated":"2011-09-01 15:16:55","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/innerdvations.com\/","header_plugin_uri":"http:\/\/innerdvations.com\/plugins\/make-safe-for-work\/","header_author_uri":"http:\/\/innerdvations.com\/","rating":5,"author_block_rating":0,"active_installs":10,"downloads":1163,"num_ratings":0,"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":["0.1"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[41994,9429,41993],"plugin_category":[],"plugin_contributors":[80779],"plugin_business_model":[],"class_list":["post-14707","plugin","type-plugin","status-closed","hentry","plugin_tags-not-safe-for-work","plugin_tags-nsfw","plugin_tags-nsw","plugin_contributors-benirvin","plugin_committers-benirvin"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/make-safe-for-work.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Adds a shortcode for not-safe-for-work content that actually prevents loading of the\ninappropriate content from the server until requested by the user. Just wrap any offending\ncontent in [nsfw][\/nsfw] and your post will bypass even restrictive work filters.  Users\ncan then click a link that will reload the full uncensored version of the page.  By default,\ncensored text is padded to take up roughly the same amount of space as the original content.<\/p>\n\n<p>The first censored item in a post will be labeled \"[Not Safe for Work. Click to View.]\" and all\ncensored items after that will be labeled \"[NSFW]\" for brevity.<\/p>\n\n<p>If you want to force long or short forms instead of using long first and short after,\njust define MSFW_USE_FORM as either 'long' or 'short' in your functions.php like so:\ndefine('MSFW_USE_FORM','long');<\/p>\n\n<p>Using pad='false' you can disable padding of censored content:\n[nsfw pad='false']<\/p>\n\n<p>If you want to default padding to off, just define MSFW_PADDING as false in your functions.php:\ndefine('MSFW_PADDING',false);<\/p>\n\n<p>Using 'type', you can choose method of censorship:\n[nsfw type='reload']    # Default method. Click reloads page with revealed content.\n[nsfw type='deleted']   # NEVER show content. Note that it still appears in areas of your sitethat don't filter shortcodes.\n[nsfw type='spoiler']   # content is just hidden, rollover reveals content. Actually works with images\/links\/different color text.\n[nsfw type='comment']   # content is in an html comment, nothing is displayed on site.<\/p>\n\n<p>If you want to change the default type, just define MSFW_DEFAULT_TYPE in your functions.php:\ndefine('MSFW_DEFAULT_TYPE','spoiler');<\/p>\n\n<p>You can change any of the text either via translation or the following way:\ndefine('MSFW_LONG_FORM','[Not Safe for Work. Click to View.]');\ndefine('MSFW_SHORT_FORM','[NSFW]');\ndefine('MSFW_DELETED','[redacted]');\ndefine('MSFW_PAD_STR','&nbsp; ');<\/p>\n\n<p>This is the first release of this plugin.  The following features are not currently implemented\nbut are planned for future versions:\n* blacked-out area to match content size and shape exactly\n* blacked-out area checks and explains if there are images hidden or just text\n* automatic PICS-Label meta tags on posts that use [nsfw]\n* javascript \"click to view\" options<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Use the [nsfw] or [msfw] shortcode to flag your content as not-safe-for-work<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Is this compatible with the original NSFW plugin (http:\/\/wordpress.org\/extend\/plugins\/nsfw\/)?<\/dt>\n<dd><p>Yes. If you have that one installed, we use [msfw] (Make Safe For Work) instead of [nsfw] so that\nyou can have access to both methods depending on how you want to censor your content.<\/p><\/dd>\n<dt>This plugin does a lot more than just nsfw, can you change the shortcode to [new_shortcode] instead?<\/dt>\n<dd><p>The shortcodes created are from an array called $msfw_shortcodes so if you want to rename\nit, just create your own array in your functions.php like so:\n$msfw_shortcodes = array('new_shortcode');<\/p>\n\n<p>Alternatively, if you want to shortcode directly to a type or padding setting, you can use something like this:\n$mswf_shortcodes = array('spoilers'=&gt;array('type'=&gt;'spoiler','pad'=&gt;false));<\/p><\/dd>\n<dt>Will this affect my search engine optimization?<\/dt>\n<dd><p>Some people say search engines could consider this method duplicate content and penalize you for it,\nbut realistically there won't be any difference.  Even though I don't personally believe that you'll be\npenalized for this, in a future version, I will include search engine directives to tell them to only index\none of the two versions of the page as well as an optional PICS-Label meta tag.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1<\/h4>\n\n<ul>\n<li>created options for types of censoring<\/li>\n<li>created options for padding<\/li>\n<li>checking if the other nsfw plugin already exists<\/li>\n<li>created shortcodes<\/li>\n<\/ul>","raw_excerpt":"Shortcode for nsfw content that doesn&#039;t load the inappropriate content from server until requested.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/14707","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=14707"}],"author":[{"embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/benirvin"}],"wp:attachment":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=14707"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=14707"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=14707"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=14707"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=14707"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=14707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}