{"id":1707,"date":"2007-03-31T11:29:01","date_gmt":"2007-03-31T11:29:01","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/vipers-plugins-used\/"},"modified":"2008-08-31T11:59:52","modified_gmt":"2008-08-31T11:59:52","slug":"vipers-plugins-used","status":"closed","type":"plugin","link":"https:\/\/br.wordpress.org\/plugins\/vipers-plugins-used\/","author":5279457,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.12","stable_tag":"trunk","tested":"","requires":"","requires_php":"","requires_plugins":"","header_name":"Viper's Plugins Used","header_author":"Viper007Bond","header_description":"","assets_banners_color":"","last_updated":"2008-08-31 11:59:52","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.viper007bond.com\/donate\/","header_plugin_uri":"http:\/\/www.viper007bond.com\/wordpress-plugins\/vipers-plugins-used\/","header_author_uri":"http:\/\/www.viper007bond.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":5659,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"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.12"],"block_files":[],"assets_screenshots":{"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":"1566820","resolution":"2","location":"plugin","width":904,"height":430},"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"1566820","resolution":"1","location":"plugin","width":904,"height":560}},"screenshots":{"1":"<p>Plugin's page in the admin area listing all activated plugins<\/p>","2":"<p>Edit displayed plugin description screen<\/p>"}},"plugin_section":[],"plugin_tags":[2391,521],"plugin_category":[36],"plugin_contributors":[77580],"plugin_business_model":[],"class_list":["post-1707","plugin","type-plugin","status-closed","hentry","plugin_tags-plugins","plugin_tags-statistics","plugin_category-analytics","plugin_contributors-viper007bond","plugin_committers-automattic"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/vipers-plugins-used.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/vipers-plugins-used\/trunk\/screenshot-1.jpg?rev=1566820","caption":"<p>Plugin's page in the admin area listing all activated plugins<\/p>"},{"src":"https:\/\/ps.w.org\/vipers-plugins-used\/trunk\/screenshot-2.jpg?rev=1566820","caption":"<p>Edit displayed plugin description screen<\/p>"}],"raw_content":"<!--section=description-->\n<p>Ever want to show your readers what plugins you have enabled on your site? If so, this plugin is for you. It allows you to list out all activated plugins in a table or unordered list as well as customize their descriptions.<\/p>\n\n<p>To see it in action, check out <a href=\"http:\/\/www.viper007bond.com\/about\/plugins-used\/\">the author's website<\/a>.<\/p>\n\n<p><em>Last Updated: September 15th, 2005<\/em><\/p>\n\n<h3><\/h3>\n\n<p>To output a table, use this code:<\/p>\n\n<pre><code>&lt;?php $viperspluginsused-&gt;output_table(); ?&gt;\n<\/code><\/pre>\n\n<p>The function parameters are:<\/p>\n\n<ul>\n<li>Table Properties (default is: width=\"100%\" border=\"1\" cellpadding=\"3\" cellspacing=\"3\") -- the other properties of the <\/li>\n<\/ul>\n\n<p>&lt;<\/p>\n\n<p>table&gt; tag. Set to a space if you want no other properties. Example value: id=\"pluginstable\" which results in<\/p>\n\n<p>&lt;<\/p>\n\n<p>table id=\"pluginstable\"&gt;<\/p>\n\n<ul>\n<li><p>Display Description (default = TRUE) -- makes a column for the plugin descriptions and outputs them<\/p><\/li>\n<li><p>Display Version (default = TRUE) -- makes a column for the plugin versions and outputs them<\/p><\/li>\n<li><p>Display Author (default = TRUE) -- makes a column for the plugin authors and outputs them<\/p><\/li>\n<\/ul>\n\n<p>Example code to list all plugins in a \"[ Plugin | Author ]\" format with a table ID of \"pluginstable\":<\/p>\n\n<pre><code>&lt;?php $viperspluginsused-&gt;output_table('id=\"pluginstable\"', FALSE, FALSE); ?&gt;\n<\/code><\/pre>\n\n<p>Besides the overall table's ID\/class\/whatever which you can control via the function parameters, additional classes are placed into the table automatically:<\/p>\n\n<ul>\n<li><p>pluginheader -- the class assigned to the row which contains the column titles, you can also use \"th\" to control this<\/p><\/li>\n<li><p>pluginrow \/ pluginrowalt -- the classes assigned to the plugin rows themselves, starts off with \"pluginrow\"<\/p><\/li>\n<\/ul>\n\n<p>Some example CSS:<\/p>\n\n<pre><code>#pluginstable {\n    width: 100%;\n    border-spacing: 3px;\n}\n\n#pluginstable td {\n    border: 1px solid black;\n    padding: 3px;\n}\n\n#pluginstable th {\n    padding: 3px;\n}\n<\/code><\/pre>\n\n<p>Output As A Table<\/p>\n\n<h3><\/h3>\n\n<p>To output an unordered list, use this code:<\/p>\n\n<pre><code>&lt;?php $viperspluginsused-&gt;output_list(); ?&gt;\n<\/code><\/pre>\n\n<p>The parameters are:<\/p>\n\n<ul>\n<li>Display ULs (default = TRUE) -- outputs the <\/li>\n<\/ul>\n\n<p>&lt;<\/p>\n\n<p>ul&gt;'s needed. You can turn this off if you want to add other items to the list or whatever. Note that if you turn it off, you'll need to use your own<\/p>\n\n<p>&lt;<\/p>\n\n<p>ul&gt; tags.<\/p>\n\n<ul>\n<li><p>Display Version (default = TRUE) -- outputs the plugin's version<\/p><\/li>\n<li><p>Display Author (default = TRUE) -- outputs the author's name, as a link if an author URL exists<\/p><\/li>\n<li><p>Display Description (default = FALSE) -- outputs the description of the plugin<\/p><\/li>\n<\/ul>\n\n<p>Example code to list all plugins in a \"Plugin by Author\" format:<\/p>\n\n<pre><code>&lt;?php $viperspluginsused-&gt;output_list(TRUE, FALSE); ?&gt;\n<\/code><\/pre>\n\n<p>Get Count of Activated Plugins<\/p>\n\n<h3><\/h3>\n\n<p>If you'd like to display a count of how many plugins you have activated, use this code:<\/p>\n\n<pre><code>&lt;?php echo $viperspluginsused-&gt;plugincount(); ?&gt;\n<\/code><\/pre>\n\n<p>Note that YOU MUST ECHO THIS as this function only returns the value, it does not display it. This is so that you can use it within PHP code if you wish.<\/p>\n\n<p>Example usage:<\/p>\n\n<pre><code>I currently have &lt;?php echo $viperspluginsused-&gt;plugincount(); ?&gt; plugins activated on my site.&lt;h3&gt;Advanced Usage&lt;\/h3&gt;\n<\/code><\/pre>\n\n<p>To get a PHP array containing details of all activated plugins, use this code:<\/p>\n\n<pre><code>$somevar = $viperspluginsused-&gt;plugindata;\n<\/code><\/pre>\n\n<p>That'll return an array in this format:<\/p>\n\n<pre><code>Array\n(\n    [Viper's Plugins Used] =&gt; Array\n    (\n        [plugin_uri] =&gt; http:\/\/www.viper007bond.com\/wordpress-plugins\/vipers-plugins-used\/\n        [description] =&gt; Allows you to display alphabetically what plugins you have enabled on your blog in either a table or unordered list.\n        [author_name] =&gt; Viper007Bond\n        [author_uri] =&gt; http:\/\/www.viper007bond.com\/\n        [version] =&gt; 1.0\n        [plugin] =&gt; &lt;a href=\"http:\/\/www.viper007bond.com\/wordpress-plugins\/vipers-plugins-used\/\" title=\"Visit plugin homepage\"&gt;Viper&#8217;s Plugins Used&lt;\/a&gt;\n        [author] =&gt; &lt;a href=\"http:\/\/www.viper007bond.com\/\" title=\"Visit author homepage\"&gt;Viper007Bond&lt;\/a&gt;\n        [filename] =&gt; vipers_pluginsused.php\n    )\n\n    etc.\n)\n<\/code><\/pre>\n\n<p>There is also this data array:<\/p>\n\n<pre><code>$viperspluginsused-&gt;customdata;\n<\/code><\/pre>\n\n<p>It's the same as <code>plugindata<\/code>, but if a custom description exists for the plugin, then that description is used.<\/p>\n\n<!--section=installation-->\n<p>Upload <code>vipers_pluginsused.php<\/code> to your <code>\/wp-content\/plugins\/<\/code> folder and activate it from the admin area.<\/p>\n\n<p>In order to display your plugins list, you'll have to use a custom Page template. Unfortunately, this is not the easiest thing in the world to do for a novice user. I have plans to make the installation process much, much easier in the future by switching to placeholders and\/or BBCode, but for now, you'll have to follow these instructions. But don't worry, they should be simple to follow.<\/p>\n\n<p>http:\/\/codex.wordpress.org\/Pages#Creating_your_own_Page_Templates<\/p>\n\n<ol>\n<li><p>Browse to your theme's folder (<code>\/wp-content\/themes\/[theme name]\/<\/code>) and download <code>page.php<\/code> (if it doesn't exist, use <code>index.php<\/code>).<\/p><\/li>\n<li><p>Rename the file to something like <code>page_pluginsused.php<\/code> and open it up with a text editor. See <a href=\"http:\/\/codex.wordpress.org\/Editing_Files\">the WordPress Codex<\/a> if you need help doing this. You can also just upload the file now if you wish and <a href=\"http:\/\/codex.wordpress.org\/Editing_Files#Using_the_File_Editor\">edit it via the admin area<\/a>.<\/p><\/li>\n<li><p>Add the following to the top of the file to give the new Page template a name and to initiate the plugin:<\/p>\n\n<\/li>\n<li><p>Find the <code>the_content()<\/code> call. We will be adding the plugin list output after this.<\/p><\/li>\n<\/ol>\n\n<p>Output As A Table<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>I can't figure out how to install this. It's hard! Can you do it for me?<\/dt>\n<dd><p>Sorry, no, I'm far too busy. I hope to make the installation process much simplier in the future.<\/p><\/dd>\n\n<\/dl>","raw_excerpt":"Allows you to display alphabetically what plugins you have enabled on your blog in either a table or unordered list. Also allows you to set custom des &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/br.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/1707","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/br.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/br.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/br.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=1707"}],"author":[{"embeddable":true,"href":"https:\/\/br.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/automattic"}],"wp:attachment":[{"href":"https:\/\/br.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=1707"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/br.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=1707"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/br.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=1707"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/br.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=1707"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/br.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=1707"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/br.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=1707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}