----------------------------------------------------------------- The Basics ----------------------------------------------------------------- Plugin Name: Page Sidebars Plugin URL: http://www.nexterous.com/scripts/pagesidebars.php Description: A small plugin that enables you to have dedicated sidebar content for each page. This plugin supports a unique widget configuration for each page. Example uses of this plugin include on a calendar page you can have dates as well as a calender widget while on an contact page you can have your emails or an IM widget. Version: 2.0.0 Author: Daniel Author URL: http://www.nexterous.com ----------------------------------------------------------------- License: GNU General Public License Check out a full copy of the license at http://wordpress.org/about/gpl/ ----------------------------------------------------------------- This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ----------------------------------------------------------------- Note: ----------------------------------------------------------------- By using this script, you are at your own risk. By using it, you agree to not hold me responsible for any errors or damages. ----------------------------------------------------------------- Instructions: ----------------------------------------------------------------- 1. Upload the directory /page-sidebars/ into your Wordpress directory under /wp-content/plugins/ 2. Open your adminstration panel and go to Plugins and activate it by clicking Activate next to the description of Page Sidebars. 3. You are now able to begin using the plugin. Go to Edit > Pages to edit an existing page or go to a new page. Either way, you will see two boxes below the normal boxes titled sidebar title and sidebar content. HTML is allowed in the content box. 4. To include the data in a template, for the title use the function and for the content use . Note, no variables are needed for either. ----------------------------------------------------------------- Enable Widget Support: ----------------------------------------------------------------- 1. Open your templates functions.php file with your text editor. Look for the code that contains dynamic_sidebar() if it exists. If it does, delete the whole function (that code and its container). Once you delete that or it doesn't exist, place the following code at the beginning of the functions.php file: /* CODE */ if (function_exists('sidebar_widgets')){ sidebar_widgets(); } 2. Now go to page.php in your template. Wherever the sidebar container is, go to it and delete everything inside (unless you prefer to keep it). Add . If you have the other template tags from this plugin, you may leave them there if you prefer. 3. Finally, go to the Manage > Pages admin screen. You will now see (Javascript-enabled) that a new column has been added called 'Widgets'. For each page that you want widgets on, click the 'Activate Widgets' link. Now you can go set up the Widgets under Presentation > Widgets. ----------------------------------------------------------------- Security Notice: ----------------------------------------------------------------- The plugin takes all reasonable measures to protect its user and its files. Input to the database is sanitized and Wordpress takes care of all permission related issues. Please keep up with the latest version of the plugin. If there are any security issues, please report them on my website or contact me at my site. ----------------------------------------------------------------- Change Log: ----------------------------------------------------------------- v.2.0.0 - Adding widget support Activate/Deactivate widgets on a page on the Manage Pages Screen Uses Wordpress built-in function for managing the widget sidebars - Added template tags support for widgets Just one simple function to add in your template's functions.php To display widget sidebars, add - Ready for Wordpress v.2.5 Blended in new design for form (backwards-compatibility however) - Files Added JSON.php, managepages.php (thanks to Manage Pages Custom Columns Plugin) Renamed pagesidebars to core.php as it handles all processes Added widgets.php to manage the Page Widgets - Bugs / Fixes Fixed spacing issues with form (sidebarbox.php) Uses the wpdb class for all database queries instead of hack v.1.5.0 - Final version upgrade to correct all version problems - No new features introduced and no bugs known v.1.0.1 - Remove of beta status - Added stripslashes to output from database to form (thank you Alex) - Fixed some basic path includes for default installation - Added a link to homepage from plugin description v.1.0.0 - Initial Release of the Script - Private/Semi-Public Beta Released ----------------------------------------------------------------- Credits: ----------------------------------------------------------------- http://scompt.com/ - Tutorial on editing the page/post managing screen (http://scompt.com/archives/2007/10/20/adding-custom-columns-to-the-wordpress-manage-posts-screen) - Manage Pages Custom Columns Plugin (http://scompt.com/projects/manage-pages-custom-columns-in-wordpress) ----------------------------------------------------------------- Thank you for using Page Sidebars. -----------------------------------------------------------------