[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

    Donny

    Thanx
     
  3. Offline

    walruscode

    I have OKB3 set up properly, as far as I know, and when a user logs in with a username that matches a minecraft username in the database, it says (in the console):

    2011-06-20 21:30:19 [INFO] [OKB3] (user)'s ranks successfully updated.

    But, it doesn't actually update the ranks. I'm using Permissions, and ranks for each individual non-citizen (Citizen is the deafult rank) user is defined in the Permissions/World/users.yml file. Using xAuth for login. OKB3 is in old-school mode. Also, even when a new username is added to the MySQL table used for minecraft usernames and that user logs onto the server for the first time, it will say their rank was updated, and it STILL won't have any effect on their actual rank.

    Here are files I thought you might need to find out the problem. If any more info is needed, please tell me.

    OKB3/config.yml
    Show Spoiler
    Code:
    mode: old-school
    
    '###The mode the plugin will run in, options are ''normal'' or ''old-school''###': ''
    ? '###In old-school mode, the server does NOT check a username/password! It just gets
        a rank from your forum DB and sets it as your group###'
    : ''
    ? '###If you''re using old-school mode, fill in the section labeled ''old-school-mode''
        If not, fill in the section labeled ''normal-mode'''
    : ''
    mysql-connection-info:
        mysql-host: localhost
        mysql-user: root
        mysql-password: *********
        mysql-database-name: phpbb
    old-school-mode:
        usertable: phpbb_profile_fields_data
        minecraftname-field: pf_mine_user
        rank-field: user_id
        enable-multiple-tables: false
        '###If enable-multiple-tables is true, fill in the multitable section': ''
        multitable:
            minecraftname-table: phpbb_profile_fields_data
            useridfield-in-minecraftname-table: mine_user
            useridfield-in-usertable: user_id
    normal-mode:
        type-of-forum: phpbb
        ? '###Current supported forum types md5 for MD5 encryption-based forums,phpbb
            for phpBB3, smf for SMF, vbulletin for vBulletin, mybb for myBB, xenforo for
            XenForo, ipb for IPB, wbb for WBB, kunena for Kunena###'
        : ''
        '###Fill in the fields for the forum type that matches your type-of-forum value': ''
        location-of-passgenphp: http://yoursite.com/passgen.php
        password-set-in-config-inc-php: 12345pass
        md5:
            usertable: user_table
            username-field: username_field
            userpassword-field: user_pass_field
            rank-field: rank_field
        phpbb:
            usertable: phpbb_users
            username-field: user_id
            userpassword-field: user_id
            rank-field: rank_id
        smf:
            usertable: user_table
            username-field: username_field
            userpassword-field: user_pass_field
            rank-field: rank_field
        vbulletin:
            usertable: user_table
            username-field: username_field
            userpassword-field: user_pass_field
            rank-field: rank_field
        mybb:
            usertable: user_table
            username-field: username_field
            userpassword-field: user_pass_field
            rank-field: rank_field
        xenforo:
            usertable: user_table
            rank-field: rank_field
            username-field: username_field
            password-table: pass_table
            password-field: pass_field
            useridfield-in-usertable: user_id_field
            useridfield-in-passtable: user_id_field
        ipb:
            usertable: user_table
            username-field: username_field
            userpassword-field: user_pass_field
            rank-field: rank_field
        wbb:
            usertable: user_table
            username-field: username_field
            userpassword-field: user_pass_field
            rank-field: rank_field
        kunena:
            usertable: user_table
            rank-table: rank_table
            rank-field: rank_field
            username-field: username_field
            password-field: pass_field
            useridfield-in-usertable: user_id_field
            useridfield-in-rank-table: user_id_field
    groups:
        '###''GROUP_ID IN PHPBB_USERS''=GROUPMANAGER GROUP###': ''
        '19': Griefer
        '2': Citizen
        '17': Helper
        '16': SemiMod
        '4': Mod
        '15': SemiAdmin
        '14': Admin
        '5': SuperAdmin
        '18': VIP
    whitelist:
        enable-whitelist: 'false'
        use-as-blacklist: 'false'
        kick-message: This is the message a user will see if their group isn't whitelisted.
        whitelist-groups:
            '###''''RANKID IN RANKTABLE'': true'' TO ALLOW A RANK TO JOIN###': ''
            '###''''RANKID IN RANKTABLE'': false'' TO NOT ALLOW A RANK TO JOIN###': ''
            '1': 'true'
            '657': 'false'
    '###If use-as-blacklist is enabled, groups that aren''t specified on the whitelist will count as blacklisted###': ''


    Permissions/World/groups.yml
    Show Spoiler
    Code:
    groups:
        Griefer:
            default: false
            permissions:
            - 'lwc.blockinventory'
            - 'commandbook.motd'
            - 'commandbook.rules'
            - 'commandbook.who'
            inheritance: []
            info:
                rank: 5
                prefix: '[&8Griefer&f] '
                build: false
                suffix: ''
        Citizen:
            default: true
            permissions:
            - 'MobBounty.mb'
            - 'multihome.home'
            - 'multiverse.portal.*'
            - 'mcmmo.ability.woodcutting'
            - 'mcmmo.ability.mining'
            - 'mcmmo.ability.axes'
            - 'mcmmo.ability.excavation'
            - 'mcmmo.ability.swords'
            - 'mcmmo.ability.unarmed'
            - 'mcmmo.ability.herbalism'
            - 'mcmmo.skills.taming'
            - 'mcmmo.skills.mining'
            - 'mcmmo.skills.repair'
            - 'mcmmo.skills.unarmed'
            - 'mcmmo.skills.archery'
            - 'mcmmo.skills.herbalism'
            - 'mcmmo.skills.excavation'
            - 'mcmmo.skills.swords'
            - 'mcmmo.skills.acrobatic'
            - 'mcmmo.skills.axes'
            - 'commandbook.who'
            - 'commandbook.motd'
            - 'commandbook.rules'
            - 'commandbook.spawn'
            - 'commandbook.time.check'
            - 'lwc.protect'
            - 'general.player-info'
            - 'iConomy.list'
            - 'iConomy.payment'
            - 'iConomy.rank'
            - 'ChestShop.shop.create'
            - 'ChestShop.shop.buy'
            - 'ChestShop.shop.sell'
            - 'worldguard.region.claim'
            - 'warp.to.*'
            - 'warp.world.within.world'
            - 'warp.world.to.world_nether'
            - 'warp.world.to.world'
            - 'lc.level.*'
            - 'containerprotect.use'
            - 'general.spawn'
            - 'SpawnX.spawn'
            - 'commandbook.msg'
            - 'warp.create.private'
            - 'warp.create.public'
            - 'warp.create.global'
            - '-multiverse.portal.list'
            - '-multiverse.portal.rename'
            - '-multiverse.portal.destination'
            - '-multiverse.portal.select'
            - '-multiverse.portal.remove'
            - '-multiverse.portal.create'
            - '-nocheat.notify'
            inheritance: []
            info:
                rank: 20
                prefix: '[Citizen] '
                build: true
                suffix: ''
                warp:
                    prices:
                        to:
                            global: 250
                            public: 250
                            private: 250
                        create:
                            public: 2500
                            global: 2500
                            private: 2500
        Helper:
            default: false
            permissions:
            - 'citizens.basic.create'
            - 'citizens.basic.settext'
            - 'citizens.basic.help'
            - 'citizens.general.setname'
            - 'citizens.general.remove.singular'
            - 'citizens.help'
            - 'citizens.general.setitem'
            - 'citizens.general.move'
            - 'citizens.general.tp'
            - 'citizens.general.getid'
            - 'citizens.general.select'
            - 'citizens.general.talkwhenclose'
            - 'citizens.general.lookatplayers'
            - 'citizens.trader.help'
            - 'citizens.trader.create'
            - 'citizens.trader.stock'
            - 'citizens.trader.viewmoney'
            - 'citizens.trader.balance'
            - 'citizens.blacksmith.create'
            - 'citizens.blacksmith.repair'
            - 'citizens.healer.help'
            - 'citizens.healer.create'
            - 'citizens.healer.status'
            - 'citizens.healer.level'
            - 'citizens.wizard.help'
            - 'citizens.wizard.create'
            - 'citizens.wizard.locations'
            - 'citizens.wizard.addloc'
            - 'citizens.wizard.removeloc'
            - 'citizens.wizard.changeteleport'
            - 'citizens.wizard.useteleport'
            - 'warp.command.list'
            - 'warp.command.search'
            - 'warp.command.info'
            - 'commandbook.say.me'
            - 'commandbook.msg'
            - 'commandbook.slap'
            - 'commandbook.teleport.other'
            - 'commandbook.call'
            - 'worldedit.selection.*'
            - 'IPGet.self'
            - 'IPGet.other'
            inheritance:
            - citizen
            info:
                rank: 30
                prefix: '[&5Helper&f] '
                build: true
                suffix: '&f'
                warp:
                    prices:
                        to:
                            global: 250
                            public: 250
                            private: 250
                        create:
                            public: 2500
                            global: 2500
                            private: 2500
        SemiMod:
            default: false
            permissions:
            - 'commandbook.teleport'
            - 'worldguard.region.info'
            - 'worldguard.region.define'
            - 'worldguard.region.list'
            - 'bb.admin.info'
            - 'kiwiadmin.kick'
            - 'mywarp.warp.*'
            - 'herochat.admin'
            - 'p2.demote'
            - 'p2.promote'
            - 'warp.admin.warp.others'
            - 'commandbook.broadcast '
            - 'permissions.promote.promote'
            - 'permissions.promote.demote'
            inheritance:
            - helper
            info:
                rank: 40
                prefix: '[&dSemiMod&f] '
                build: true
                suffix: '&f'
                warp:
                    prices:
                        to:
                            global: 250
                            public: 250
                            private: 250
                        create:
                            public: 2500
                            global: 2500
                            private: 2500
        Mod:
            default: false
            permissions:
            - 'lwc.mod'
            - 'commandbook.spawn'
            - 'commandbook.time'
            - 'commandbook.return'
            - 'worldguard.region.info'
            - 'worldguard.region.define'
            - 'worldguard.region.list'
            - 'bb.admin.info'
            - 'general.teleport'
            - 'general.time'
            - 'kiwiadmin.kick'
            - 'mywarp.warp.*'
            - 'herochat.admin'
            - 'lwc.mod'
            - 'kiwiadmin.tempban'
            - 'kiwiadmin.ban'
            - 'kiwiadmin.unban'
            - 'p2.demote'
            - 'p2.promote'
            - 'permissions.promote.promote'
            - 'permissions.promote.demote'
            inheritance:
            - SemiMod
            info:
                rank: 50
                prefix: '[&eMod&f] '
                build: true
                suffix: '&f'
                warp:
                    prices:
                        to:
                            global: 250
                            public: 250
                            private: 250
                        create:
                            public: 2500
                            global: 2500
                            private: 2500
                plimit: 49
                dlimit: 49
        SemiAdmin:
            default: false
            permissions:
            - 'herochat.admin'
            - 'herochat.color'
            - 'lwc.admin'
            - 'worldguard.god'
            - 'worldguard.heal'
            - 'worldguard.region.*'
            - 'worldguard.slay.other'
            - 'bb.admin.info'
            - 'kiwiadmin.kick'
            - 'kiwiadmin.ban'
            - 'kiwiadmin.unban'
            - 'nocheat.*'
            - 'antihack.canfly'
            - 'vanish.vanish'
            - 'vanish.vanish.list'
            - 'bb.admin.rollback'
            - 'xauth.admin.toggle'
            - 'permissions.promote.rank'
            - 'permissions.demote.rank'
            - 'permissions.promote.promote'
            - 'permissions.promote.demote'
            - '-nocheat.notify'
            inheritance:
            - mod
            info:
                rank: 70
                prefix: '[&3SemiAdmin&f] '
                build: true
                suffix: '&f'
                warp:
                    prices:
                        to:
                            global: 250
                            public: 250
                            private: 250
                        create:
                            public: 2500
                            global: 2500
                            private: 2500
                plimit: 69
                dlimit: 69
        Admin:
            default: false
            permissions:
            - 'worldguard.*'
            - 'bb.admin.*'
            - 'ChestShop.shop.create'
            - 'kiwiadmin.*'
            - 'lwc.admin'
            - 'nocheat.*'
            - 'antihack.canfly'
            - 'vanish.vanish'
            - 'vanish.vanish.list'
            - 'xauth.admin.*'
            - 'lc.admin'
            - 'containerprotect.open-any'
            - 'containerprotect.destroy-any'
            - 'ChestShop.shop.admin'
            - 'permissions.promote.rank'
            - 'permissions.demote.rank'
            - 'permissions.promote.promote'
            - 'permissions.promote.demote'
            - 'easyban.*'
            - '-nocheat.notify'
            inheritance:
            - semiadmin
            info:
                rank: 80
                prefix: '[&9Admin&f] '
                build: true
                suffix: '&f'
                warp:
                    prices:
                        to:
                            global: 250
                            public: 250
                            private: 250
                        create:
                            public: 2500
                            global: 2500
                            private: 2500
                dlimit: 79
                plimit: 79
        SuperAdmin:
            default: false
            permissions:
            - '*'
            - '-mcmmo.motd'
            - '-nocheat.notify'
            inheritance:
            - admin
            info:
                rank: 90
                prefix: '[&4SuperAdmin&f] '
                build: true
                suffix: '&f'
                warp:
                    prices:
                        to:
                            global: 250
                            public: 250
                            private: 250
                        create:
                            public: 2500
                            global: 2500
                            private: 2500
        Op:
            default: false
            permissions:
            - '*'
            - '-nocheat.notify'
            - '-mcmmo.motd'
            inheritance: []
            info:
                rank: 100
                prefix: '[&cGod&f] '
                build: true
                suffix: '&f'
                warp:
                    prices:
                        to:
                            global: 250
                            public: 250
                            private: 250
                        create:
                            public: 2500
                            global: 2500
                            private: 2500
        VIP:
            default: false
            permissions:
            - 'nocheat.*'
            - 'antihack.canfly'
            - '-nocheat.notify'
            inheritance: []
            info:
                rank: 95
                prefix: ''
                build: true
                suffix: ''
    tracks:
        rank:
            - Griefer
            - Citizen
            - Helper
            - SemiMod
            - Mod
            - SemiAdmin
            - Admin
        VIP:
            - VIP1
            - VIP2
            - VIP3
            - VIP4
        God:
            - Griefer
            - Citizen
            - Helper
            - SemiMod
            - Mod
            - SemiAdmin
            - Admin
            - SuperAdmin
            - Op


    xAuth/config.yml
    Show Spoiler
    Code:
    session:
        verifyip: true
        timeout: 3600
    notify:
        limit: 5
    login:
        strikes:
            amount: 3
            enabled: true
            action: kick
    registration:
        enabled: true
        forced: true
    password:
        complexity:
            uppercase: false
            enabled: false
            symbols: false
            numbers: false
            lowercase: false
        min-length: 4
    filter:
        allowed: abcdefghijklmnopqrstuvwxyz0123456789_
        enabled: true
        block-blankname: true
    misc:
        allow-changepw: true
        allowed-cmds:
        - /register
        - /login
        autosave: true
        protect-location: true
     
  4. Offline

    Donny

    Same problem as above. Setup the same.
     
  5. Offline

    WNxRev

    A suggestion or two:


    Allow the plugin to update a field like a custom profile field through the forums tables for things like their Minecraft username.

    Make a command that resyncs everyone that is online.
     
  6. Offline

    Kalman Olah

    Your old-school setup is all wrong.
    The correct setup would be the following:

    Code:
    old-school-mode:
        usertable: phpbb_users
        minecraftname-field: pf_mine_user
        rank-field: user_rank
        enable-multiple-tables: true
        '###If enable-multiple-tables is true, fill in the multitable section': ''
        multitable:
            minecraftname-table: phpbb_profile_fields_data
            useridfield-in-minecraftname-table: user_id
            useridfield-in-usertable: user_id
    I'll consider adding a command that resyncs a single user. Not all of them, this would cause quite some lag, I believe.

    Code:
    Allow the plugin to update a field like a custom profile field through the forums tables for things like their Minecraft username.
    For normal mode, I take it? I'll add it soon. I think I'll start on it later today if I have the time :).

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  7. Offline

    walruscode

    I apologize for my stupidity. I was up until 4 am working on the server, I'm not surprised I made such a dumb mistake. Thanks :)
     
  8. Offline

    Kalman Olah

    No problem :)
     
  9. Offline

    Salax

    IPB support? :D

    Thanks!
     
  10. Offline

    WNxRev

    Yessir, normal mode. Much appreciated.

    Also, I'm not quite sure why it'd cause lag. I think a simple for loop could handle it. I'm not the expert, but that's my assumption.
     
  11. Offline

    Kalman Olah

    The least you could do is actually read the post. If you had done that, you'd know there is IPB support.

    Updated to v1.2.0
    Code:
    Version 1.2.0
    
        Added the /bbb force command. This allows you to force an update of someone's ranks. Permission node: /bbb force.
    
    Version 1.1.0
    
        Added nickname sync support.
    
    EDIT:
    @xREVOLUT1ONZx

    I'm afraid I'll need more information if I am to add your field updating feature. I need to know what table you want it in, and how to update the field(as in, insert a new row every time, or update a field based on USER IDs, etc...). Come to think of it, this could be such a pain in the ass I may not even add it. We'll see.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  12. Offline

    NitrosDragon

    OKB3 isn't adding users to Group Manager's users.yml upon syncing.
    By default, users do not have building privileges. I can promote them to Builders on the forums, they sync, and are still in the default group on my server.

    I understand that OKB3 probably isn't supposed to automatically add them, but it seems silly to try syncing a person not in users.yml .
     
  13. Offline

    Kalman Olah

    OKB3 doesn't add anyone to users.yml upon syncing. Their groups ARE INSTANTLY CHANGED, though. They are added to users.yml when GroupManager saves, by GroupManager, not by my plugin. ONCE AGAIN: A player's groups/permissions are INSTANTLY changed upon a successful sync. They won't appear in the users.yml until GroupManager saves the file though. This does not change anything, as they still have the new groups/permissions instantly.


    I don't get how it's silly to sync someone who's not in users.yml. Even if they aren't in the actual users.yml, their permissions and ranks are loaded, and are changed, upon a successful sync.


    If you had promoted a user to Builder status, and that forum group was correctly mapped to GroupManager rank "Builder" in config.yml, it should have worked. If it did not work, you did not configure OKB3 correctly. Please keep in mind that some forums have two fields for a user: a group field, and a rank field. Perhaps you put someone in a builder group, but they didn't actually get a builder rank? In this case, you should change the rank-field in your config.yml. You can PM me for more help, if needed.



    I figured I should take screenshots to prove my plugin actually works. Here you go.
    Show Spoiler

    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
     
  14. Offline

    WNxRev

    The custom profile field (for phpbb) is stored in its own table labelled "phpbb_profile_fields_data" by default. A new row is added containing their user ID and that custom profile field each in their own column.

    EDIT:
    The results of /bbb force (name)
    [​IMG]
    I have the permission node "*".
     
  15. Offline

    NitrosDragon

    Excuse my ignorance, I'm still getting the hang of how my forums work. Thank you for your reply.
     
  16. Offline

    Salax

    By that I meant:

    "There is IPB support! Awesome! Thanks!"
     
  17. Offline

    Kalman Olah

    Are you using GroupManager or Permissions?
    (I'll take a look at the custom field updating later.)

    It's ok. Hope it's working for you now :).

    Oh, didn't quite understand you correctly, then :(.

    Updated to v1.2.1​
    • Fixed the permission check for GroupManager.
    Sorry about that.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  18. Offline

    NeatMonster

    Any progress with subgroups support? (Yes, it's all the time the same message. :rolleyes:)
     
  19. Offline

    Kalman Olah

    =/
     
  20. Offline

    WNxRev

    GroupManager, although it appears you've figured it out.

    Works as advertised. Thanks. :)
     
  21. Offline

    NeatMonster

    Hello,

    I'm using BBB v1.2.1 with the last version of Permissions.

    I've a loop with this error in the chat and in the console :

    An error occurred while updating the forum database.
    --- Make sure you are a registered user on the forums.
    --- Please double-check your username and password.

    It's the same error as last time. Maybe you've forgotten to correct it in the new builds :rolleyes:.

    Thanks in advance, NeatMonster.
     
  22. Offline

    Kalman Olah

    IS this on login, or when you use a command?
     
  23. Offline

    NeatMonster

    Both.
     
  24. Offline

    Kalman Olah

    Here you go :). You may notice some error messages won't show when you type the wrong password. I'll look into that. Overall, this should do for now :).
     
  25. Offline

    NeatMonster

    This version has fixed my error. Many thanks! :)
     
  26. Offline

    thernztrom

    Hmm, in the config.yml, should the mysql info be the same as the one in the config.inc.php? Because I have two mysql servers, one for minecraft and one for forums.. My bad i didnt read the whole text xD
    But i wonder another thing now: The RANK IN RANK TABLE is that what says under their username on phpBB forums. E.g if im the rank Site Admin then it should be 'Site Admin': Owner for me?
     
  27. Offline

    WNxRev

    EDIT:
    Some configuration file options (in the plugin folder) are harder to find. For example, the location of the file "passgen.php" is a little elusive as well as the password for config.inc.php. I passed over those two options when reconfiguring the plugin, causing strange errors. I recommend you change the layout of the configuration file so other users don't have the same problem. But plugin works as advertised on version 1.2.2.
     
  28. Offline

    Kalman Olah

    IF you go into the MySQL table phpbb_users, you'll notice a field called user_rank. This is where your rank is stored. A group in PHPBB is not a rank. In the admin control panel of phpbb you can configure certain groups to receive a rank though. If you go into the phpbb_ranks table, or something along the lines of that, you should notice that there will be IDs matching rank names, e.g.: Site Admin - > 1, Global Mod - > 2 ...etc... These are the values you fill in in the config.yml. For you, it should probably be '1': Owner.

    It will be taken into consideration :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  29. Offline

    thernztrom

    EDIT: I'm in phpbb_ranks now and pressed "Browse distinct values" on a field called "rank_title", then all the ranks came up listed, but all of them the same number as rows, 1. It was row = 1 rank_title = Admin, row = 1 rank_title = Default user, etc etc ? :/
     
  30. Offline

    Kalman Olah

    Not a clue. There should be a link somewhere that lets you view the contents of the table =/
     
  31. Offline

    thernztrom

    Oh, LOL, haha :) Im so stupid. It got solved, i went deeper than i needed. Thanks for all you help tho! ;)

    Now as I think it was setup, it gives me green light in the Console, says everything went good, commands in-game "work". The thing is when i logged on i did /bbb sync <my pass>, and it returned as wrong password. But its not <.< Know where the error possible could occur? :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016

Share This Page