Welcome to Geeklog, Anonymous Sunday, June 26 2022 @ 10:34 pm EDT

Geeklog Forums

plugins and admin Command and Control


Status: offline

jlhughes

Forum User
Full Member
Registered: 04/25/02
Posts: 154
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?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany

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

Text Formatted Code
/**
* 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

 Quote

Status: offline

tomw

Forum User
Full Member
Registered: 08/12/02
Posts: 300
You also need an gif icon (about 48x48) in public_html/{plugin name}/images/{plugin name}.gif. Tom
 Quote

Anonymous

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
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
You either need to write a (minimal) plugin or hack it into admin/moderation.php directly. bye, Dirk
 Quote

All times are EDT. The time is now 10:34 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content