![]() |
cool hack... unfortunately i hate javascript with passion.. moreso, it doesn't work on all browsers which is the main reason i avoid it (javascript).
|
Thanks guys, got it working now. I just deleted the phrase and re added it...didn't try doing the English translation. Great work, love it!
T3MEDIA has a great suggestion, it would be very cool if we could just jack the entire signup process with this, would save the users a lot of time when they make 1 simple error in the referral and ect. Again, excellent! - Jonathan |
Works excellent!
/me clicks install |
Great hack! :)
I made some modifications to your code, creating another php file (I don't need to load vB permissions and sessions just to check for the username) and modifying the javascript so it only checks the username if it's longer than 3 chars. [high]* JulianD clicks install![/high] |
As somebody who has only been doing this for a couple weeks, I'd like to make a suggestion. Take it for what it's worth.
I've grown accustomed to very noticable markers in the instructions for file/template changes. Meaning when it's time to start editing a different document. Yours is great, and the hack is great, but the first time through I added a whole lot of the instructions to the register.php file by accident. Yes, I'm an idiot. But, THERE ARE LOTS OF US! So to save yourself lots of extra posts, you might want to edit that a bit. Dennis |
Quote:
I would like to see how fast this one works with +20k members but it should not be that slow because it's just one simple query. dsboyce8624: Thank you for this advice. I'll do so as soon as I got more time on my hands.. :bandit: |
Try to edit ANY phrase using the normal ACP tooling. (just save it, no need for a real edit)
|
Quote:
|
It isn't you are right :)
But this script is checking wether a username exists or not. With +20k users it may take half a second before the person who registers is seeing that message :) |
I have right at 16,000 members and it took less than a nano-second when I tabbed off the field. This was with 300 users online at the time.
|
Quote:
I have a site with 21k on it and it went a bit slow. (slow as in not just poping up instantly). you need to keep in mind the users online that are doing god knows what.... and this site had the arcade going on... resource monster. around 1g online prime time. |
T3,
Yeah, I'm not really sure how much extra work it would take to turn make that work for the password/email/referral field. But I hope it can be done and that they will do it for us! :o I don't allow ASCII characters and other things on my forum, it would be too cool if it could tell them "No ASCII allowed" if they do use it. Question: After a tab into a different filed on the sign up, an error comes up saying that 'submit' is null or not an object? Thanks! - Jonathan |
Quote:
https://vborg.vbsupport.ru/showpost....7&postcount=23 :) |
This is the way I have mine, but I still get the submit error. :ermm:
HTML Code:
<div style="margin-top:$stylevar[cellpadding]px"><input type="submit" class="button" value="$vbphrase[complete_registration]" accesskey="s" name="submitform" /><input type="reset" class="button" name="Reset" value="$vbphrase[reset_fields]" /> |
Can you pm me with the url to your forums please? :)
|
I checked your code three times and couldn't point out where the error was so here's another solution to this. I hope this one solves it.
open ajax_checkusername.js and replace: Code:
submit = document.register.submitform; Code:
submit = document.getElementById('submitform'); Code:
<div style="margin-top:$stylevar[cellpadding]px"><input type="submit" class="button" value="$vbphrase[complete_registration]" accesskey="s" name="submitform" /><input type="reset" class="button" name="Reset" value="$vbphrase[reset_fields]" /> Code:
<div style="margin-top:$stylevar[cellpadding]px"><input type="submit" class="button" value="$vbphrase[complete_registration]" accesskey="s" id="submitform" /><input type="reset" class="button" name="Reset" value="$vbphrase[reset_fields]" /> Please try that and tell me if it's working :) __________________________________________________ ___ Here's another solution that came up after some google searches. Open ajax_checkusername.js and replace: Code:
function checkName(input, response) Code:
function checkName(input, response) This error seems pretty strange to me since the same code is working fine for me :) |
MrNase - I'm assuming the 'register' in the JS is the name of the form? I would advise using:
Code:
document.forms['register'] - Zero Tolerance |
MrNase,
Brilliant! The first fix fixed it! :) Great job! :banana: |
Just like Zero Tolerance said: Somehow he didn't select the submit button.. And this was necessary to disable it :)
Iam glad it's working. What browser are you using btw. ? |
Internet Explorer 6.0
Thanks again! - Jonathan |
Quote:
I will ask but if you dont want to please tell me here. Can you do this as well for the referrer? Users put peoples names in and if its spelled wrong they get an error and dont read properly and assume its their name that is invalid. If not thanks. |
One question for the ignorants. Why are the phrases added in language 0 and not in -1?
Thank you. |
Will this be available for 3.5?
|
is it possible to have the output generate a similiar username that is available or would that add to many queries?
|
Quote:
[high]* sketch42 clickity clicks install[/high] |
I had this working for one hour or two.. But that produced some funny usernames :D
It is possible but I don't release it as an addon to this vB 3 version. I'll port the hack over to vB 3.5 and I *may* include a username generator once I figured out how to make usable usernames ;) |
Not sure I understand this hack. Does VB 3.0.7 not already check upon registration if a username already exists?
Please advise, otherwise, nice hack ;) |
It does, but my the default system the user get's the error message after clicking 'submit'.
With this hack he gets an error message instantly after entering the username. I basically eleminates the need of going back one page to enter a new username when the current one is already registered :) |
gotta love ajax...clicking install now ;)
|
can i use vb3.5 with this???
|
Works on 3.5.2?
|
Hello?
|
Well I can't get it to function with 3.0.6. No errors or anything, just no functionality for AJAX.
|
Does this work on 3.5.X?
Or can someone point me to some direction to get this working on 3.5.X please.........?!?!?!?!? I followed all the instructions but it is still not working. I am sure that I did everything right. I am using 3.5.4 |
All times are GMT. The time now is 03:56 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|