plugins and admin control panel

Creating and modifying plugins.
Post Reply
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

plugins and admin control panel

Post by oxygenws »

could i add any DIRECT option in sidebar of admin control panel??

best regards, omid
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: plugins and admin control panel

Post by garvinhicking »

What do you mean with DIRECT option? Please be more specific, so I can help you :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

Post 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)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply