CINXE.COM

pluginsUsedPlugin - AndrewSW Pages

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html><head><script type="text/javascript" src="https://web-static.archive.org/_static/js/bundle-playback.js?v=7YQSqjSh" charset="utf-8"></script> <script type="text/javascript" src="https://web-static.archive.org/_static/js/wombat.js?v=txqj7nKC" charset="utf-8"></script> <script>window.RufflePlayer=window.RufflePlayer||{};window.RufflePlayer.config={"autoplay":"on","unmuteOverlay":"hidden"};</script> <script type="text/javascript" src="https://web-static.archive.org/_static/js/ruffle/ruffle.js"></script> <script type="text/javascript"> __wm.init("http://web.archive.org/web"); __wm.wombat("http://www.andrewsw.com:80/pages/pluginsUsedPlugin","20090412055600","http://web.archive.org/","web","https://web-static.archive.org/_static/", "1239515760"); </script> <link rel="stylesheet" type="text/css" href="https://web-static.archive.org/_static/css/banner-styles.css?v=p7PEIJWi" /> <link rel="stylesheet" type="text/css" href="https://web-static.archive.org/_static/css/iconochive.css?v=3PDvdIFv" /> <!-- End Wayback Rewrite JS Include --> <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>pluginsUsedPlugin - AndrewSW Pages</title> <meta name="KEYWORDS" content="Array"> <link rel="stylesheet" type="text/css" href="/web/20090412055600cs_/http://www.andrewsw.com/styles/main.css"> <style type="text/css" media="screen"> table tr td form:not(:target) {display: none} table tr td form:target {display: block} </style> <script src="http://web.archive.org/web/20090412055600js_/http://www.google.com/jsapi?key=ABQIAAAAilehF8iBxx3G_NboQaGjQhTLq71s7tby-_cJ7yakxisPWWQGWhTKR-d6oPnFGAXe0ZYOshtEDsfzSg" type="text/javascript"> </script> <script language="Javascript" type="text/javascript"> function toggleLayer( whichLayer ) { var elem, vis; if( document.getElementById ) // this is the way the standards work elem = document.getElementById( whichLayer ); else if( document.all ) // this is the way old msie versions work elem = document.all[whichLayer]; else if( document.layers ) // this is the way nn4 works elem = document.layers[whichLayer]; vis = elem.style; // if the style.display value is blank we try to figure it out here if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined) vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none'; vis.display = (vis.display==''||vis.display=='block')?'none':'block'; } //<![CDATA[ google.load("search", "1"); var onLoadCallBackPresent = 0; var searchControl; function OnLoad() { // Create a search control searchControl = new google.search.SearchControl(); // Add in a full set of searchers //var localSearch = new google.search.LocalSearch(); //searchControl.addSearcher(localSearch); searchControl.addSearcher(new google.search.WebSearch()); //searchControl.addSearcher(new google.search.VideoSearch()); searchControl.addSearcher(new google.search.BlogSearch()); searchControl.addSearcher(new google.search.NewsSearch()); // Set the Local Search center point //localSearch.setCenterPoint("Fargo, ND"); // Tell the searcher to draw itself and tell it where to attach searchControl.draw(document.getElementById("searchcontrol")); if (0 == onLoadCallBackPresent) { // Execute an inital search searchControl.execute("Google"); } else { onLoadCallBack(); }; } google.setOnLoadCallback(OnLoad); //]]> </script> </head> <body><a name="top"></a> <div class="header" id="header"> <div class="headerTitle" id="headerTitle"> <a href="http://web.archive.org/web/20090412055600/http://www.andrewsw.com/">Andrew<span class="headerBlue" id="headerBlue">SW</span>.com</a> </div> <a href="http://web.archive.org/web/20090412055600/http://www.andrewsw.com/about/">About</a>|<a href="http://web.archive.org/web/20090412055600/http://www.andrewsw.com/news/">Blog</a>|<a href="http://web.archive.org/web/20090412055600/http://www.andrewsw.com/products/">Products</a>|<a href="http://web.archive.org/web/20090412055600/http://www.andrewsw.com/services/">Services</a>|<a href="http://web.archive.org/web/20090412055600/http://www.andrewsw.com/customize/">Customize</a>|<a href="http://web.archive.org/web/20090412055600/http://www.andrewsw.com/contact/">Contact</a> <br/> <form name="searchform" method="get" action="http://web.archive.org/web/20090412055600/http://www.andrewsw.com/search.php"><input type="text" name="s" size="15" maxlength="24"/><input type="submit" name="submit" value="Search"/></form> </div><div id="rap"> <div id="content"><div id="storyContent"> <br/> <h1>pluginsUsedPlugin</h1> <p> This plugin allows you to easily display a list of the plugins that you use, along with a link to their plugin URLs. Example usage might be the following for a <b>very simple</b> page listing information about the plugins being used: </p> <pre class="code"> &lt;html&gt;&lt;body&gt; &lt;?php require('./wp-blog-header.php'); displayPluginsAsTable(); ?&gt; &lt;/body&gt;&lt;/html&gt; </pre> <p>Or, on a template page or other place, the sidebar/menu one might have something like the following: </p> <pre class="code"> &lt;li id="plugins"&gt;Plugins: &lt;?php displayPluginsAsList(); ?&gt; &lt;/li&gt; </pre> <p>So, as you can see, two functions are provided, </p><ul> <li><tt class="wiki">displayPluginsAsTable()</tt> </li><li><tt class="wiki">displayPluginsAsList()</tt> </li></ul> <p>neither take any arguments and both print their output directly. </p> <p>The code for the plugin can be found at <a class="external" href="http://web.archive.org/web/20090412055600/http://www.andrewsw.com/text/pluginsUsedPlugin.txt">http://www.andrewsw.com/text/pluginsUsedPlugin.txt</a> rename it so it ends in .php and put it in your wp-content/plugins directory. Activate it from within the plugins administration interface that is part of <a href="./WordPress">WordPress</a> and you should be good to go to use those functions in your templates. </p> <p>To use them in the static pages available within WordPress 1.5, you need to have the <a href="http://web.archive.org/web/20090412055600/http://www.nosq.com/2004/10/runphp-wordpress-plugin/">RunPHP</a> WordPress plugin installed and, for that page, have the "eval" checkbox checked.</p> <p>To use them within WordPress 2.0, if you use RunPHP you will need to not use the visual rich editor in order to get to the "eval" checkbox. You may consider using <a href="http://web.archive.org/web/20090412055600/http://www.soeren-weber.net/post/2005/08/18/50/">Exec-PHP</a> instead, in WordPress 2.0. For more information, see <a href="http://web.archive.org/web/20090412055600/http://codex.wordpress.org/User:Matt/2.0_Plugin_Compatibility#Plugins_that_don.27t_work">2.0 plugin compatibility list page</a>.</p> <p> New features (about time I documented them - they've been around a while): <i>displayPluginsAsTable()</i> can take two possible arguments. The first is the name of an id to give the table for CSS purposes. The second is an optional flag to indicate whether or not you want the description to be shown. If you pass in a 0 then it is not. The default is to have it shown. </p> <br/> <a name="bottom"></a> </div> </div> <div id="menu"> <p> Would you like to <a href="./login">log in</a> or <a href="./register">register</a>? <small><a href="./whyRegister">(Why register?)</a></small> <br/> Verify that this is <a href="http://web.archive.org/web/20090412055600/http://validator.w3.org/check/referer">valid markup</a>. <br/> You appear to have visited 1 pages during this session. </div> <hr/><center> <!-- Creative Commons License --> <a href="http://web.archive.org/web/20090412055600/http://creativecommons.org/licenses/by-nd-nc/1.0"><img alt="Creative Commons License" border="0" src="http://web.archive.org/web/20090412055600im_/http://creativecommons.org/images/public/somerights.gif"/></a><br/> This work is licensed under a <a href="http://web.archive.org/web/20090412055600/http://creativecommons.org/licenses/by-nd-nc/1.0">Creative Commons License</a>. <!-- /Creative Commons License --> <!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <Work rdf:about=""> <license rdf:resource="http://creativecommons.org/licenses/by-nd-nc/1.0" /> </Work> <License rdf:about="http://creativecommons.org/licenses/by-nd-nc/1.0"> <requires rdf:resource="http://web.resource.org/cc/Attribution" /> <permits rdf:resource="http://web.resource.org/cc/Reproduction" /> <permits rdf:resource="http://web.resource.org/cc/Distribution" /> <prohibits rdf:resource="http://web.resource.org/cc/CommercialUse" /> <requires rdf:resource="http://web.resource.org/cc/Notice" /> </License> </rdf:RDF> --> </center><hr/> </div> <div class="footer"> <table cellpadding="2" cellspacing="2" border="0" align="center"> <tbody> <tr> <td valign="bottom"><a href="http://web.archive.org/web/20090412055600/http://www.andrewsw.com/security/">Security</a></td> <td valign="bottom"><a href="http://web.archive.org/web/20090412055600/http://www.andrewsw.com/privacy/">Privacy</a></td> <td valign="bottom"><a href="http://web.archive.org/web/20090412055600/http://www.andrewsw.com/terms/">Terms of Service</a></td> </tr> </tbody> </table> </div></body> </html> <!-- FILE ARCHIVED ON 05:56:00 Apr 12, 2009 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 11:58:24 Feb 28, 2025. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). --> <!-- playback timings (ms): captures_list: 0.704 exclusion.robots: 0.038 exclusion.robots.policy: 0.022 esindex: 0.012 cdx.remote: 25.377 LoadShardBlock: 114.181 (3) PetaboxLoader3.datanode: 166.917 (4) load_resource: 168.853 PetaboxLoader3.resolve: 57.829 -->

Pages: 1 2 3 4 5 6 7 8 9 10