Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Forum: Plugins
    In reply to: Additional widgets

    There’s no plugin that I’m aware of. For now you’re gonna have to hack your widgets.php file – it’s in the wp-includes folder. (If anyone with a little more experience with WP hacking than I do would like to confirm, deny or correct anything here, please feel free to do so.)

    Before you do anything, BACK UP THE ORIGINAL FILE!!! This is good practice anyway, in case you bork something.

    First, you’ll want to find a chunk of code that begins with
    function wp_widget_text_setup()
    Where it says
    if ( $number > 9 ) $number = 9;
    change 9 to x (x being the number of text widgets you want)

    Next, find the chunk of code that begins with:
    function wp_widget_text_register()
    and change 9 to x in this line:
    if ( $number > 9 ) $number = 9;
    and this one:
    for ($i = 1; $i <= 9; $i++)

    Finally, look for this:
    function wp_widget_text_page()
    Where it reads:
    <?php for ( $i = 1; $i < 10; ++$i )
    change 10 to x+1 (i.e., one higher than your desired number of widgets)

    This SHOULD work. Again, if any of this is wrong please feel free to correct…

    that’s it. i’m going to name my first-born child otto, regardless of his or her gender.

    your fix worked flawlessly, otto. thank you!

    i’m having the same problem w/tiga after the upgrade. i’m guessing that it’s a compatibility issue with 2.2.

    i’m sure there’s a way to hack tiga into submission to get it to work with the new-style widgets, but i’m very uncomfortable with fiddling w/php code…

    there are a small handful of people i know who get the exact same error.

Viewing 4 replies - 1 through 4 (of 4 total)