Description:
This hack uses AJAX to check if the user name is taken and also displays errors and reasons why the user messed up on the registration form. Look at attached example picture.
Installation Instructions:
(If you don't have the unregistered usergroup set to Can View Forum = YES then you will have to follow the normal steps then apply this fix: https://vborg.vbsupport.ru/showpost....&postcount=136)
1) Import the Product (make sure you have an original register template, or use the [manual edits])
2) Upload the images and javascript
3) Also Add these to your Additional CSS Definitions for your style:
hmm, the only reason that would happen is if the ajax.php is blocked if you have that option set. I'm not to sure about how vb works differently when enabling forced registration.
well I don't normally use forced registering.. I guess I hadn't changed it for a long time.. It works now, but I just thought I'd point that out... for people who have forced registeration and might encounter the issue too.
well I don't normally use forced registering.. I guess I hadn't changed it for a long time.. It works now, but I just thought I'd point that out... for people who have forced registeration and might encounter the issue too.
This might explains the other peoples issues. But what is happening is that the user is accessing the ajax.php when they click out of the username box and because their not registered its rejecting them. Which would never work unless theres a way to give the guests permission to the ajax file.
So in other words.. in order to use this hack you have to allow guests to view forum...
I guess unless it;s fixed.. mabye CS should post it in his 1st post, so people who install know ahead of time...
well the issue is that the ajax.php uses the global.php and because this plug-in resides in the ajax.php you would need the unregistered user group to be set to Can View Forum. It is possible for me to make a quick fix for those users that really don't want to set the unregistered usergroup Can View Forum to YES.
So in other words.. in order to use this hack you have to allow guests to view forum...
I guess unless it;s fixed.. mabye CS should post it in his 1st post, so people who install know ahead of time...
ok after looking into it. It seems that even if you just include the global.php and have it shut off for unregistered people it wont work. So i first tried making the file pass off as a registration php because it somehow will bypass the prompt, ended up finding out that if you pass a do in the registration page you will get the same error. example: http://yoursite.com/forum/register.php?do=sdfsd (if you have it shut off for unregistered)
So i changed it from DO to a different name and created a different php file instead of a plugin.
So what you will have to do to get this to work on forums that have it where unregistered users cant view their forum is:
1 ) Download the attached files
2 ) Replace your register.js with this one (forum/clientscript/register.js)
3 ) place the register_ajax.php in your forum root (forum/register_ajax.php)
4 ) Disable or Delete the CheckUsername plugin.
also i have not totally tested this fix, so please respond with your results.