{"id":5966,"date":"2009-06-28T13:04:29","date_gmt":"2009-06-28T13:04:29","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/dragons-printhint\/"},"modified":"2009-08-28T12:41:25","modified_gmt":"2009-08-28T12:41:25","slug":"dragons-printhint","status":"publish","type":"plugin","link":"https:\/\/ur.wordpress.org\/plugins\/dragons-printhint\/","author":3278363,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.4.1.1","stable_tag":"0.4.1.1","tested":"2.8.4","requires":"2.7.1","requires_php":"","requires_plugins":"","header_name":"Dragons Print-Hint","header_author":"Roy Kronester","header_description":"","assets_banners_color":"","last_updated":"2009-08-28 12:41:25","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=6387192","header_plugin_uri":"http:\/\/www.kroni.de\/?p=766","header_author_uri":"http:\/\/www.kronester.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2931,"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":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.2","0.3","0.3.1","0.3.2","0.3.3","0.3.4","0.3.5","0.3.6","0.4","0.4.1","0.4.1.1"],"block_files":[],"assets_screenshots":{"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":"1566836","resolution":"2","location":"plugin"},"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"1566836","resolution":"1","location":"plugin"}},"screenshots":{"1":"Customize your hint text","2":"Sample text shown in print preview"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[131,2972,4650,15415,3153],"plugin_category":[44],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-5966","plugin","type-plugin","status-publish","hentry","plugin_tags-comment","plugin_tags-copyright","plugin_tags-hint","plugin_tags-license","plugin_tags-print","plugin_category-discussion-and-community","plugin_committers-kronester"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/dragons-printhint.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/dragons-printhint\/trunk\/screenshot-1.jpg?rev=1566836","caption":"Customize your hint text"},{"src":"https:\/\/ps.w.org\/dragons-printhint\/trunk\/screenshot-2.jpg?rev=1566836","caption":"Sample text shown in print preview"}],"raw_content":"<!--section=description-->\n<p>There are several reasons to print some hints on your posts. These hints will never been seen on the screen, but you want it to show on paper.<\/p>\n\n<h4>Feature-List:<\/h4>\n\n<ul>\n<li>Definition of a hint text, only appearing on printouts.\nYou can use any html tag that can be placed within <code>&lt;p&gt; ... &lt;\/p&gt;<\/code> to format your hints.<\/li>\n<li>Comfortable definition of hint text via admin settings panel.<\/li>\n<li>Hiding user defined areas of posts \/ pages - see Example 3 in Arbitrary section<\/li>\n<li>ShortTag [PrintHint] for free definition of post-blocks show only on screen\/print output<\/li>\n<li>Definition of CSS classes (.classname) in a comma separated list. These classes don't appear on printouts.<\/li>\n<li>Definition of CSS IDs (#idname) in a comma separated list. These IDs don't appear on printouts.<\/li>\n<li>Style definition for printout border frame<\/li>\n<li>Multilanguage Support: English, Deutsch, Russian already implemented<\/li>\n<\/ul>\n\n<p>The plugin hooks into <em>the_content<\/em> filter. The <em>the_excerpt<\/em> filter hook is used to remove the hint from displaying on search result page.<\/p>\n\n<h3>*Scenarios*<\/h3>\n\n<p>You want to show a text only online?<\/p>\n\n<blockquote>\n  <p><em>[PrintHint show_on=\"screen\"]<\/em> ... appears only on screen ... <em>[\/PrintHint]<\/em><\/p>\n<\/blockquote>\n\n<p>You want to show a text only on printout?<\/p>\n\n<blockquote>\n  <p><em>[PrintHint show_on=\"print\"]<\/em> ... appears only on printouts ... <em>[\/PrintHint]<\/em><\/p>\n<\/blockquote>\n\n<h3>*Hint*<\/h3>\n\n<p>Beware of the closing tag <em>[\/PrintHint]<\/em> as well as the parameter <em>show_on<\/em>, they are <em>REQUIRED<\/em>!\nIf you don't apply the parameter or give them a wrong argument, the block content will not be displayed, anyway.<\/p>\n\n<p>Removing the whole border css style from config page will activate the default style defined in fdrag_phi_print.css<\/p>\n\n<h3>Arbitrary section<\/h3>\n\n<h4>Example 1: Hint-Text<\/h4>\n\n<pre><code>&lt;center&gt;&lt;b&gt;Achtung&lt;\/b&gt; - Urheberrechtshinweis! &lt;br&gt;\nDa dieses Blog unter einer Creative Commons Lizenz steht, \nstellt das Ausdrucken f\u00fcr Sie kein Problem dar. &lt;br&gt;\nBei Webseiten die nicht unter einer solchen oder \u00e4hnlichen Lizenz stehen, \nkann das Ausdrucken zu einer Urheberrechtsverletzung f\u00fchren.&lt;\/center&gt;\n<\/code><\/pre>\n\n<h4>Example 2: CSS Class\/ID hiding<\/h4>\n\n<pre><code>#header, #top, #footer, #bottom, #sidebar,\n.commentheader, #commentform\n<\/code><\/pre>\n\n<h4>Example 3: Hide some portion of a post \/ page while printing<\/h4>\n\n<p>Within the post define an area with a userdefined and no more referenced ID.\nThis ID don't have to be defined within any CSS stylesheet. It's just for Dragons Print-Hint.<\/p>\n\n<pre><code>.. some content of your post\n&lt;div id=\"RemoveOnPrint\"&gt; ... here is some content of the post ... &lt;\/div&gt;\n.. some more content of your post\n<\/code><\/pre>\n\n<p>If you define this ID (#RemoveOnPrint) in the \"hide css blocks\" list (remember: comma separate more then one value)\nyou can see the post with all content but while printing the div tag with id=\"RemoveOnPrint\" ist hidden.<\/p>\n\n<h4>Example 4: Using shortcodes<\/h4>\n\n<p>If there are areas within your post to explicitly hide\/show on screen\/print output, \nyou can use the shortcode<\/p>\n\n<blockquote>\n  <p><code>[PrintHint show_on=\"screen|print\"] .... [\/PrintHint]<\/code>.<\/p>\n<\/blockquote>\n\n<h3>Show graphical link only online, on printouts show the URL instead.<\/h3>\n\n<blockquote>\n  <p><code>Here is my post text \n   [PrintHint show_on=\"screen\"]&lt;a href=\"some url\"&gt;&lt;img src=\"myImage\" \/&gt;&lt;\/a&gt;[\/PrintHint]\n   [PrintHint show_on=\"print\"]http:\/\/myUrl[\/PrintHint]&lt;br&gt;\n   and here is the rest of the text.<\/code><\/p>\n<\/blockquote>\n\n<p>The Parameter <em>show_on<\/em> can be used to define the apperance of the content between the shortcode tags.<br \/>\nIf you define <em>show_on=\"screen\"<\/em> the content part will only be shown an screen outputs. \nOtherwise, the <em>show_on=\"print\"<\/em> parameter will show the hint only on printouts.<\/p>\n\n<blockquote>\n  <p>Remark: If you dont't use the 'show_on' parameter or forget to close the shortcode tag, there will be no output!<\/p>\n<\/blockquote>\n\n<p>= Example 5: Using your own border style for print-hint\nJust enter the border attributes (see http:\/\/www.w3schools.com\/css\/pr_border.asp for usage example)\nwithout the semicolon. e.g. 5px solid red<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Unzip <code>DragonsPrintHint.zip<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Customize the hint text in admin panel settings menu<\/li>\n<li>Verify your text within the print preview of your browser<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>What kind of CSS classes \/ ids can i hide?<\/dt>\n<dd><p>You can insert all CSS classes \/ ids into the input box. These comma separated list\nwill be inserted in a style tag with display:none;\nBe aware that doing some experiments without using your brain can hide the whole page while printing!<\/p><\/dd>\n<dt>How dow I use the shortcode tags?<\/dt>\n<dd><p>You can enter the shortcode tag like a normal HTML tag in graphic as well as HTML mode within your post\/page editor.\nThe only thing to do, is to specify the media type when the content between the opening and the closing tag should be shown.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.2<\/h4>\n\n<ul>\n<li>Remove hint text in search results. <\/li>\n<li>therefore there is no hint if you print the results!<\/li>\n<\/ul>\n\n<h4>0.3<\/h4>\n\n<ul>\n<li>Changed the file structure (css moved to subfolder)<\/li>\n<li>Added functionality for hiding CSS classes \/ ids while printing<\/li>\n<\/ul>\n\n<h4>0.3.1<\/h4>\n\n<p>CSS subfolder was not deployed with 0.3. Generating new version with css subfolder.<\/p>\n\n<h4>0.3.2<\/h4>\n\n<ul>\n<li>FIXED: Remove PrintHint on RSS-Feeds (Excerpt\/Content)<\/li>\n<li>FIXED: Directory structure was wrong in systems which was case sensitive<\/li>\n<li>NEW:   Insert base support for I18N <\/li>\n<\/ul>\n\n<h4>0.3.3<\/h4>\n\n<ul>\n<li>NEW:   Insert Multilanguage support: English, Deutsch<\/li>\n<li>FIXED: Display Excerpt with own filter function allows the 55 words output now<\/li>\n<li>IMPROVED: More standardized Constants for path definitions <\/li>\n<li>IMPROVED: Added init action for initializing and initialize option on activation<\/li>\n<\/ul>\n\n<h4>0.3.4<\/h4>\n\n<ul>\n<li>NEW:   Added russian language file<br \/>\n     Russian translate by: <a href=\"http:\/\/www.fatcow.com\">Fat Cow<\/a> (http:\/\/www.fatcow.com)<\/li>\n<\/ul>\n\n<h4>0.3.5<\/h4>\n\n<ul>\n<li>NEW:   Added shortcode tags [PrintHint show_on=\"screen|print\"] ... [\/PrintHint]<\/li>\n<\/ul>\n\n<h4>0.3.6<\/h4>\n\n<ul>\n<li>NEW:   Added Checkbox to activate \/ deactivate header hint<\/li>\n<li>NEW:   Added save confirmation message<\/li>\n<li>FIXED: Newline issue with shortcodes. Changed div to span. Set css-display to inline.<\/li>\n<\/ul>\n\n<h4>0.4<\/h4>\n\n<ul>\n<li>NEW:   Added CSS style definition for printout border frame to config page.<\/li>\n<li>FIXED: Quote handling while defining within print message textbox. (backslash removed)<\/li>\n<\/ul>\n\n<h4>0.4.1<\/h4>\n\n<ul>\n<li>FIXED: print hint removed on pages without css style sheets. (e.g. RSS feeds)\n     CSS styles changed to hide the div box as default directly on the object.<\/li>\n<\/ul>\n\n<h4>0.4.1.1<\/h4>\n\n<ul>\n<li>FIXED: typing error in style definition for printhint block fixed.<\/li>\n<\/ul>","raw_excerpt":"The plugin prints a hint text","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ur.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/5966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ur.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ur.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ur.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=5966"}],"author":[{"embeddable":true,"href":"https:\/\/ur.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/kronester"}],"wp:attachment":[{"href":"https:\/\/ur.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=5966"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ur.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=5966"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ur.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=5966"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ur.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=5966"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ur.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=5966"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ur.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=5966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}