![]() |
[high]THIS HACK WILL NOT WORK IN VB 2.2.0 AND UP! DO NOT ATTEMPT TO INSTALL IT!
Go to https://vborg.vbsupport.ru/showthrea...threadid=33068 for the appropriate hack[/high] This is something I've wanted to do for a long time, and since someone mentioned it in the Suggestions forum, I figured I'd write the hack :) Purpose: When a new user regsiters, he is e-mailed a password generated randomly. He will not be able to log in until he receives this e-mail and uses that password. (the same happens if an existing user changes his e-mail address). After installing this hack, you will have three options essentially: 1) Don't verify the e-mail is valid. In this case the user selects his own password and nothing is sent to him. 2) Verify the e-mail is valid by sending an activation code This is how vBulletin works now: a user selects his own password during registration, and the BB Mailer sends him an activation code / link that he needs to use before he's able to post 3) Verify the e-mail is valid by sending a random password In this case the user DOES NOT select a password but instead he receives a randomly generated password by e-mail. He will not be able to log in / post until he receives and uses this password. The installation includes: 1) Running a script that updates your database (adds an option "Send New Users Random Password?" with default "NO" -- to preserve your currect state). 2) Editing three scripts (register.php, member.php, admin/functions.php) 3) Editing two templates (registeradult, registercoppa) and adding three new templates (small ones). If you have questions, I'm here :) Cheers, Bira |
A couple of images to help out understand what this hack does:
http://www.atlasf1.com/personal/bira/password1.gif And http://www.atlasf1.com/personal/bira/password2.gif |
Thats great, I will try it today.
one question, if the user change his email, will your hack send new password? |
yes, Essam, if the user changes his e-mail, it will automatically generate his a new password, e-mail it to him and log him out so he won't be able to log in until he uses this new password.
|
If people want to test it, they can test this on my test board at
http://www.bira.co.il/bb/index.php *** DISCLAIMER TO JELSOFT: this is NOT a production bb but rather a test board that I've set up for Ed Sullivan. Please don't sanction me for using it (no one posts on it or anything.) |
thank you bira
excellent ;) |
good hack;)
|
it would be great to include this to 2.0 ;)
|
where can i change this sentence?
???????????????????? Here are your login details for the bulletin board at http:// . Username = bokhalifa Password = + Don't forget that they are case sensitive! To edit your profile, go to this page: http:// Yours, dar bokhalifa team ?????????????????????????????????? thanks;) |
question, what will happen to the ppl who havn't activated themsevles? of course I mean the ones who registered before installing this hack.
|
Essam, they can still activate themselves. That system did not get impaired in any way.
bokhalifa, this is the template email_lostpw -- it's the same template that people get when they lost their password and request for it. |
mmm,,
Is there a way to send all the unactivated members a new password? instead of still requiring them to activate themselves. |
Essam, go to the Control Panel -> Usergroups. Click in 'list users' next to Users Awaiting Email Confirmation. For each user you can:
1) change his usergroup to 'registered' 2) click on 'send password' If you have more than a dozen or so, let me know and I'll write you a quick script to run to do that in a batch. |
thank you bira
good hack min;) |
More than a dozen?! :)
I have 1319 member awaitning confirmation I would really appreciated if you write me that hack. The hack will send a random password right? Cause for the normal password this can be done from "Email Users". |
Essam with so many, I would actually recommend you delete them, because there are bound to be a lot of duplicate people who tried several times, or people who tried a long time ago and forgot about it.
If, however, you want to send them a password anyway and don't mind about "dead" registrations, then you could just do the following two steps IN THAT ORDER: 1) email password to all the users in the "Users Awaiting Email Confirmation" 2) AFTER sending the e-mail, run a MySQL query via phpMyAdmin: Code:
UPDATE user SET usergroupid='2' WHERE usergroupid='3' AND posts='0' Code:
DELETE FROM user WHERE usergroupid='3' AND posts='0' AND joindate<'986500000' |
Thank you bira,
I'll try that. |
Is this hack for rc1 or rc2 ?
get a parsing error in register.php line 204 /207 |
rc2
|
lol than I must upgrade :)
|
bira
Thank you very very much It was a dream to have this hack :D I have RC1 and it is working wounderfull |
Glad to have helped, Remi :)
|
This is an awesome hack as I just tested it out on my forums, but it breaks Tubedogg's automatic welcome message upon registration hack. :(
|
RobAC, if you give me the URL to that hack, I'll check where they collide and how you can use them together.
|
|
RobRAC,
I checked tubedogg's hack and there's no reason the two hacks should collide, provided you insert the code right. Here's what you need to make sure: If you already hacked the file register.php then the end result should be like this. Find (in the ORIGINAL file): Code:
if ($verifyemail) { Code:
if ($verifyemail) { By the way, out of curiosity: if you are using email verification, be it with activation code or with random password, why on earth do you need a separate Welcome E-mail? Simply add your welcome message and whatever text you want to the already existing e-mail templates that are sent to the new users. |
Bira,
I'll double check this....actually, you've made a good point here. Thanks. |
Bira,
Instead of using the email_lostpw template, how can I use a different email template? I want to add in the welcome message to this template, but don't want to make that kind of addition to the lostpw template. |
Rob, create a new template (eg: email_newpw) and in my hack, wherever it mentions email_lostpw change it to your new template's name.
p.s. But make sure that the variables from email_lostpw (the variables for the username and password at least!) also appear in your new template. |
Actually, Rob, there is only one place you need to replace email_lostpw with your new template's name, and that is in register.php.
In my hack instructions it says: Code:
Find: So, to sum this up: 1) Create two new template, say email_newpw and emailsubject_newpw. These two templates should resemble in content the lostpw templates, only with your Welcome text. 2) Add my hack EXACTLY like the instructions says, but before you upload the hacked files run a SEARCH/REPLACE in register.php for _lostpw and replace it with _newpw. That's it. Am I making any sense? Sorry, I'm tired :) |
Another problem, for some reason, I'm no longer notified when a new user registeres with the Forums. I have it set so that I'm notified as soon as someone registers. I no longer receive this email notification.
|
Rob, for some reason I get a feeling that you managed to much up register.php :)
I use this hack and get notified for every new user, so that's not the problem. Why don;t you e-mail me your register.php and I'll fix it? My e-mail is goren@atlasf1.com Cheers, Bira |
Bira I have a problem!!
I'm using vb 2.0.1 and when the users wants to change something from their CP the changes are not taken and the member.php put this message: Code:
Thank you for updating your profile, psico. Because you changed your email address, you will be sent an email to verify its existence. Sorry about my english but It's not my language... Thanks for your help... |
Thanks for a cool hack
|
Bira,
I'm using vb 2.0.1, followed hack instructions (isn't the firt one I insert), but nothing happen. There isn't into CP something to change sets, and new users can choose their password. Thanx in adv. :confused: |
Might be the template side ? The new one comes in the istructions without any HTML command. It that regular ? Yek !
cya :confused: |
Please anyone can help me with my problem?
Thanks a lot!!!. I'm using vb 2.0.1 and when the users wants to change something from their CP the changes are not taken and the member.php put this message: Code:
Thank you for updating your profile, psico. Because you changed your email address, you will be sent an email to verify its existence. |
I've installed a clean (no hacks) version of vBulletin 2.01 and then installed this hack as per the instructions, followed to a T.
I had no problems at all, and none like you describe. I really, really don't have a clue what the problem could be for you, but I would suggest you go back to the original version(s) of the scripts, and then re-install the hack, making sure you follow the directions exactly. Sorry I cannot be of any further help. |
Bira i installed your hack today now everything seems to be fine but when i let some one register it gives an code fatal error on Line 192 in the register.php file.......
NE idea's to help you as much as i can i include the full Register.php. You can contact me by mail or icq -= ICQ 100535249 -= Mail : shadowbumble@hotmail.com Hope this will be enough Removed on request |
Buu,
1) Your register.php page is NOT a vB2 version one 2) vBulletin does not allow the posting of an entire script. Please remove the attachment from your post. Cheers, Bira |
All times are GMT. The time now is 05:02 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:
|