XenforoRegister 3.6

Allows users to register on your xenforo forum ingame with a simple command, among other things

  1. VoidWhisperer
    Contributors:
    VoidWhisperer
    NOTE: This plugin is no longer updated and support will not be provided.

    This plugin allows users to register onto your xenforo forum from the comfort of your game servers.

    It is extremely easy to configure, but there are some prerequisites.
    • You need to have a xenforo forum
    • You need to install the Xenforo API - This is how the plugin registers users.
    • You need to follow the instructions below to set it up
    NOTICE:
    If you get an error related a 403 http error when trying to use the plugin, and you are using cloudflare, you need to create a direct subdomain that doesn't go through cloudflare and use that - cloudflare blocks this from retrieving the url because it's not considered to be a real person and it thinks that it is a bot or something similar.

    Also, please PM issues to me instead of posting them in the thread, as that will allow me to see and address them quicker.

    If you want it send users emails when they register, add this at line 5063 in the xenforo api php file you will download:
    Code (Text):
    if ($user['user_state'] == 'email_confirm') {
    XenForo_Model::create('XenForo_Model_UserConfirmation')->sendEmailConfirmation($user);
    }

    Set up:
    1. Install xenforo api from the link above, by placing it into the same directory as the rest of your xenforo files.
    2. Edit the file to set the api key at the specified place near the top. Save this, you will need it while configuring the plugin!
    The below steps change depending on if you are using the bungee or bukkit version:

    Bukkit version:
    1. Unzip the zip file and place it onto the server(s) plugins folders. Delete the config.json
    2. Go into the XenforoRegister plugin folder and open up the config.yml file.
    3. Set the values in the configuration file to the following:
    • apiKey - The API key you set in the xenforo api file earlier
    • apiLocation - the location of the api file. This is generally the link to the frontpage of xenforo on your website with api.php at the end. For example, 'http://myserverwebsitexenforo.com/api.php'
    • mainPage - this is the URL you want people to be linked to upon a successful register. Normally this is the main page of your site or the login page.
    Bungee version:
    1. Unzip the zip file and place the jar file into the bungee server plugins. Put the XenforoRegister folder into the plugins directory also, and delete the Config.yml file.
    2. Go to the plugin folder and open up the config.json file
    3. Set the following values in the file (Just change what is in the quotes AFTER each label:
    • apiKey - The API key you set in the xenforo api file earlier
    • apiLocation - the location of the api file. This is generally the link to the frontpage of xenforo on your website with api.php at the end. For example, 'http://myserverwebsitexenforo.com/api.php'
    • mainPage - this is the URL you want people to be linked to upon a successful register. Normally this is the main page of your site or the login page.
    Once you follow these, reload the plugin's config in console via /registerreload or just reloading the plugin/restarting the server. Now your users will be able to register on your site via the following command:
    /register (email) (password)

    Required plugins
    Bukkit:
    This plugin requires vault in order to work due to permissions.
    Bungee: None

    Configuration (Only for the bukkit version)
    The first 3 config values are described above in the setup. The remaining ones:
    • waitOnFirstJoin - True/false - This determines whether or not the enforcement of the user having to wait a brief period of time to register if they just joined for the first time is active.
    • waitTime - Number - The number of seconds to wait before users who have joined for the first time can register.
    • rewardRegisters - true/false - This determines whether or not you want the commands to run to reward a user for registering.
    • rewardCommands - String list - This is a list of commands to run when a user successfully registers - usually used to reward the user.
    You can also limit the the number of registrations an IP address can make to not allow people to spam your forum with their alts:

    The config values are slightly different between bukkit/bungee, so the config values will be shown as BUKKIT/BUNGEE (If they are the same it means they are the same in both configs):
    • enforceMaxRegistrations - Whether or not to enforce the max users/ip limit - If you set this to false you do not need to fill out the database information
    • regPerIp/maxRegistrations - The max number of users that can register per IP if enforceMaxRegistrations is enabled.
    • dbIP - The ip of the database that xenforo is on
    • dbUsername - The database username of the database that xenforo is on
    • dbPassword - The database password of the database that xenforo is on
    • default_user_state - the default state that the user is in on the xenforo site when they register.
    • xenforoDBName/dbName - The name of the xenforo database.
    • secureCommands - If enabled, this will cause the plugin to intercept the register and changepassword command before they get printed to console so as not to leak user passwords. This one is currently bukkit-only.
    Assuming you have configured this correctly, it should put a limit on how many users can register with a given IP address.

    Lastly, you can configure the messages that the plugin will send to users. (Note, in the bukkit version these are lang.[etc] and in the bungee version they are messages.[etc])
    • maxips: Message shown to players when too many players have registered using in their ip
    • cannotregisteryet: Shown to users if they just joined and cannot register yet.
    • congrats: The congradulations message shown to users when they register
    • website: The website line shown below the congrats line, where {MAINPAGE} will be replaced with the main page you define in the config
    • change.password: The message a player sees when they change their password
    • change.email: The message a player sees when they change their email, {EMAIL} will be replaced with the email they use.
    • error.blankpassword: The error a user sees when they try to change their password to a blank password
    • error.invalidemail: The error a user sees when they try to register with an invalid email.
    With the two messages that have replaceable content in them, the things between the { and } must be in caps.

    Commands:
    /register (email) (password) - allows users to register onto your xenforo site.
    /registerreload - Reloads the plugin's config (Op only)
    /changeemail (email) - Allows users to change their email on the website
    /changepassword [password] - Allows users to change their password on the website.
    /xfsetrank [name] [rank] - Sets a user's primary rank on the xenforo site
    /xfaddrank [name] [rank] - Adds a secondary rank to the the user on the xenforo site.
    /xfremoverank [name] [rank] - Removes a secondary rank from the user on the xenforo site.
    Permissions:
    xr.register - Allow them to use /register
    xr.changeemail - Allow them to use the /changeemail command
    xr.changepassword - Allow them to use the /changepassword command
    xr.setrank - Allow them to use the /xfsetrank command
    xr.addrank - Allow them to use the /xfaddrank command
    xr.removerank - Allow them to use the /xfremoverank command

    On bungee there is an extra permission: xr.reload - reload the config

    Common issues:
    Make sure you do not have the bukkit version on your bukkit and the bungee version on bungee at the same time, as this could cause conflicts.

    Other Uses:
    In theory this plugin could be used to combat the spam bots that plague xenforo forums by forcing registration ingame and disabling it on the website. However, disabling registration on the website is currently out of the scope of what this plugin does.

    I'm planning to add more features onto this, such as more detailed error messages for failed registry, and possibly other features that are related to the xenforo api.

    If you have any issues at all please feel free to email me at [email protected] or leave a comment below.

    FAQ:
    If you get the 'user_error_phrase is undefined' error, make sure of the following:
    • If you are using SSL and have a redirect on your website to go from non-SSL to SSL, then use the https url, not the http one. The plugin has issues with the redirect.
    • Make sure your API key for the plugin is the one that you set in the file, and that you set one.
    • If you are still having issues, do this:
      • Find your api key
      • Take the url you have defined as the link to the api in your config
      • Put this on the end of the url:
      • ?action=register&hash=[your api key]&username=test123&password=234hdf3&[email protected]
      • Replace the [your api key] with your api key.
      • Copy the contents of the resulting page in a PM to me.
    If you PM me with that issue without trying above you are likely to just be told to read this, and not get help until you do as it says.

Recent Reviews

  1. iBrett
    iBrett
    5/5,
    Version: 3.6
    Great Plugin! It works and its cool! :D
    ----------------------------------------------------------------------------------------------------------
  2. ForumsBot
    ForumsBot
    4/5,
    Version: 3.6
    Great plugin over all. No glitches found, easy process. Just one issue that I would love if the Developer added. Support Spaced out Ranks (Ex: Senior Admin). I always do make ranks like that and when I use spaces in the ranks it doesn't let me and just shows the usage/error message. Thanks :)
  3. Insxnity
    Insxnity
    5/5,
    Version: 3.6
    This plugin worked instantly upon setup. Thank you so much for this brilliant resource. I think It would be worth adding that the API key can be whatever the user wishes it to be. Again, Thank you for your work.
  4. MatthewGraphics
    MatthewGraphics
    4/5,
    Version: 3.6
    I purchased this plugin and had some issues in the beginning, I PM'd the creator he got back to me within a reasonable time. The issue wasn't his fault it was the API. 8/10 would recommend as a XenForo bridge. I would love to see a add-on for XenForo that allows you to link players in-game account to their forum account. And also is there a way to force players to have a forum account before doing something like donating?
    1. VoidWhisperer
      Author's Response
      To address your points
      1. Without a xenforo plugin, this isn't possible, and I can't create one as I don't own a xenforo license nor have access to one at this point in time.
      2. I will look into it and see if this possible to be added in the future.
  5. avsterbone
    avsterbone
    1/5,
    Version: 3.5
    Plugin does not work. Dev does not respond to Pm's or fixes issues. Would not recommend. I will update my review once the bugs are fixed.
    1. VoidWhisperer
      Author's Response
      Your issue is not a bug. You need to fix your mysql information - MySQL returning an access denied error implies you are using the wrong username or password, or the server you are trying to trying to use to connect to MySQL doesn't have access to that user.
  6. InfestorHD
    InfestorHD
    5/5,
    Version: 3.4
    Works very well, only took about 2 minutes to set up and now I can give players there donation ranks with buycraft X over bungee and also stop all spam since they sign up in game! Very VERY good! Keep it up!
  7. Johandrex
    Johandrex
    4/5,
    Version: 3.3.1
    Great plugin! Glad that I switched to XenForo instead of Enjin. Could you however allow us to add ranks to players even though they don't exist yet? Or allow us to Synchronise all ranks from BungeePerms.
    1. VoidWhisperer
      Author's Response
      I'm confused on what you mean by add ranks to players even though they don't exist yet?

      Also as for rank synchronization, that is a bit challenging to do because there's no easy way to monitor for permission changes, atleast as far as I know.
  8. Doogie
    Doogie
    4/5,
    Version: 3.3
    Good plugin, after a lot of wondering around the internet I found out what to do. I will give 5 stars when you add a feature to sync ranks between your server and the website, but other than that Gud jub!
    1. VoidWhisperer
      Author's Response
      There is the ability to do it manually - it's not easy to monitor all permissions and do it automatically.
  9. EarlyReflex
    EarlyReflex
    4/5,
    Version: 3.1
    Works exactly as it should. Great plugin!
    1. VoidWhisperer
  10. canca
    canca
    4/5,
    Version: 2.3
    Works fine, maybe you can make an update to insert the uuid in the database.
    1. VoidWhisperer
      Author's Response
      Check the most recent version(s)