The MU forums have moved to WordPress.org

Anarchy plugin (3 posts)

  1. dfjones
    Member
    Posted 15 years ago #

    On WPMU 2.7 I'm getting a few anomalies with Anarchy media player. If I install to mu-plugins (taking the contents of the plugin's anarchy-media-wpmu/mu-plugins folder and putting them into mu-plugins itself), it works fine, both with new and existing files but I can't adjust options. I get

    Cannot load anarchy_media/anarchy-options.php.

    However, when I put the contents of anarchy-media-wpmu/mu-plugins into the plugins folder, I can change options but old media files won't play, and I can't add new ones.

    In my ignorance of these matters, I would say it seems this is a redirect issue somewhere. Anyone confirm, or throw me a line to fix this - pretty please?

  2. Ovidiu
    Member
    Posted 15 years ago #

    dunno, but a while ago I switched to vipers video quicktag plugin, and as far as I remember it supports the old media files inserted with the anarchy plugin, give it a try.

  3. KevinRyman
    Member
    Posted 15 years ago #

    By looking at the WP-Super-Cache plugin that the add_options_page function (at least for mu-plugins) should be strictly new format. I changed function anarchy_add_options_page (+ added new function) in anarchy_media_player.php around line 148 to look like this:

    // Add admin options page
    function anarchy_add_options_page() {
    add_options_page('Anarchy Options', 'AMP', 'manage_options', 'anarchyoptions', 'anarchy_options');
    }

    function anarchy_options () {
    include_once('anarchy-options.php');
    }

    Another small change is needed if you want to actually edit and save any options...

    Change line 225 in anarchy-options.php to

    <form name="update_anarchy" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">

    And now the AMP admin page appears again . No further testing has been done so please report if things turn out to be faulty at http://fora.an-archos.com/viewtopic.php?p=28429!

About this Topic

  • Started 15 years ago by dfjones
  • Latest reply from KevinRyman