Floris
04-12-2003, 10:00 PM
/*================================================= =====================*\
|| # Force New Password (en masse) - Requested by Cary from vBulletin # ||
|| # Author: xiphoid (info@vbulletin.nl) - version 1.10 for vB 2.3.0 # ||
|| # All PHP code in these files are ?2003 by their respected owners. # ||
|| # None of the files may be redistributed outside of vBulletin.org! # ||
|| # No (real) animals have been hurt during the making of this hack! # ||
\*================================================ ======================*/
##### Information
This hack integrates with the admin/email.php file from which you are then able to choose to mass email your users a new password, which it randomly generates (automaticly).
This hack is written on request by Cary (vBulletin.com Team Member) who needed it for a web site that converted from snitz forum to a vBulletin powered forum.
This hack will ONLY work if you have Sparkz hack installed 'Email users regardless of 'no mail from admin' hack' (http://www.vbulletin.org/hacks/index.php?s=&action=showhack&hackid=323)
##### Features
(version 1.00)
* You can keep using 'email to users' admin/email.php file as normal, this is just an extra feature
* You can 'test' without actually changing any password
* You can 'echo' the generated passwords for debugging or reference purposes
* The new features are restrickted to the userid that you set, to prevent abuse by other users with access to the admin control panel
* And ofcourse, you can now use 'email to users' mail form to inform your users they have a new password, by including $newpassword in the email and selecting the option
* All through the admin control panel !
(version 1.10)
After testing this on a 2000+ user site, we found out there were a few bugs, so we fixed those.
Fixed: Sparkz hack - now really disregards users, not just the ones on the first x on a page.
Fixed: Will now actually set md5 hashes in the mysql and plaintext in the email.
Fixed: Parses the options you selected on next page, and not just the first one.
##### Credits
Jelsoft - for comming up with the great plan to code something up like vBulletin ! :)
Cary - for thinking up this hack (and testing it on 2000+ user board)
Scott - for helping debugging and fixing the next-page issue
Erwin - for providing the line of code for the random generator and other advice
Sparkz - for the hack that lets us email everybody, regardless of their ignore-admin-emails setting
xiphoid - (me) for taking the time and effort to think up more code and integrate it and the new options into email.php [lol]
##### Extra (copyrights/disclaimer/policy)
I do NOT give permission to distribute any file, or any part of a file, from this hack outside of vBulletin.org!
If I do find this being released on any other web site, I will hunt you down and kill you.
I do not give permission to translate this hack into any other language then english, and re-release it. If I wanted it to be in german or french, I would have released it as such.
You ofcourse, are free to modify any part of the hack to your liking, just don't distribute or re-release it.
This hack requires you to have a valid license, and intented to be applied to unhacked vBulletin email.php file from version 2.3.0 - older versions should maybe apply some little changes, but I only support this version.
My support is limited, my knowledge and time restrickt me to what I can do for you. I owe you nothing. I released this after testing on 3 different 2.3.0 powered sites without any issues. This tells me it works. If you can't get it to work, you made a mistake.
I ofcourse, am not responsible for your database changes, failure of working or any other damage to your data, files, users, dog or car.
You apply the changes, I assume you therefor know what you are doing. My only advice: make a backup before you make any changes or run the new feature.
Support goes through this thread on vBulletin.org only. If you email, icq, PM, irc me about it. I will give you code that will destroy your database. [lol]
Enjoy :)
##### Installation instructions
In the .zip file
##### Upgrade instructions
To upgrade from 1.00 to 1.10 apply Step 3 F (just that one)
##### Screenshots
In the .zip file
Enjoy!
xiphoid
|| # Force New Password (en masse) - Requested by Cary from vBulletin # ||
|| # Author: xiphoid (info@vbulletin.nl) - version 1.10 for vB 2.3.0 # ||
|| # All PHP code in these files are ?2003 by their respected owners. # ||
|| # None of the files may be redistributed outside of vBulletin.org! # ||
|| # No (real) animals have been hurt during the making of this hack! # ||
\*================================================ ======================*/
##### Information
This hack integrates with the admin/email.php file from which you are then able to choose to mass email your users a new password, which it randomly generates (automaticly).
This hack is written on request by Cary (vBulletin.com Team Member) who needed it for a web site that converted from snitz forum to a vBulletin powered forum.
This hack will ONLY work if you have Sparkz hack installed 'Email users regardless of 'no mail from admin' hack' (http://www.vbulletin.org/hacks/index.php?s=&action=showhack&hackid=323)
##### Features
(version 1.00)
* You can keep using 'email to users' admin/email.php file as normal, this is just an extra feature
* You can 'test' without actually changing any password
* You can 'echo' the generated passwords for debugging or reference purposes
* The new features are restrickted to the userid that you set, to prevent abuse by other users with access to the admin control panel
* And ofcourse, you can now use 'email to users' mail form to inform your users they have a new password, by including $newpassword in the email and selecting the option
* All through the admin control panel !
(version 1.10)
After testing this on a 2000+ user site, we found out there were a few bugs, so we fixed those.
Fixed: Sparkz hack - now really disregards users, not just the ones on the first x on a page.
Fixed: Will now actually set md5 hashes in the mysql and plaintext in the email.
Fixed: Parses the options you selected on next page, and not just the first one.
##### Credits
Jelsoft - for comming up with the great plan to code something up like vBulletin ! :)
Cary - for thinking up this hack (and testing it on 2000+ user board)
Scott - for helping debugging and fixing the next-page issue
Erwin - for providing the line of code for the random generator and other advice
Sparkz - for the hack that lets us email everybody, regardless of their ignore-admin-emails setting
xiphoid - (me) for taking the time and effort to think up more code and integrate it and the new options into email.php [lol]
##### Extra (copyrights/disclaimer/policy)
I do NOT give permission to distribute any file, or any part of a file, from this hack outside of vBulletin.org!
If I do find this being released on any other web site, I will hunt you down and kill you.
I do not give permission to translate this hack into any other language then english, and re-release it. If I wanted it to be in german or french, I would have released it as such.
You ofcourse, are free to modify any part of the hack to your liking, just don't distribute or re-release it.
This hack requires you to have a valid license, and intented to be applied to unhacked vBulletin email.php file from version 2.3.0 - older versions should maybe apply some little changes, but I only support this version.
My support is limited, my knowledge and time restrickt me to what I can do for you. I owe you nothing. I released this after testing on 3 different 2.3.0 powered sites without any issues. This tells me it works. If you can't get it to work, you made a mistake.
I ofcourse, am not responsible for your database changes, failure of working or any other damage to your data, files, users, dog or car.
You apply the changes, I assume you therefor know what you are doing. My only advice: make a backup before you make any changes or run the new feature.
Support goes through this thread on vBulletin.org only. If you email, icq, PM, irc me about it. I will give you code that will destroy your database. [lol]
Enjoy :)
##### Installation instructions
In the .zip file
##### Upgrade instructions
To upgrade from 1.00 to 1.10 apply Step 3 F (just that one)
##### Screenshots
In the .zip file
Enjoy!
xiphoid