Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

A few peculiar needs... any suggestions?

edited August 2006 in Vanilla 1.0 Help
Hi everyone! I think Vanilla is great, but I have a few particular needs to be met before I can use it on my site. I develop a multiplayer online game where members register for the game, and then I have some custom code that adds that same username to my forum (currently phpbb). This ensures that players only have to register once, and that they don't need to remember two passwords. I'd love to switch to Vanilla, but I have 3 requirements: 1. I need a way to migrate my current phpbb users and posts to Vanilla. 2. I need a way to disable signing up directly to Vanilla, so that it is not possible for a Vanilla user to be created directly, and then a conflict arises when a player registers with the same username. 3. I need a way to manually (via PHP) add and remove user accounts to Vanilla. Can anyone help with these 3 items? I can probably make modifications myself, but I'd need a little guidance. Thanks!

Comments

  • 1. You can use the phpBB migrator (search for it) or get the wildthing migrator and write some phpBB classes for it. 2. Not sure what the best way to achieve this is but it really shouldnt be very difficult. 3. You can access the People UserManager class to create/whatever users if you have a poke around.
  • MarkMark Vanilla Staff
    1. There is a conversion tool here somewhere on the forum that I think minisweeper developed. Do a search and you should be able to find it.
    2. You can write an extension that sends them back to the index when they look at the people.php file. Something like:

    <?php /* Extension Name: Avoid Registration Extension Url: http://lussumo.com/docs/ Description: Blocks users from using the vanilla registration page. Version: 1.0 Author: Mark O'Sullivan Author Url: http://www.markosullivan.ca/ */ $PostBackAction = ForceIncomingString('PostBackAction', ''); // If looking at the people page and any of the actions which utilize the ApplyForm control, redirect them. if ($Context->SelfUrl == 'people.php' && in_array($PostBackAction, array('ApplyForm','Apply'))) { header('location:'.GetUrl($Configuration, 'index.php')); die(); } ?>

    3. Insert them into the LUM_User table with sql. Really not very hard even for a novice PHP programmer.


    Alternately you can use Vanilla's database mappings so that Vanilla uses YOUR existing user table instead of it's own - so there's no need for any further PHP coding.
  • MarkMark Vanilla Staff
    And what mini said...
  • ToivoToivo New
    edited August 2006
    3. I need a way to manually (via PHP) add and remove user accounts to Vanilla.

    you could just create users manually by creating accounts for themself (if the list is below <10).
    At least get aquainted with <i>phpMyAdmin. It helps you a lot. Something between (doing all things manually and createing php scripts).
  • I'm assuming it's gonna be a rolling registration process so doing it manually wouldnt be too handy...
  • Minisweeper -- what do you mean "rolling registration process"? Ideally I would have a PHP script that auto-adds anyone to the forum at the same time they register for my game. I would just use default values for anything I don't know when entering in the new user into the lum_user table. However, I would love to see a basic list and description of each field so I know what they are, and how they are important during this part of the process. For example, what is the VerificationKey field? The RoleID field? I've heard of people doing the phpbb migration by uninstalling Vanilla, migrating, then upgrading. I'd prefer to have an up-to-date migrator. Does anyone know if the migrator has plans to be updated any time soon? Thanks for the help!
  • I just mean that users will be applying regularly - you're not moving say 10 users to the system and that's the lot. I'd strongly recommend using the inbuilt classes to do stuff rather than doing it manually so far as making users goes though. I dont plan on upgrading the migrator i wrote. I keep meaning to look at the wildthiing migrator someone made and perhaps build some classes for that so people can upgrade directly, but I've not got round to it yet and i dont have any timescales.
  • Well, I definitely want to keep what I have in phpbb, as there are over 13,000 posts. Even if not everything converts over, but the content of the current posts remains intact, that might be good enough for my purposes. Why aren't you interested in updating the migrator? Surely the changes between the previous version and this one aren't so great that it can't be done given a little bit of time. Although I'm sure you have many other time commitments, as we all do :) Where can I find more information on the built-in classes? Thanks!
  • I'm not saying it's a difficult job, it's just the time i'd invest in that would be better invested in writing some classes for what i assume is a better migration system. Unfortunately there's not a huge amount of documentation about the People libraries, but there have been a couple of reasonably useful posts on this board if you search for them. If you're reasonably php competant and look through the /people/ folder you can see there are classes and functions to deal with all sorts of stuff.
  • What's your site?
This discussion has been closed.