View Full Version : Force Guests to Enter Username via Javascript
alexjc
05-03-2009, 03:28 PM
Hi,
I installed this Hack to force guests to enter a valid username:
https://vborg.vbsupport.ru/showthread.php?t=148686
However, this error checking takes place on the next page and when you click back the post is lost -- more often than not.
I looked into the Javascript code for validating the subject and post length, but that seems very hard to extend with a custom check to force Guests from using a username that's not "Unregistered."
Do you have any ideas how to do this?
Thanks,
Alex
UKBusinessLive
05-03-2009, 04:20 PM
Hi,
I installed this Hack to force guests to enter a valid username:
https://vborg.vbsupport.ru/showthread.php?t=148686
However, this error checking takes place on the next page and when you click back the post is lost -- more often than not.
I looked into the Javascript code for validating the subject and post length, but that seems very hard to extend with a custom check to force Guests from using a username that's not "Unregistered."
Do you have any ideas how to do this?
Thanks,
Alex
Hi Alex
Its best you ask that question in the mod thread as the author and other users will be better equipped to answer you
Good luck ;)
alexjc
05-03-2009, 04:32 PM
Thanks for your reply.
However, I'm not interested in the original plugin / mod because it isn't the solution I need. It uses 2 PHP lines of code to check validity.
I want something completely different, done in Javascript. So I need advice how to mod Javascript callback when a user creates a post.
Alex
UKBusinessLive
05-03-2009, 05:06 PM
Sorry Alex,
Is this any good for you http://www.phpriot.com/articles/sortable-lists-with-php-and-ajax/6
alexjc
05-04-2009, 01:20 PM
No, it's not particularly useful... I'm more curious how to modify the vBulletin code in the first place, since it's obfuscated / compressed Javascript. (The code itself is rather easy if there was a hook.)
How do people normally do this?
Alex
Dismounted
05-05-2009, 05:49 AM
No, it's not particularly useful... I'm more curious how to modify the vBulletin code in the first place, since it's obfuscated / compressed Javascript.
When downloading vBulletin from the Members' Area, click "Download Options" and select "Uncompressed Javascript".
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.