Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Forum: Plugins
    In reply to: help with php please
    Thread Starter dream77

    (@dream77)

    I will post there aswell, but this question is just about how to put in the given code. Basically I do not understand the instructions. It is nothing wrong with wordpress mu or the plugin itself, I simpley can not use the plugin before I have made the given changes in the instructions. And I need help from someone that are mor use to php coding then I am. that is why I post here, but I will also put the post in the given forum above, thank you.

    Regards
    Martin

    Forum: Plugins
    In reply to: help with php please
    Thread Starter dream77

    (@dream77)

    ooh, sorry, maybe this will be easer to read. And also the plugin is called premium plugin and you find it here.

    http://dylan.wibble.net/code/wpmu/2007/premium-blogs-v05.html

    I am running wordpress mu lates edition.

    This is the instructions:

    To allow plugin control to work the following code has to be added to wp-admin/plugins.php around line 120 – the first line of the foreach($plugins...) loop.

    New Line:

    if (!premiumBlogs::allowedPlugin($plugin_file)) continue;

    And the code will be what???

    Another instruction:

    To allow theme control to work the following changes have to be made to wp-admin/themes.php around line 22 – in the foreach($themes...) loop:

    Original:

    foreach( $themes as $key => $theme ) {
    
    if( isset( $allowed_themes[ wp_specialchars( $theme[ 'Stylesheet' ] ) ] ) == false ) {
    
    unset( $themes[ $key ] );
    
    }
    
    }

    New:

    foreach( $themes as $key => $theme ) {
    
    if( isset( $allowed_themes[ wp_specialchars( $theme[ 'Stylesheet' ] ) ] ) == false ) {
    
    unset( $themes[ $key ] );
    
    } elseif (premiumBlogs::allowedTheme(wp_specialchars($theme['Stylesheet'])) == false){ unset($themes[$key]);
    
    }
    
    }

    And the code will be what???

    Please help, I have tryed but I onley get error code, so I must be putting in the wrong code, help me to do it right.

    Regards
    Martin

    ok, followed the link above, have no clue what to do with the info. Tryed to edit the feed.php file, all I get is parse syntax error on line 162, or the problem is still there. That is the blank page on rss feeds. Please help!

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