![]() |
|
Thread Tools |
#1
|
||||
|
||||
Converting from Xenforo to vBulletin
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,
No members have liked this post.
|
#2
|
|||
|
|||
Anyone know if they can help?
No members have liked this post.
|
#3
|
||||
|
||||
Untested, upload to the root of your vBulletin forum.
The following members like this post: MarkFL, RichieBoy67
|
#4
|
|||
|
|||
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.
![]() No members have liked this post.
|
#5
|
||||
|
||||
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 No members have liked this post.
|
#6
|
||||
|
||||
That code is producing the following error
--------------- Added 11 Jan 2016 at 17:25 --------------- Scratch that, I was using the wrong syntax. No members have liked this post.
|
#7
|
|||
|
|||
That's caused by a plugin you have installed, more specifically at the login_verify_failure_username hook.
No members have liked this post.
|
#8
|
|||
|
|||
Thank you so much Your my hero!!
![]() The following members like this post: MarkFL
|
#9
|
|||
|
|||
No problem.
![]() No members have liked this post.
|
#10
|
||||
|
||||
Originally Posted by Seraphyn
This is still an issue, specifically when you input a username that doesn't exist... like swglegends.com/forums/auth.php?un=username&pw=password![]()
Please advise, No members have liked this post.
|
#11
|
|||
|
|||
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. No members have liked this post.
|
#12
|
|||
|
|||
Originally Posted by Dave
Okay, that works. Is there a way to make usernames match this regular expression: ^[^\s]+$![]()
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? No members have liked this post.
Last edited by Alice; 11 Jan 2016 at 23:57. |
#13
|
|||
|
|||
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, No members have liked this post.
|
#14
|
||||
|
||||
Originally Posted by Seraphyn
You can prevent embedded spaces, however I find that trailing spaces are automatically trimmed on my local dev site.![]()
To see the options for username restrictions, follow: AdminCP -> Settings -> Options -> User Registration Options -> Username Regular Expression
__________________
Former vBulletin.org Staff Member ![]() Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons No members have liked this post.
|
#15
|
|||
|
|||
Okay, what would you put there to disable embedded spaces after the username?
No members have liked this post.
|
![]() |
Tags |
dave, markfl, replicant |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 10:59.