bbPress

Simple, fast, elegant

bbPress Plugin Browser »

Fix Admin Access (0.0.3)

Download

Version: 0.0.3

Last Updated: 2009-4-5

Requires bbPress Version: 0.8.2 or higher

Compatible up to: 0.9

Author Homepage »

Plugin Homepage »

Donate to this plugin »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(3)

Your Rating

Author: _ck_

Restores keymaster access to control panel on bbPress and/or WordPress integration. This is an auto-load plugin and must have a leading underscore "_". Put into your plugin directory, access bbPress and/or WordPress once and then delete it from the directory.


  1. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    This plugin is only meant as a simple way to fix roles for users doing reverse integration of bbPress with WordPress without having to resort to using phpMyAdmin but it may have other uses if a primary admin role gets corrupted or wiped out for some reason.

    I created this after having to instruct two different people through phpMyAdmin to fix such a problem. For now it assumes the primary keymaster is user id #1. If not, which is rare but possible, it won't fix the problem.

    Posted: 2 years ago #
  2. You are awesome _ck_!

    Posted: 1 year ago #
  3. ck, i could kiss you !

    seriously, after the integration, I've lost my admin panel and have been playing around with my database for hours, without result.

    and your little plugin did it

    thanks a lot

    Posted: 1 year ago #
  4. Pump

    Member

    My Keymaster ist id 2 I have no id 1. What do I have to change in your plugin?
    I have the German language. The Keymaster ist named Hausmeister.
    Has that a influence?

    Posted: 11 months ago #
  5. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    Pump replace these lines:

    if ($db->get_var("SELECT meta_value FROM $db->usermeta WHERE meta_key = '$key' AND user_id = '2' LIMIT 1"))
    	            {$db->query("UPDATE $db->usermeta SET meta_value = '$value' WHERE user_id = '2' AND meta_key = '$key' LIMIT 1");}
         	   else {$db->query("INSERT INTO $db->usermeta  (user_id, meta_key, meta_value)  VALUES ('2', '$key', '$value')");}
    Posted: 11 months ago #
  6. Pump

    Member

    Oops after that all my Keymasters are gone...
    I deleted my forum and will rebuild it...shit happens

    but thanks for helping...

    Posted: 11 months ago #
  7. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    It's possible your bbPress prefix is different I am going to post 0.0.3 which will let you change the user id # by editing the code.

    But this plugin does not delete anything, you shouldn't lose anything.

    If you know how to use phpmyadmin you can also fix your install that way.

    Posted: 11 months ago #
  8. michaelbradley

    Member

    Rock on! Thanks for the plugin.

    Posted: 6 months ago #
  9. Perfect! Thanks.

    Posted: 3 months ago #

RSS feed for this topic

Add a Comment

You must log in to post.

Code is Poetry.