• 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 put in the code wrong, help me put in the right code.

    Regards
    Martin

Viewing 4 replies - 1 through 4 (of 4 total)
  • hmmm, kind of hard to read your post
    try putting the “Code” markers around the code part, you do it with the back-ticks key or the little button that says “code” when making your post

    Also please say what is the name of the plugin & a link to the plugin page if you know it?

    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

    this is the wrong forum for wordpress MU questions. Thye have their own support forum, with gobs of people that are familiar with it’s codebase.

    http://mu.wordpress.org/forums/

    Good luck 🙂

    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

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

The topic ‘help with php please’ is closed to new replies.