Page 1 of 1

plugins and admin control panel

Posted: Fri Jan 21, 2005 6:36 pm
by oxygenws
could i add any DIRECT option in sidebar of admin control panel??

best regards, omid

Re: plugins and admin control panel

Posted: Sat Jan 22, 2005 11:59 am
by garvinhicking
What do you mean with DIRECT option? Please be more specific, so I can help you :)

Regards,
Garvin

Posted: Sat Jan 22, 2005 12:22 pm
by oxygenws
when you want to change a plugin proprty, you must go to plugin manager section :)

i want to add some direct link to MAIN admin control panel (like MEDIA section) to modify my own plugin :) (huh, too proud! :D)

Posted: Sat Jan 22, 2005 12:26 pm
by garvinhicking
You can patch up the link to that URL easily:

Code: Select all

http://YOURBLOG/serendipity_admin.php?serendipity[adminModule]=plugins&serendipity[plugin_to_conf]=NAME_OF_YOUR_PLUGIN%3AUNIQUE_CODE
You need to substitute YOURBLOG with the URL to your blog.
NAME_OF_YOUR_PLUGIN is the classname of your plugin (like 'serendipity_event_spamblock').

The UNIQUE_CODE is the distinct md5() code that your unique plugin got added as. You can get that from the serendipity_plugins DB table. You also get that unique ID when you instantiate your plugin class via serendipity_plugin_api::load_plugin('...').

Regards,
Garvin