Subject: plugins and admin Command and Control

Posted on: 09/10/02 07:12am
By: jlhughes

I've written a couple of site-specific "plugins" and I'm having trouble making the admin link show up in the "Command and Control" part of moderation.php. The plugins both show up when you access admin/plugins.php. The plugins both show up in the User Functions menu. I have created a directory in admin/plugins/ with the name of the plugin and added an index.php file with the admin tools. What do I need to do to get moderation.php to add the link to the admin/plugin/pluginname/index.php to the Command and Control section?

plugins and admin Command and Control

Posted on: 09/10/02 07:39am
By: Dirk

Have a look at the functions.php of the static pages plugin:

/**
* This will put an option for static pages in the command and control block on  
* moderation.php
*
*/
function plugin_cclabel_staticpages()
{
    global $LANG_STATIC, $_CONF;

    return array($LANG_STATIC['staticpages'],$_CONF['site_admin_url'] . '/plugins/staticpages/index.php',$_CONF['site_url'] . '/staticpages/images/staticpages.gif');
}

bye, Dirk


plugins and admin Command and Control

Posted on: 09/10/02 09:21am
By: tomw

You also need an gif icon (about 48x48) in public_html/{plugin name}/images/{plugin name}.gif. Tom

plugins and admin Command and Control

Posted on: 22/10/02 10:57am
By: Anonymous

Does any one know how I can just add a links under the command and control? Do I have to write a function to accomplish that task? Please help... Thanks, Dan

plugins and admin Command and Control

Posted on: 22/10/02 12:59pm
By: Dirk

You either need to write a (minimal) plugin or hack it into admin/moderation.php directly. bye, Dirk

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=20083