The MU forums have moved to WordPress.org

Adding More Than 9 RSS Widgets? (5 posts)

  1. reggordon
    Member
    Posted 16 years ago #

    Hello i was looking at replicating this Onenews theme
    http://ericulous.com/2007/06/11/popurls-clone-using-wordpress/

    (i cant get it working. Must be the plugins i think. Make life easy for me if i could get it working but i dont hold out much hope of a reply on that thread)

    I would need more than 9 rss widgets to make the site interesting. I have read this on normal wordpress forums (guest appearance by Dr Mike)
    http://wordpress.org/support/topic/118516?replies=10

    It doesnt seem to have worked for me on wpmu. Would it be possible do you think?

    Thanks

  2. Farms
    Member
    Posted 16 years ago #

  3. reggordon
    Member
    Posted 16 years ago #

    Thanks Farms. It should work for me but it's not :( ive done the changes as instructed etc. it shows my new amount in the number of rss widgets in the pull down menu in WIDGETS in my admin but still only 9 show up top in the dragable box. Maybe this is a wordpress only hack?

  4. andrea_r
    Moderator
    Posted 16 years ago #

    nope, it works in MU. We've done it.

    there's more than one place where you have to increase the number.

  5. reggordon
    Member
    Posted 16 years ago #

    lol. ah well andrea i dont mind being a fool if it means my goals are still achievable. Let me go try again.....

    ok so it's not In /wp-content/plugins/widgets/widgets.php

    but infact wp-includes/widget.php

    right im ok there as the 1st didnt exist. Lets start this.

    change one-

    if ( empty($items) || $items < 1 ) $items = 21;

    change two-

    `if ( isset($_POST['rss-number-submit']) ) {
    $number = (int) $_POST['rss-number'];
    if ( $number > 20 ) $number = 20;
    if ( $number < 1 ) $number = 1;`

    change three-

    <select id="rss-number" name="rss-number" value="<?php echo $options['number']; ?>">
    <?php for ( $i = 1; $i < 21; ++$i ) echo "<option value='$i' ".($options['number']==$i ? "selected='selected'" : '').">$i</option>"; ?>

    change four-
    `$options = get_option('widget_rss');
    $number = $options['number'];
    if ( $number < 1 ) $number = 1;
    if ( $number > 20 ) $number = 20;`

    :fingerscrossed

    :(

    im still getting the pull down option of 20 rss widgets but sadly still the same 9 in the dragable area. I wont worry too much about it andrea. Its always the same with these sort of things. everyone is fine and im the one getting strange errors. these things are sent to try us. I wont bother uunless someone has any ideas of what could be wrong. thanks again for all the help folks.

About this Topic

  • Started 16 years ago by reggordon
  • Latest reply from reggordon