{"id":9940,"date":"2010-07-29T20:25:58","date_gmt":"2010-07-29T20:25:58","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/custom-word-cloud\/"},"modified":"2011-07-20T15:37:22","modified_gmt":"2011-07-20T15:37:22","slug":"custom-word-cloud","status":"closed","type":"plugin","link":"https:\/\/nb.wordpress.org\/plugins\/custom-word-cloud\/","author":6667164,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.3","stable_tag":"0.4","tested":"3.0.5","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Custom Word Cloud","header_author":"Bryan Nielsen","header_description":"","assets_banners_color":"","last_updated":"2011-07-20 15:37:22","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=EC26C3EBFD8A8","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":20,"downloads":5713,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"0.2":"<p>Fixed major bug where use of mod_rewrite rules for pretty URLs caused the relative links for images and download to fail.<\/p>"},"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.4"],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1539087","resolution":"2","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1539087","resolution":"1","location":"plugin"}},"screenshots":{"1":"Word cloud from page content.","2":"Word cloud from a form."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[618,133],"plugin_category":[50],"plugin_contributors":[82916],"plugin_business_model":[],"class_list":["post-9940","plugin","type-plugin","status-closed","hentry","plugin_tags-cloud","plugin_tags-image","plugin_category-media","plugin_contributors-bnielsen","plugin_committers-bnielsen"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/custom-word-cloud.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/custom-word-cloud\/trunk\/screenshot-1.png?rev=1539087","caption":"Word cloud from page content."},{"src":"https:\/\/ps.w.org\/custom-word-cloud\/trunk\/screenshot-2.png?rev=1539087","caption":"Word cloud from a form."}],"raw_content":"<!--section=description-->\n<p>The custom word cloud plugin will generate word cloud images based on page\ncontent or the contents of a form POST input named \"content\". The cloud is\nspecified using shortcode tags on the page where the content or form exist.<\/p>\n\n<h4>Example 1<\/h4>\n\n<p>As an example the following entered into a WordPress page will result in a\npage with a word cloud image displayed above the paragraph that is a link\nmap with google searches for each word in the cloud:<\/p>\n\n<pre><code>[cwcloud]  \n[cwcimage]  \n[cwcmap]\n\nWe the People  of the United States, in Order to form a more perfect Union,\nestablish Justice, insure domestic Tranquility, provide for the common\ndefence, promote the general Welfare, and secure the Blessings of Liberty to\nourselves and our Posterity, do ordain and establish this Constitution for the\nUnited States of America.\n\n[\/cwcloud]\n<\/code><\/pre>\n\n<h4>Example 2<\/h4>\n\n<p>Another example where a user may enter their own paragraph of text and\ngenerate a custom word cloud:<\/p>\n\n<pre><code>[cwcloud post=\"true\" id=\"mycloud\"]  \n[cwcmap]  \n[cwcimage]  \n&lt;form method=\"post\"&gt;  \n&lt;textarea cols=\"40\" rows=\"10\" name=\"content\"&gt;[cwcpostcontent]&lt;\/textarea&gt;  \n[cwcform]  \n&lt;input type=\"submit\" value=\"Build Cloud\" \/&gt;\n&lt;\/form&gt;\n[\/cwcloud]  \n<\/code><\/pre>\n\n<h4>Example 3<\/h4>\n\n<p>An example of a form with attributes set to some custom default settings and\nthe id attribute is not set so a fresh id will be generated for each user\ncreated word cloud:<\/p>\n\n<pre><code>[cwcloud post=\"true\" palette=\"#046, #fe0, #2f2, #82f\" width=\"500\" height=\"250\"\nword_limit=\"30\"]\n[cwcimage]\n[cwcdownloadlink]\n&lt;form method=\"post\"&gt;&lt;textarea cols=\"40\" rows=\"10\"\nname=\"content\"&gt;[cwcpostcontent]&lt;\/textarea&gt;\n&lt;input type=\"submit\" value=\"Build Cloud\" \/&gt; [cwcform]\n&lt;\/form&gt;\n[\/cwcloud]\n<\/code><\/pre>\n\n<h4>Attributes<\/h4>\n\n<p>The [cwcloud] tag accepts multiple attributes and there are some custom\nshortcode tags that can be used inside the enclosed [cwcloud][\/cwcloud] tags:<\/p>\n\n<p>attributes:<br \/>\nid - specify an id to use for this word cloud image<br \/>\ni.e. \"mycloud\"<\/p>\n\n<p>old_age - number of seconds before old images are removed from the cache (default old age is one week)<br \/>\ni.e. \"86400\"<\/p>\n\n<p>seconds_to_live - seconds before the cached image will be redrawn (default seconds to live is 5 seconds)<br \/>\ni.e. \"60\"<\/p>\n\n<p>width - width of the cloud image<br \/>\ni.e. \"300\"<\/p>\n\n<p>height - height of the cloud image<br \/>\ni.e. \"200\"<\/p>\n\n<p>post - set to \"true\" if data will be posted from a form<br \/>\ni.e. \"true\"<\/p>\n\n<p>palette - color palette in web hex codes, minimum of two colors, they can be 3 digit or 6 digit web type hex codes<br \/>\ni.e. #fff, #0ef582, #00f<\/p>\n\n<p>angle - the angle to tilt each word, \"random\" or 0 to 360<br \/>\ni.e. \"45\"<\/p>\n\n<p>double_angle - randomly flip words to the opposite angle<br \/>\ni.e. \"true\"<\/p>\n\n<p>word_limit - maximum number of words in cloud<br \/>\ni.e. \"40\"<\/p>\n\n<p>font_file - the ttf font file in the fonts directory to use<br \/>\ni.e. \"Dustismo_Roman.ttf\"<\/p>\n\n<p>word_margin - margin around each word in cloud<br \/>\ni.e. \"5\"<\/p>\n\n<p>exclude_words - words to exclude from counting<br \/>\ni.e. \"this,that,them,you\"<\/p>\n\n<p>charlist - additional characters to accept within words, i.e. accent\ncharacters<br \/>\ni.e. \"\u00fc\u00f6\u00e4\u00df\"<\/p>\n\n<h4>Shortcodes<\/h4>\n\n<p>shortcodes:<br \/>\n[cwcloud] [\/cwcloud] - must always be used as an enclosed short code<\/p>\n\n<p>[cwcid] - the id of the cloud image, useful in forms<\/p>\n\n<p>[cwcform] - provides cloud parameter form elements ready to use in a form<\/p>\n\n<p>[cwcform_angle] - provides the angle form input element<\/p>\n\n<p>[cwcform_double_angle] - provides the double_angle form checkbox<\/p>\n\n<p>[cwcform_font_file] - provides the form font file select<\/p>\n\n<p>[cwcform_width] - provides the form width input<\/p>\n\n<p>[cwcform_height] - provides the form height input<\/p>\n\n<p>[cwcform_word_margin] - provides the word margin input<\/p>\n\n<p>[cwcform_palette] - provides the form input for the color palette<\/p>\n\n<p>[cwcform_word_limit] - provides the form input for the word limit<\/p>\n\n<p>[cwcform_exclude_words] - provides the form input for excluded words<\/p>\n\n<p>[cwcpostcontent] - provides the posted content, useful for a form textarea<\/p>\n\n<p>[cwcimage] - provides an  tag pointing to the cloud image<\/p>\n\n<p>[cwcmap] - provides a  that maps the image to a google search<\/p>\n\n<h4>Notes<\/h4>\n\n<p>The cached images are stored in a subdirectory of the plugin's directory named\ncache.<\/p>\n\n<p>Font files for the cloud are stored in a subdirectory of the plugin's\ndirectory named fonts.<\/p>\n\n<!--section=installation-->\n<p>Unzip the custom-word-plugin.zip file and copy the resulting custom-word-cloud directory to your\nWordPress plugins directory.<\/p>\n\n<p>Make sure the web server can write to the custom-word-cloud\/cache\/ directory.<\/p>\n\n<p>And upload any TTF font files you want to use into the custom-word-cloud\/fonts\/ directory.<\/p>\n\n<p>Activate the plugin and create a page with the appropriate shortcode tags.<\/p>\n\n<p>Enjoy. ;)<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>Why are some of the letters in some words are covering up other words and letters?<\/dt>\n<dd><p>There is a long running bug in the PHP imagettfbbox() function that calculates\nthe coordinates of the box around a string drawn with a TTF font where the\nletters that drop below the baseline, like the lower case letter p, fall\noutside the bounding box. This has been fixed in recent versions of PHP but\nfor older versions you can create a larger word margin in the attributes to as\na temporary fix.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.2<\/h4>\n\n<ul>\n<li>Added stripping of slashes from $_POST['content'] if magic quotes is on.  <\/li>\n<li>Fixed a bug where colors used exceeded the number in the palette and resulted in black words even though the color was not specified in the palette.  <\/li>\n<li>Added the siteurl to image and link URLs so the plugin will work with mod_rewrite.  <\/li>\n<\/ul>\n\n<h4>0.3<\/h4>\n\n<ul>\n<li>Added an image map function that links words in the image to a google search  <\/li>\n<\/ul>\n\n<h4>0.4<\/h4>\n\n<ul>\n<li>Added the charlist attribute that will enable UTF8 accent characters<\/li>\n<\/ul>","raw_excerpt":"Creates custom word cloud images based on page content or POST variable named content.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/9940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=9940"}],"author":[{"embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/bnielsen"}],"wp:attachment":[{"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=9940"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=9940"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=9940"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=9940"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=9940"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=9940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}