[ADMN/WEB] OKB3 - Bulletin Board Bridge - Now on BukkitDev! [1337]

Discussion in 'Inactive/Unsupported Plugins' started by Kalman Olah, Jun 2, 2011.

  1. Offline

    Kalman Olah

  2. Offline

    fortiiiZ

    @Kalman Olah
    Hiho.. I got a problem with setting fbans / frank, because bbb can't find any ranks.
    When a user sync themself or syncroning by fsyncall then he got the correct groups.

    But by setting a rank I got the message, that there is no rank matching ex. ''2".
    And banning also won't work.

    I use phpbb3, securemode and PEX1.14

    Code:
    general:
    #Will you be running Bulletin Board Bridge in 'normal' mode, or 'secure' mode?
        mode: secure
        enable-whitelist: 'true'
        enable-nickname-syncing: 'false'
        enable-synced-banning: 'false'
        enable-promotion-track: 'true'
        enable-rank-changing: 'true'
        enable-post-count-rewarding: 'true'
        enable-anonymous-stat-tracking: 'true'
    #If you opted for normal mode, fill this in
    modes:
        normal:
            user-table: mybb_users
            minecraft-login-name-field: username
            rank-id-field: usergroup
            multitable:
                enable-multiple-tables: 'false'
                second-table: second_table
                user-id-field-in-user-table: user_id_field_user_table
                user-id-field-in-second-table: user_id_field_second_table
    #If you opted for secure mode, fill this in
        secure:
    #forum type: options are phpbb, smf, vbulletin, kunena, xenforo, wbb, ipb, mybb, vanilla, #bbpress, custom
            forum: phpbb
    #fill this in if you are using smf, vbulletin, wbb, ipb, mybb
            type1:
                user-table: mybb_users
                username-field: username
                password-field: password
                rank-id-field: usergroup
    #fill this in if you are using phpbb, bbpress or vanilla
            type2:
                user-table: phpbb_users
                username-field: username
                password-field: user_password
                rank-id-field: group_id
                location-of-passgen-php: http://***********/passgen.php
                password-set-in-config-inc-php: ****************
    #fill this in if you are using kunena or xenforo
            type3:
                user-table: xf_user
                rank-id-field: user_group_id
                username-field: username
                password-field: data
                second-table: xf_user_authenticate
                user-id-field-in-user-table: user_id
                user-id-field-in-second-table: user_id
    #fill this in if you are using a custom encryption
            type4:
                user-table: user_table
                username-field: username_field
                password-field: password-field
                rank-id-field: rank_group_field
                location-of-passgen-php: http://yoursite.com/passgen.php
                password-set-in-config-inc-php: 12345pass
    mysql-connection:
        mysql-host: localhost
        mysql-user: *************
        mysql-password: **************
        mysql-database-name: **************
    #Map your rank IDs to groups here. world-specific overwrites default. You NEED atleast 1
    #entry under worlds, even if the world doesn't exist.
    group-mapping:
        default:
            '2': Guest
            '12': Member
            '11': VIP
            '8': FMod
            '9': ServMod
            '10': SuperMod
            '5': Admin
            '13': Banned
            '14': Banned
        worlds:
            exampleworld1:
                '1': default
                '2': Admin
    extras:
        whitelist:
            kick-message: Enter ******** and register to play here!
            use-as-blacklist: 'true'
            groups:
                '1': 'true'
                '2': 'false'
        nickname-syncing:
            nickname-field-in-usertable: username
        synced-banning:
            banned-user-forum-rank-id: '13'
            unbanned-user-forum-rank-id: '12'
            ban-message: You are banned! For more informations visit **********
        promotion-track:
            track: 2|12|11
        rank-changing:
            identifiers:
                '1': NickNameforRank1
                '7': NickNameforAnotherRank
        post-count-rewarding:
            currency-reward-per-post: '40'
            post-count-field-in-user-table: 'user_posts'
     
  3. Offline

    Kalman Olah

    You need to set up identifiers for the /frank command, like this:
    Code:
        rank-changing:
            identifiers:
                '2': THISISARANK
    now you can do /frank <name> THISISARANK to set them to rank '2'
     
    fortiiiZ likes this.
  4. Offline

    fortiiiZ

    sounds logical :D Thank you :)

    edit: soorry ._. now I got it in your description
    How germans say: "reading educates"


     
  5. Offline

    Bios Element

    Pretty sure I've gotten most of the 'tricky' bits down, but it doesn't seem to want to let me login. I 'do' have a space in my forum username but I tried renaming myself and changing the OKB3 'username' field to an id or e-mail and it still didn't work and it doesn't return any errors beyond "Username/password incorrect". Thoughts? And here's my config. (Using Xenforo.)

    Code:
    general:
        mode: secure
        enable-whitelist: 'false'
        enable-nickname-syncing: 'false'
        enable-synced-banning: 'false'
        enable-promotion-track: 'false'
        enable-rank-changing: 'false'
        enable-post-count-rewarding: 'false'
        enable-anonymous-stat-tracking: 'true'
    modes:
        normal:
            user-table: user_table
            minecraft-login-name-field: minecraft_name
            rank-id-field: rank_group_field
            multitable:
                enable-multiple-tables: 'false'
                second-table: second_table
                user-id-field-in-user-table: user_id_field_user_table
                user-id-field-in-second-table: user_id_field_second_table
        secure:
            forum: xenforo
            type1:
                user-table: user_table
                username-field: username_field
                password-field: password_field
                rank-id-field: rank_group_field
            type2:
                user-table: user_table
                username-field: username_field
                password-field: password_field
                rank-id-field: rank_group_field
                location-of-passgen-php: http://yoursite.com/passgen.php
                password-set-in-config-inc-php: 12345pass
            type3:
                user-table: xf_user
                rank-id-field: user_group_id
                username-field: username
                password-field: data
                second-table: xf_user_authenticate
                user-id-field-in-user-table: user_id
                user-id-field-in-second-table: user_id
            type4:
                user-table: user_table
                username-field: username_field
                password-field: password-field
                rank-id-field: rank_group_field
                location-of-passgen-php: http://yoursite.com/passgen.php
                password-set-in-config-inc-php: 12345pass
    REMOVED SQL PASSWORDS
    
    group-mapping:
        default:
            '1': ExampleGroup1
            '2': ExampleGroup2
        worlds:
            exampleworld1:
                '1': ExampleGroup1
                '2': ExampleGroup2
    extras:
        whitelist:
            kick-message: This is the message a user will see if their group isn't whitelisted.
            use-as-blacklist: 'false'
            groups:
                '2': 'true'
                '1': 'false'
        nickname-syncing:
            nickname-field-in-usertable: nickname_field_user_table
        synced-banning:
            banned-user-forum-rank-id: '0'
            unbanned-user-forum-rank-id: '10'
            ban-message: This is the message a user will see if they are banned.
        promotion-track:
            track: 6|4|68|123|10
        rank-changing:
            identifiers:
                '1': NickNameforRank1
                '7': NickNameforAnotherRank
        post-count-rewarding:
            post-count-field-in-user-table: post-count-field-user-table
            currency-reward-per-post: '40'
    
     
  6. Offline

    Kalman Olah

    If that's the only error you get, it means you're not using the default XenForo password hashing system. Make a dummy user and PM me the password + value in the field "data" in "xf_user_authenticate" for that user.[/CODE][/FONT][/SIZE][/COLOR][/quote]
     
  7. Offline

    SeverityGaming

    Are there any wildcards I can use against the forum rank table that returns all of the "additional_groups" for a SMF forum.

    ie:
    group-mapping:
    default:
    '30': Operator
    '33': Builder
    worlds:
    exampleworld1:
    '33': Visitor

    where additonal_groups, would return something like "16, 30, 21" for three different groups the user is a member of. We user our primary group table for another purpose.
     
  8. Offline

    Kalman Olah

    No.
     
  9. Offline

    SeverityGaming

    I don't suppose you could add the ability to parse a string like that as a TODO, and also create a boolean value if you want to enable that parse. For SMF you are can be a member of multiple groups. Your primary group is in the table "group_id", all other groups are formatted as a string in "additional_groups". A common scenario includes where an admin would set the primary group to a post-based one, and add the MineCraft User tag as an additional group, (along with a few others, maybe some administrative boards or such). The plugin would need this ability to find say group "30" out of a string of groups.

    Respectfully,
    SG
     
  10. Offline

    Kalman Olah

    Having refused to add additional groups, I'll try to keep this short:
    OKB3 has 2 commands that promote/demote someone by changing 1 rank on the forum.
    OKB3 also has 1 command that changes someone's rank on the forum.
    OKB3 also has 2 commands that ban/unban people, by changing 1 rank on the forum.
    Ontop of this OKB3 supports GroupManager, Permissions 3, PEX and bPermissions, some of which have serious issues handling the addition and removal of multiple groups.
    Additionally, I don't care about multiple groups.
    And this is I won't add the ability to parse a string like that as a TODO, not even because you asked so nicely.

    Warrant does support multiple groups, check that out.
     
  11. Offline

    codename_B

    Hey, just a heads up I added some new stuff to the bPermissions API to make setting a single group really easy (if you wanted to use that)
     
  12. Offline

    Kalman Olah

    Code:
    } else if (bpManager != null) {
                    PermissionSet worldperms = bpManager.getPermissionSet(world);
                    List<String> groups = worldperms.getGroups(player);
                    Iterator<String> plrgrp = groups.iterator();
                    if(!groups.isEmpty()){
                        if(!(groups.get(0).equals(groupname) && groups.size() == 1)){
                            worldperms.addGroup(player,groupname);
                            while(plrgrp.hasNext()){
                                String nextgroup = plrgrp.next();
                                if(!nextgroup.equals(groupname)){
                                    worldperms.removeGroup(player, nextgroup);
                                }
                            }
                        }
                    }
                }
    Using this right now. Look alright? :)
     
  13. Offline

    codename_B

  14. Offline

    Kalman Olah

  15. Offline

    codename_B

    Yeah no worries - I figured why not have a nice easy method for you?
     
  16. Offline

    Kalman Olah

    Cool, thanks bro.

    Version 3.0.3
    • Fixed a small issue where OKB3 would not horribly devastate your groups if one of the groups you had was your correct forum group.
     
  17. Offline

    fortiiiZ

    hmmm,.. I think I've something miss configured, because when I try to use /frank .. he get the rank in permissions, but nothing happens in the forum:

    Info:
    phpbb3 (newest)
    OKB3.0.3
    Secure-Mode

    I'm sure, that the rangID's are the real one.

    Code:
    general:
    #Will you be running Bulletin Board Bridge in 'normal' mode, or 'secure' mode?
        mode: secure
        enable-whitelist: 'true'
        enable-nickname-syncing: 'false'
        enable-synced-banning: 'false'
        enable-promotion-track: 'true'
        enable-rank-changing: 'true'
        enable-post-count-rewarding: 'true'
        enable-anonymous-stat-tracking: 'true'
    #If you opted for normal mode, fill this in
    modes:
        normal:
            user-table: mybb_users
            minecraft-login-name-field: username
            rank-id-field: usergroup
            multitable:
                enable-multiple-tables: 'false'
                second-table: second_table
                user-id-field-in-user-table: user_id_field_user_table
                user-id-field-in-second-table: user_id_field_second_table
    #If you opted for secure mode, fill this in
        secure:
    #forum type: options are phpbb, smf, vbulletin, kunena, xenforo, wbb, ipb, mybb, vanilla, #bbpress, custom
            forum: phpbb
    #fill this in if you are using smf, vbulletin, wbb, ipb, mybb
            type1:
                user-table: mybb_users
                username-field: username
                password-field: password
                rank-id-field: usergroup
    #fill this in if you are using phpbb, bbpress or vanilla
            type2:
                user-table: phpbb_users
                username-field: username_clean
                password-field: user_password
                rank-id-field: group_id
                location-of-passgen-php: http://***************/passgen.php
                password-set-in-config-inc-php: ***********************
    #fill this in if you are using kunena or xenforo
            type3:
                user-table: xf_user
                rank-id-field: user_group_id
                username-field: username
                password-field: data
                second-table: xf_user_authenticate
                user-id-field-in-user-table: user_id
                user-id-field-in-second-table: user_id
    #fill this in if you are using a custom encryption
            type4:
                user-table: user_table
                username-field: username_field
                password-field: password-field
                rank-id-field: rank_group_field
                location-of-passgen-php: http://yoursite.com/passgen.php
                password-set-in-config-inc-php: 12345pass
    mysql-connection:
        mysql-host: localhost
        mysql-user: **************
        mysql-password: ***************
        mysql-database-name: *******************
    #Map your rank IDs to groups here. world-specific overwrites default. You NEED atleast 1
    #entry under worlds, even if the world doesn't exist.
    group-mapping:
        default:
            '2': Guest
            '12': Member
            '11': VIP
            '8': FMod
            '9': ServMod
            '10': SuperMod
            '5': Admin
            '13': Banned
            '14': Banned
        worlds:
            exampleworld1:
                '1': default
                '2': Admin
    extras:
        whitelist:
            kick-message: Enter www.********* and register to play here!
            use-as-blacklist: 'true'
            groups:
                '1': 'true'
                '2': 'false'
        nickname-syncing:
            nickname-field-in-usertable: username
        synced-banning:
            banned-user-forum-rank-id: '13'
            unbanned-user-forum-rank-id: '12'
            ban-message: You are banned! For more informations visit ************
        promotion-track:
            track: 2|12
        rank-changing:
            identifiers:
                '2': Guest
                '12': Member
                '11': VIP
                '8': FMod
                '9': ServMod
                '10': SuperMod
                '5': Admin
                '13': Banned
                '14': Banned
        post-count-rewarding:
            currency-reward-per-post: '1'
            post-count-field-in-user-table: 'user_posts'
    Someone can help me with phpbb3? :> please!
     
  18. Offline

    Alienware777

    So I have it set up to where there are no errors in the console, however it kicks everyone who joins, even if they have a forum account. Not sure what I did wrong here. Although I might have an idea of what it is. When you put down vbulletin as your forum, does it still use the info in type1? Because I have a prefix of vb for every table, so if it doesn't use type1 that could be messing it up. Heres my config file: http://pastebin.com/FvawJCen
     
  19. Offline

    fortiiiZ

    @Alienware777
    in the configfile you have to enter the correct und full tablename.. I use phpbb3 and my prefix is phpbb.. therefore I've to enter phpbb_users.

    And yes, type1 is for vb!
     
  20. Offline

    Matt G

    How would i make it so it automatically syncs with the forum. I cannot figure out how to do it. Am I missing something?
     
  21. Offline

    fortiiiZ

    which mode you are using?
     
  22. Offline

    Alienware777

    Thanks, but I'm fairly sure I have the correct table names. In phpmyadmin I go to the database forum, then the table vbuser. I can then see everyones info in the fields username/password/usergroupid. Maybe I'm being retarded and missing something obvious though... :confused:
     
  23. Offline

    fortiiiZ

    @Alienware777
    Ah sorry, I didn't know the tablenames of vbuser :D

    I had the same situation,.. I turned the "whitelist" to 'false' in server.properties. I think.. otherwise you'll be kicked all the time. Maybe the server ignores the whitelist configuration in OKB3-Config when it is enabled in server.properties. I never test it. I just know, that my Admins and Member are able to connect now :D

    Maybe you have a mate who can test it with you?
    - turn the whitelist off in server.properties
    - give your mate Rank 8...

    maybe you have to add Rank8 to your Groupmapping then, because okb3 don't know Rank 8.

    Sorry 4 bad englisch :X
     
  24. Offline

    Alienware777

    Rank 8 is banned on the forum, so what would be the permissions group? And when I set whitelist to off, then anyone can join the game, even if they're not signed up on the forum.
     
  25. Offline

    fortiiiZ

    First.. the server take the server.properties file... When you have whitelist true and you are not entered the names into the whitelist, you will be kicked...
    You have to turn it off. OKB3 don't use the real whitelist!

    When a group is listed as whitelisted .. or blacklisted in okb3 config.yml then the user is allowed to join.. or even not!

    Look at my picture. I test it.
    The Rank 2 ist for registred users, which awaits the membership for the group "Member". group 2 is not allowed to join the server and will be kicked with the message which you entered in /plugins/OKB3/config.yml

    Rank 13/14 are banned or temp banned ,.. they also are not allowed to join the server.

    Maybe I want the configfile?

    [​IMG]

    @Kalman Olah

    I now understand the config ;D I hope.. but I've just a little prob with /frank and /fban
    When I try to ban a user, the user becomes kicked out of the server with the "banned"-message.. but the forum-group does not change to banned... u know y? And when I turn the membership of a group from a mod to a member.. he just update the permissions.. but nothing happens in the forum :7

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 15, 2016
  26. Offline

    Kalman Olah

    First off, thanks for helping out others in this thread. I appreciate it.

    Second, make sure that your MySQL user has remote UPDATE permissions, or it won't be able to update the forum rank. Also make sure that you do this:
    Code:
    enable-synced-banning: 'true'
    I'd take a look at the MySQL user permissions first.
     
  27. Offline

    fortiiiZ

    @Kalman Olah
    I think I got the problem :7

    The SQL-permissions are fine,... but when I update the group_id by myself,... nothing happens, too^^
    Problem.. I won't use "RANKS" .. I will switch the usergroup! But in the table called phpbb_users there exists a field: group_id.. but the change has no effect to the real group.

    I test it with /fban /frank .. he switches the group ID correctly... but now I can see, that there exists a relationship table called phpbb_user_group. The change of groupID just has an effect, when the user is also entered in the relationship table.

    the group_id in table users just shows the MAINGRP.. but when he isnt't in the same group at the other table (banned for example) it doesn't care^^

    So I've to switch the group ID in two tables..... -.-
    Is it possible right now? :X
     
  28. Offline

    Kalman Olah

    Yeah, use "user_rank" instead of "group_id". Rank IDs can be found in phpbb_ranks.
     
  29. Offline

    fortiiiZ

    ;) kay I'm sure that this would be better.
    Thankz alot :>
     
  30. Offline

    Alienware777

    Thanks a bunch fortiiz! Its working perfectly for me now! :D Might I ask why everyone says to enable synced banning? Personally I would rather want someone to be able to banned on the server, and not on the forums. That way they have a way of contacting the other staff and having someone review the ban if they feel that they were wronged.

    Also, is there a way to make it put a message in chat when someone was kicked for not being on the forum? Atm it says someone has joined, and doesn't even say they were kicked or left. So people are going to be saying hi to newcomers who aren't even on the server because they were kicked.

    Edit: How long does it take to update itself to allow a newly registered person to play on the server? Everyone whos registered after I put the whitelist on isn't able to join.
     
  31. Offline

    Gwynei

    Is it correct that this plugin won't function with permissionsBukkit? Also with the SuperpermsBridge plugin, I get all sorts of Java error messages... On a clean bukkit testserver with just the permissions+OKB3 plugin.

    When I installed bPermissions the errors were gone...
     

Share This Page