[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

    cyberjacob

    what do you think of my suggestion/request kalman?
     
  3. Offline

    Malchus

    This plugin is spectacular. However, for some reason whenever /fsyncall it demoted one of my admins to Member, when his group is the same as mine and I don't get demoted.
    Using latest build and latest bukkit build.
    Code:
    general:
        mode: secure
        enable-whitelist: 'false'
        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'
    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: xf_user
                username-field: username
                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: moonli18
        mysql-password: (not showing)
        mysql-database-name: moonli18_moonlightserver
    group-mapping:
        default:
            '5': vip1
            '1': Admin
            '2': Builder
            '7': vip2
            '8': vip3
            '9': vip4
            '10': vip5
        worlds:
            exampleworld1:
                '1': ExampleGroup1
                '2': ExampleGroup2
    extras:
        whitelist:
            kick-message: You have not been whitelisted. Register with your in game name.
            use-as-blacklist: 'false'
            groups:
                '1': 'true'
                '2': 'false'
        nickname-syncing:
            nickname-field-in-usertable: username
        synced-banning:
            banned-user-forum-rank-id: '0'
            unbanned-user-forum-rank-id: '10'
            ban-message: You have been 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: message_count
            currency-reward-per-post: '1'
    
     
  4. Offline

    Kalman Olah

    He needs to have used /sync <username> <password> to receive his forum rank, or the /fsyncall command won't be able to find a rank for him. One of the flaws of secure mode, as it were.
     
  5. Offline

    Malchus

    He has done that. Also it demoted me to vip2 when on the forum my primary user group is Administrator.
    In addition, ever since OKB3 has been implemented I can't change secondary user groups to moderator or admin.
     
  6. Offline

    Kalman Olah

    OKB3 will get your rank ID from the field "rank-id-field: user_group_id". Your group-mapping isn't set up correctly.
     
  7. Offline

    Malchus

    For some reason it is still not working. Do I need to be on the latest build of XF?

    Upgraded to latest build of XF and followed your instructions. For some odd reason there is no change.
    Would you mind elaborating on the necessary steps required to find a solution?

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

    Kalman Olah

    Alright, so, the way OKB3 works is that it fetches the number it finds in your rank-field, and checks group-mapping for a permissions group matching that number. If it finds one, it will attempt to set your permissions group to that group. To make sure that you set everything up correctly, go open the table "xf_user". In specific, look for "user_group_id". The value in that field for YOUR account should be the rank ID for administrator(For example: 7), so you put this in group-mapping:
    Code:
    group-mapping:
        default:
            '7': Admin
        worlds:
            exampleworld1:
                '1': ExampleGroup1
                '2': ExampleGroup2
    What this means is that OKB3 will set someone's Permissions group to "Admin" if they have a value of "7" in the field "user_group_id" in "xf_user".
    You can consult the table "xf_user_group" for a list of IDs and what forum ranks they represent.
    Keep in mind that, since you're running OKB3 in secure mode, people will need to use the /sync <forum user> <forum pass> command to get their ranks synced.
    If you still have issues, PM me your full config, server startup log, and a screenshot of the "xf_user_group" table :).
     
  9. Offline

    bo1g

    This question may have been asked before, but I tried searching the thread and Google for an answer, but to no avail. I have a few members on my site that have spaces in their usernames, so that when they type [ /sync spaced username password ] it gives them an error. Is there a workaround for this, or do their names HAVE to be singles words? I'm currently running secure mode on phpBB3. Thanks in advance.
     
  10. Offline

    Darkseal

    Can someone help me to install it on Woltlab Burning Board 3.1.6? Please i dont understand the install instruction....
     
  11. Offline

    Alex Wollangk

    I was having a hard time pulling data out of the OKB3 sqlite database in PHP so I pulled down the source and modified it so that I can update the config yaml file to direct OKB3 to a mySQL database instead for that data. (I still need to fork the project in github and commit it back up there so you can pull any of my changes over if you want.)

    The problem I'm running into is I'm having a hard time getting all the dependencies set up so I can actually compile it. So far I've pulled in BOSEconomy.jar, bPermissions-1337-SNAPSHOT.jar, craftbukkit-0.0.1-SNAPSHOT.jar, ebean-2.7.3.zip, all the jars from Essentials and iConomy.jar.

    In me.kalmanolah.extras.com.nijikokun.register.payment.methods.MCUR.java I can't seem to find where the Currency and CurrencyList classes comes from.

    I'm also having some difficulties with iConomy. In OKB3 you're referencing the namespace com.nijiko.coelho.iConomy while the version I can find seems to be in the namespace com.iCo6.iConomy.

    Would it be possible for you to add an archive of all the dependencies to the github repository or upload it somewhere and provide a link?

    Thanks,

    Alex Wollangk
     
  12. Offline

    Kalman Olah

    @Alex Wollangk
    Here you go, man. These are the dependencies. You also need CraftBukkit :).
    Among other stuff, OKB3 requires BOSEconomy, Iconomy 4/5/6, EssentialsEcon and MultiCurrency because it uses the Register API for compatability with all major economy plugins.
     

    Attached Files:

  13. Offline

    Alex Wollangk

    Thanks! I set up an account on github and forked OKB3, but I coded my changes against 1.0.3 and forked 1.1.0 so I ended up stepping on some of your 1.1.0 changes when I committed. I should have that straightened out tonight if you want to check it out. (My github account is awollangk)
     
  14. Offline

    Kalman Olah

    Sweet, just set up a pull request when you're finished.
     
  15. Offline

    Alex Wollangk

    I'm not sure if I have the right Permissions version. When I try to compile it can't find com.nijiko.permissions.PermissionHandler methods getGroupObject, getUserObject, addUserInfo, getUserObject or getGroupObject. Is it referencing the wrong PermissionHandler class?
     
  16. Offline

    Kalman Olah

    It is. Try removing all permissions libraries except for PErmissions, importing the correct one, and then adding them back.
     
  17. Offline

    MaKuMo

    Hi There

    I'm having problems with mysql connection. My Hosting company wont let external scripts to access MySQL server. Is there a way to solve this problem?
     
  18. Offline

    Kalman Olah

    No.
     
  19. Offline

    MaKuMo

    So I can't use this plugin? :(
     
  20. Offline

    Alex Wollangk

    That didn't seem to work. The only class I can find named PermissionHandler is com.nijiko.permissions.PermissionHandler. What class should OKMain.permissionHandler be using?
     
  21. Offline

    Kalman Olah

    import com.nijiko.permissions.PermissionHandler;

    That's the one. Keep in mind that both PEX and Permissions 3 have that class there. So remove PEX, add the import and such, and add PEX back to prevent issues.
     
  22. Offline

    Soldier187

    Is hooking into Iconomy when its stored in a mysql db not supported?
     
  23. Offline

    Kalman Olah

    It should be supported, as the Register API is used.
     
  24. Offline

    Soldier187

    Never mind syntax error :p Plugin is flawless thank you. Small donation coming your way when I get mine.
     
  25. Offline

    maxikg

    When i use the command "/sync myuser mypw" i got the following message:
    Code:
    Error: Incorrect username or password.
    and the following error in the logfile:
    Code:
    2011-10-08 11:56:48 [SEVERE] java.net.MalformedURLException: no protocol: null?t=phpbb&u=myuser&p=mypw&s=null
    2011-10-08 11:56:48 [SEVERE]     at java.net.URL.<init>(URL.java:583)
    2011-10-08 11:56:48 [SEVERE]     at java.net.URL.<init>(URL.java:480)
    2011-10-08 11:56:48 [SEVERE]     at java.net.URL.<init>(URL.java:429)
    2011-10-08 11:56:48 [SEVERE]     at me.kalmanolah.okb3.OKReader.main(OKReader.java:13)
    2011-10-08 11:56:48 [SEVERE]     at me.kalmanolah.okb3.OKFunctions.getEncPass(OKFunctions.java:265)
    2011-10-08 11:56:48 [SEVERE]     at me.kalmanolah.okb3.OKCmd.onCommand(OKCmd.java:104)
    2011-10-08 11:56:48 [SEVERE]     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    2011-10-08 11:56:48 [SEVERE]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
    2011-10-08 11:56:48 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:358)
    2011-10-08 11:56:48 [SEVERE]     at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
    2011-10-08 11:56:48 [SEVERE]     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
    2011-10-08 11:56:48 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
    2011-10-08 11:56:48 [SEVERE]     at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    2011-10-08 11:56:48 [SEVERE]     at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    2011-10-08 11:56:48 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    2011-10-08 11:56:48 [SEVERE]     at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
    2011-10-08 11:56:48 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    2011-10-08 11:56:48 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
    2011-10-08 11:56:48 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    2011-10-08 11:56:48 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    The user is stored in a phpbb-Database. I've entered the userdata correctly. In my config.inc.php i've entered the same passwort as in the config.yml.

    Thank you for your help.

    And sorry for my bad english.:oops: I'm from Germany.
     
  26. Offline

    Kalman Olah

    Post your config.yml please :)
     
  27. Offline

    maxikg

    My config.yml:
    Code:
    general:
        mode: secure
        enable-whitelist: 'false'
        enable-nickname-syncing: 'true'
        enable-synced-banning: 'false'
        enable-promotion-track: 'false'
        enable-rank-changing: 'false'
        enable-post-count-rewarding: 'false'
        enable-anonymous-stat-tracking: 'false'
    modes:
        normal:
            user-table: users
            minecraft-login-name-field: username
            rank-id-field: ranks
            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: phpbb
            type1:
                user-table: user_table
                username-field: username_field
                password-field: password_field
                rank-id-field: rank_group_field
            phpbb:
                user-table: phpbb_users
                username-field: username
                password-field: user_password
                rank-id-field: user_rank
                location-of-passgen-php: http://myserverip/passgen.php
                password-set-in-config-inc-php: myconfigpw
            type3:
                user-table: user_table
                rank-id-field: rank_group_field
                username-field: username_field
                password-field: password_field
                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
            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: mydbuser
        mysql-password: mydbpw
        mysql-database-name: forum_database
    group-mapping:
        default:
            '1': admin
            '2': spieler
            '3': vip
            '4': mod
            '5': starter
        worlds:
            world:
                '1': admin
                '2': spieler
                '3': vip
                '4': mod
                '5': starter
            world_craft:
                '1': admin
                '2': spieler
                '3': vip
                '4': mod
                '5': starter
    extras:
        whitelist:
            kick-message: Du bist nicht berechtig, auf den Server zu joinen
            use-as-blacklist: 'false'
            groups:
                '5': 'true'
                '2': 'true'
                '8': 'true'
                '4': 'true'
                '1': 'false'
        nickname-syncing:
            nickname-field-in-usertable: username
        synced-banning:
            banned-user-forum-rank-id: '5'
            unbanned-user-forum-rank-id: '10'
            ban-message: Du wurdest von diesem Server gebannt.
        promotion-track:
            track: 5|2|3|4|1
        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'
    
    Thank you for your help.
     
  28. Offline

    Kalman Olah

    Change the "phpbb" to "type2" there, under "type1".
     
  29. Offline

    PlanetPros

    Hello, I need your help please
    how do I do,
    that the players must first register themselves in the forum, and are released as Builder but The players should also come without a registration in the forum as a guest
     
  30. Offline

    maxikg

    He said "Synchronization successful.", but now I recive the following error:

    Code:
    2011-10-09 11:31:57 [SEVERE] java.io.IOException: Not a directory
    2011-10-09 11:31:57 [SEVERE]     at java.io.UnixFileSystem.createFileExclusively(Native Method)
    2011-10-09 11:31:57 [SEVERE]     at java.io.File.createNewFile(File.java:900)
    2011-10-09 11:31:57 [SEVERE]     at com.baummann.setrankpb.RankHandler.config(RankHandler.java:23)
    2011-10-09 11:31:57 [SEVERE]     at com.baummann.setrankpb.RankHandler.setRank(RankHandler.java:34)
    2011-10-09 11:31:57 [SEVERE]     at me.kalmanolah.okb3.OKmain.changeGroup(OKmain.java:238)
    2011-10-09 11:31:57 [SEVERE]     at me.kalmanolah.okb3.OKFunctions.updateSecure(OKFunctions.java:215)
    2011-10-09 11:31:57 [SEVERE]     at me.kalmanolah.okb3.OKCmd.onCommand(OKCmd.java:146)
    2011-10-09 11:31:57 [SEVERE]     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    2011-10-09 11:31:57 [SEVERE]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
    2011-10-09 11:31:57 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:358)
    2011-10-09 11:31:57 [SEVERE]     at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
    2011-10-09 11:31:57 [SEVERE]     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
    2011-10-09 11:31:57 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
    2011-10-09 11:31:57 [SEVERE]     at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    2011-10-09 11:31:57 [SEVERE]     at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    2011-10-09 11:31:57 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    2011-10-09 11:31:57 [SEVERE]     at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
    2011-10-09 11:31:57 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    2011-10-09 11:31:57 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
    2011-10-09 11:31:57 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    2011-10-09 11:31:57 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  31. Offline

    Kalman Olah

    You can do that with OKB3.
    If you were asking for a custom config made by me for you: no.

    Looks like SetRankPB is trying to create a folder/file, but doesn't have permission to do so. You should look into that.

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

Share This Page