vBulletin ModsThe Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=321469 |
Hey,
I was wondering if someone might be willing to give me a hand with converting this matter of code to be cross-compatible with vbulletin? Thanks,
|
Anyone know if they can help?
|
Untested, upload to the root of your vBulletin forum.
|
First off, thank you so much for being willing to help me with this project. Now, I uploaded the code to the root of the forums, and in Xenforo its supposed to print either a 0,1 or 2 and this only shows a completely blank page. But no errors we're printed, so go you. :)
|
It's because of the check that checks if the current IP matches the $serverip variable.
You probably want it to be something like this in that case:
Then you execute it as follows: http://example.com/script.php?un=Dave&pw=password |
That code is producing the following error
--------------- Added 11 Jan 2016 at 17:25 --------------- Scratch that, I was using the wrong syntax. |
That's caused by a plugin you have installed, more specifically at the login_verify_failure_username hook.
|
Thank you so much Your my hero!! :)
|
No problem. ;)
|
Quote:
Please advise, |
Well it's not caused by the script I gave you, it's caused by one of the plugins you have installed.
Go to your AdminCP > Plugins & Products > Plugin Manager and find a hook which makes use of "login_verify_failure_username". A plugin which makes use of that hook is causing it. |
Quote:
And disallow all symbols? Thank you, --------------- Added 11 Jan 2016 at 23:57 --------------- Oh also, I just banned an account and checked if it would be banned on the game server and its still returning a 1, and not a 2. Any ideas? --------------- Added 12 Jan 2016 at 06:05 --------------- Any ideas? |
Hello. So, this file is for authenticating from a website to a gameserver. Now the issue is that people are able to put spaces after their account name and basically I would like to know if there is anothing anyone might be able to do with this code to prevent that from happening.
Thank you, |
Quote:
To see the options for username restrictions, follow: AdminCP -> Settings -> Options -> User Registration Options -> Username Regular Expression |
Quote:
|
Quote:
|
Quote:
Please advise, |
Yes, leading/trailing spaces are trimmed automatically upon registration. I have no idea how users were able to register with trailing spaces.
You will likely have to manually edit the offending usernames, and send the users an email to advise them of the change to their username. |
Quote:
Please advise, |
Yes, you can type in trailing spaces when you log in, but those spaces do not change the actual username in the database.
|
Quote:
I need to be able to stop this. Any advise, |
When I login to my dev site, and look at the username retrieved from the login form ($vbulletin->GPC['vb_login_username']) it has already been trimmed of any leading/trailing spaces.
|
Quote:
|
How are your users logging onto the game server...are they required to manually enter their username?
|
Quote:
|
Okay, then the code used for the game login would have to be edited to trim the usernames entered. :)
|
Quote:
Quote:
Quote:
Anyhow, any insight? |
Can you give a link to the vBulletin product you are using for the game server login?
|
Quote:
|
Quote:
|
Quote:
|
Quote:
Please advise, |
Unfortunately I don't have experience with vBulletin 5, so I will not be able to help you out with this. :(
|
Quote:
Thank you, |
Maybe Replicant will pass by this thread, he has some experience with vBulletin 5.
|
All times are GMT. The time now is 12:27. |
Powered by vBulletin® Version 3.8.14
Copyright © 2023, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.