Main Stories
Slash Boxes

Slash Open Source Project

Slashcode Log In

Log In

[ Create a new account ]

Article Poll

Poll I found this article to be
Very Helpful
Helpful
Not Helpful
Not Very Helpful
[ Results | Polls ]
Comments:0 | Votes:0

Disabling Plugins

posted by Krow on 05:16 AM January 31st, 2002   Printer-friendly   Email story
Story goes. I've installed a Slash Site and got it going pretty much the way I want. Now I've decided I want to disable or remove a couple of the plugins that I initially thought I might want. How can I remove or disable them without having to remove the site and reinstall?
This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login
Loading... please wait.
  • See the code of Install.pm : there is a comment by pudge saying the plugin reinstall feature will wait until users ask for it.

    I vote Yea.
  • There are a few ways to delete a plugin.

    You could:

    1. Delete the .pl or the symlink(s) to the .pl('s) for the plugin.

    2. You could remove the plugin from the site's information registry:

    ie for Journal:

    delete from site_info where name='plugin' and value ='Journal'

    3. You could do #1,#2, and then get the data out of your db as well.

    cd /usr/local/src/slash/fry/slash/plugins/
    cd Journal
    grep "DROP" mysql_schema
    DROP TABLE IF EXISTS journals;
    DROP TABLE IF EXISTS journals_text;
    DROP TABLE IF EXISTS journal_friends;
    DROP TABLE IF EXISTS journal_themes;

    pipe that output to the mysql db for the site.

    But then, you'd also have to do some other cleanup, so you'd be better of using the following:

    DROP TABLE IF EXISTS journals;
    DROP TABLE IF EXISTS journals_text;
    DROP TABLE IF EXISTS journal_friends;
    DROP TABLE IF EXISTS journal_themes;
    DELETE FROM menus where menu='journal';
    DELETE FROM code_param where type='journal_discuss';
    DELETE FROM topics where name='journal';
    DELETE FROM vars where name='journal_top';
    DELETE FROM vars where name='journal_default_display';
    DELETE FROM vars where name='journal_default_theme';
    DELETE FROM vars where name='journal_default_topic';
    DELETE FROM vars where name='journal_comments';
    DELETE FROM vars where name='journal_top_posters';
    DELETE FROM vars where name='journal_top_friend';
    DELETE FROM vars where name='journal_top_recent';
    DELETE FROM vars where name='journal_speed_limit';
    DELETE FROM vars where name='journal_journal_allowed';
    DELETE FROM vars where name='journal_journals_unusedfk';
    DELETE FROM blocks where bid='top10journals';
    DELETE FROM templates where page='journal';
    DELETE FROM site_info where name='plugin' and value='Journal';

    Hrm, maybe I should submit a patch for this :)
    --
    lottadot [lottadot.com]