web/wp-content/plugins/php-code-widget/readme.txt
changeset 136 bde1974c263b
equal deleted inserted replaced
135:53cff4b4a802 136:bde1974c263b
       
     1 === PHP Code Widget ===
       
     2 Contributors: Otto
       
     3 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=otto%40ottodestruct%2ecom
       
     4 Tags: php, widget, execphp
       
     5 Requires at least: 2.8
       
     6 Tested up to: 2.9
       
     7 Stable tag: 2.1
       
     8 
       
     9 Like the Text widget, but also allows working PHP code to be inserted.
       
    10 
       
    11 == Description ==
       
    12 
       
    13 The normal Text widget allows you to insert arbitrary Text and/or HTML code. 
       
    14 This allows that too, but also parses any inserted PHP code and executes it. 
       
    15 This makes it easier to migrate to a widget-based theme.
       
    16 
       
    17 All PHP code must be enclosed in the standard <?php and ?> tags for it to be 
       
    18 recognized.
       
    19 
       
    20 WARNING: Upgrading to 2.0 from 1.2 may cause loss of your existing widgets.
       
    21 Copy the code you have in them elsewhere first, then recreate your widgets
       
    22 afterwards.
       
    23 
       
    24 == Installation ==
       
    25 
       
    26 1. Upload `execphp.php` to the `/wp-content/plugins/` directory
       
    27 1. Activate the plugin through the 'Plugins' menu in WordPress
       
    28 1. Use the widget like any other widget.
       
    29 
       
    30 == Frequently Asked Questions ==
       
    31 
       
    32 = There's some kind of error on line 43! =
       
    33 
       
    34 That error means that your PHP code is incorrect or otherwise broken. 
       
    35 
       
    36 = No, my code is fine! =
       
    37 
       
    38 No, it's not. 
       
    39 
       
    40 Really. 
       
    41 
       
    42 This widget has no bugs, it's about the simplest widget one can possibly 
       
    43 make. Any errors coming out of the "execphp,php" file are errors in code you 
       
    44 put into one of the widgets. The reason that it shows the error being in the
       
    45 execphp.php file is because that is where your code is actually being run
       
    46 from.
       
    47 
       
    48 So, if it says that you have an error on line 43, I assure you, the problem 
       
    49 is yours. Please don't email me about that error.
       
    50 
       
    51 == Screenshots ==
       
    52 
       
    53 1. The widgets screen showing a PHP code widget in use.
       
    54 2. The output of the widget on the site.
       
    55 
       
    56 == Changelog ==
       
    57 = 2.1 =
       
    58 * Fixed broken wpautop filter. Checkbox on widget works now.
       
    59 
       
    60 = 2.0 =
       
    61 * Changed widget to use new Class methods for creating widget. This simplifies the widget and should eliminate any problems with it losing code or disappearing from sidebars and so forth.
       
    62 * WARNING: Version 2.0 REQUIRES WordPress 2.8 and up. It will not work with older versions.
       
    63 * WARNING: Upgrading this widget from 1.x might cause the widget to LOSE YOUR EXISTING SIDEBAR CODE. Copy and paste the existing code somewhere else before upgrading (just in case), then recreate the widgets afterwards.