{"id":2908,"date":"2008-06-13T12:45:30","date_gmt":"2008-06-13T12:45:30","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/jqs-random\/"},"modified":"2008-06-13T16:17:44","modified_gmt":"2008-06-13T16:17:44","slug":"jqs-random","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/jqs-random\/","author":171552,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.1.1","stable_tag":"1.1","tested":"2.5","requires":"2.5","requires_php":"","requires_plugins":"","header_name":"jqs-random","header_author":"James Q. Stansfield","header_description":"","assets_banners_color":"","last_updated":"2008-06-13 16:17:44","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/iridani.com\/projects\/wordpress-plugins","header_plugin_uri":"http:\/\/iridani.com\/projects\/wordpress-plugins\/jqs-random","header_author_uri":"http:\/\/iridani.com\/authors\/jqs","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1125,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[529,5055,354,244,21128],"plugin_category":[59],"plugin_contributors":[129497],"plugin_business_model":[],"class_list":["post-2908","plugin","type-plugin","status-closed","hentry","plugin_tags-content","plugin_tags-quote","plugin_tags-quotes","plugin_tags-random","plugin_tags-random-words","plugin_category-utilities-and-tools","plugin_contributors-jqs","plugin_committers-jqs"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/jqs-random.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>I developed this little plugin as learning tool for delving into Wordpress v2.5's new shortcodes functionality, along with getting AJAX to work on the administration pages for a better interface. (If anything it is a great learning tool for anyone wanting to write a plugin.)<\/p>\n\n<p>This plugin allows for any number of phrases to be used in a random manner about your website. Simply install and input your phrases in the option page and place your tags.<\/p>\n\n<p>Future development:\n*   Multiple random lists\n*   Ability to choose a specific phrase by id<\/p>\n\n<h3>Usage<\/h3>\n\n<p>The plugin can be called via three methods, two are for themes, and the third is for within a post\/page's content.<\/p>\n\n<p>Theme methods:<\/p>\n\n<pre><code>&lt;?php jqs_random(); ?&gt;\n&lt;?php jqs_get_random(); ?&gt;\n<\/code><\/pre>\n\n<p>Both functions take one attribute $options which is an array that may contain any of the following boolean values:<\/p>\n\n<pre><code>\"stripwhitespace\" =&gt; 0, \"addslashes\" =&gt; 0, \"htmlspecialchars\" =&gt; 0\n<\/code><\/pre>\n\n<p>For inclusion within a post or page, use the new Shortcode;<\/p>\n\n<pre><code>[jqs-random]\n<\/code><\/pre>\n\n<p>and once again any of the three attributes can be added:<\/p>\n\n<pre><code>[jqs-random stripwhitespace=\"0\" addslashes=\"0\" htmlspecialchars=\"0\"]\n<\/code><\/pre>\n\n<p>The three attributes are modifiers to the output so that you can always put the data where you want:<\/p>\n\n<ul>\n<li>stripwhitespace -- will replace all spaces with underscores.<\/li>\n<li>addslashes -- will return data after it is passed thru PHP's addslashes() function.<\/li>\n<li>htmlspecialchars -- will return data after is is pass thru PHP's htmlspecialchars() function.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>Standard installation:<\/p>\n\n<ol>\n<li>Upload files to your <em>\/wp-content\/plugins\/<\/em> directory preserving the sub-folder structure.<\/li>\n<li>Activate the plugin via the 'Plugins' menu in WordPress.<\/li>\n<li>Add tags to your theme, posts and pages.<\/li>\n<\/ol>","raw_excerpt":"A simple random phrase plugin that can be used anywhere, via PHP or shortcodes.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/2908","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=2908"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jqs"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=2908"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=2908"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=2908"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=2908"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=2908"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=2908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}