Leland Fiegel (@lelandf)

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • In reply to: Adding a new User Type

    Okay, it took me a couple hours but I finally got this to work (sorta) using a variation of fel64’s code. I was using it to create a special usergroup with the same capabilities as regular members for use with the Hidden Forums plugin.

    The original code kinda worked, because it did create a new user group with the name I had chosen. I soon realized, however, the users in the user group I made had no capabilities and therefore couldn’t post, edit their profile at all, etc. I was expecting they would have the same capabilities as members.

    So I made a few changes and…here’s the plugin code I used:

    Plugin Name: Add lusers
    Description: adds the luser role
    Author: fel64

    add_filter('get_roles', 'addlusers');

    function addlusers( $roles ) {
    $roles['luser'] =& $luser; //convenience
    $luser['name'] = __('Luser');
    $lusercaps = array('participate','edit_favorites','edit_tags','edit_topics','edit_posts','edit_profile','write_topics','write_posts','change_password','read');
    foreach( $lusercaps AS $cap ) {
    $luser['capabilities'][$cap] = true;
    return $roles;

    Basically I removed the first line of the function, because for some reason it wasn’t working. I then copied all the capabilities of a regular member in an array format. You can get other capabilities (like for moderators, admins, and key masters) from the capabilities.php file in /bb-includes/.

    Just save the code in a .php file and upload it to your plugins folder and activate. You would also probably want to change the “Luser” name to something else.

    Now I know this probably isn’t the best way to do it, but it worked for me, so I thought I’d share it here. Hopefully some of you get some use out of it.

    Has anyone actually tried downgrading? I’ll admit I’m a little hesitant to downgrade from 2.6 to 2.5.1 for fear of running into even more problems. Are there any major database changes between the 2 versions that would cause any issues? I may give it a shot later today and post the results.

    Edit: Just read the link above, apparently it’s safe to do.

    In reply to: bbpress update soon?

    I wish I knew about the integration problem before I upgraded to 2.6. I’m experiencing more problems than the upgrade is worth. Like someone said above, 2.6 is not really anything special.

    Is there any surefire way of downgrading back to WordPress 2.5.1? I have backups but made a few posts since then and don’t want to lose them.

Viewing 3 replies - 1 through 3 (of 3 total)