Quote:
Originally Posted by NBZ4live
The best way to add new account to vBulletin is to use the vB_Datamanager_User.
Here is the code I use in my Integration.
Try include global.php to your script and then use this function to create the accounts.
|
My problem with that solution (and why I often opted for the manual solution whenever I needed to do something like this ) is that if a user is temporarily suspended from the forums they are blocked from any pages that include global.php. Obviously for this exact thing it's not an issue as they won't even be registered at this point. But more for things like PM creations, checking your user is logged in (checking sessions same way as vb does and updating last activity etc), and other similar things like that.
Or at least that's the result I got when I tested this a few years ago. And that was an unacceptable condition for our website. Banned for life members I would agree with. But we still wanted people that were suspended (for things like spamming etc ) to still be able to use the rest of our website. We saw the website and forums separate in that sense. Just seemed so strange to me that it forced it on you. Unless there's a way to stop that which I'm not aware of, or if they've changed how that works since I tested it a few years ago. I'd much prefer to use Vb's own functions/data managers as it's a bit messy doing things yourself.