wr_adminmenu 1.1

About

A positionable, collapsable and configurable replacement for CMSimple's editmenu.

© 2010 Martin Damken, zeichenkombinat.de.

The plugin is free for use in the scope of your own website, «commercial» or not. Professional web-designer who are planning to deliver it as part of their service to their customers, please contact me for a commercial license!

But anyway, if you like it, a small donation via paypal is always appreciated!

Requirements

CMSimple_xh. (Or, to be more exact, a Pluginloader Version >= 2.1).

Installation

  1. Always make a backup of your installation before adding a new plug-in.
  2. Unzip the archive and copy the files and folders into your plugins-Folder.

    It should look like this:

    • [Root]
      • [(2lang)]
      • [cmsimple]
      • ...
      • [plugins]
        • ...
        • [pluginloader]
        • [wr_adminmenu]
          • [config]
          • [css]
          • [help]
          • [images]
          • [languages]
          • admin.php
          • configurator.php
          • index.php
          • script.js
        • index.php
      • [...]
      • index.php
  3. The file plugins/wr_adminmenu/config/config.php needs to be set writeable.

    (To edit the languages and the stylesheet online do the same with the language files in plugins/wr_adminmenu/languages and plugins/wr_adminmenu/css/stylesheet.css.)

  4. Insert "<?php echo wrAdminmenu();?>" somewhere into your template (templates/your_template/template.htm).
  5. Disable the original edit-menu:
    1. Delete or outcomment the editmenu()-call in your template.
    2. Open plugins/index.php and search for

      PluginMenu('ROW', '', '', '');
      PluginMenu('DATA', '', '', $pluginloader_plugin_selectbox);

      $o .= PluginMenu('SHOW');
      .

      (In the current Pluginloader Version 2.1.11 you'll find it in lines 180-183). Put the lines into an if_clause:

      if(!strpos(file_get_contents($pth['file']['template']), 'wrAdminmenu(')){
      PluginMenu('ROW', '', '', '');
      PluginMenu('DATA', '', '', $pluginloader_plugin_selectbox);
      $o .= PluginMenu('SHOW');
      }

      Now the plugin-selectbox will only be shown above the content, if you are not using wr_adminmenu. If you are not offering a template with the standard-editmenu in your installation, just outcomment the lines.

Configuration

Logout, the switch between edit and preview mode and the menu-manager (if you have integrated it) are always available.

The other menu links may be turned off. If you activate the "admin mode" by adding the password to the adress

http://www.example.com/?&dein_passwort

you have acces to the complete menu again.

You may offer another website or your email as help link.

Additional help ...

... at cmsimpleforum.com.

... have fun!

        THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
        APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
        HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
        OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
        THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
        PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
        IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
        ALL NECESSARY SERVICING, REPAIR OR CORRECTION.