PDA

View Full Version : Administrative and Maintenance Tools - Save Users' Old Email Addresses for vB4


Boofo
05-25-2010, 10:00 PM
Save Users' Old Email Addresses for vB 4
Version 1.0.0
(By Boofo)

What does this product do?
This modification will save users' email addresses (except those users awaiting email confirmation) when they change them. This is good for keeping a record of any email changes a user might make to try and SPAM the site. Only Admins should be allowed to view them. The emails will show under the "About Me" tab in their profile if they have changed them.

Credits: A special thanks goes out to Andreas for coming up with the original code back in vb3.5. Also, thanks to Mosh for the regex setting code.

Version Information:
Version 1.0.0 --Initial release for vB4

Installation overview:
---------------------------
Products to install: (1)
Profile Fields to Create (1)

Installation Instructions:
---------------------------
Step 1: Make a new profile field with the following info:

Title: Email Addresses
Max length of allowed user input: 1000
Field Length: 25
Text Area Height: 4
Profile Field Type: Multiple-Line Text Box
Field Required: No
Field Editable by User: No
Private Field: Yes
Field Searchable on Members List: No
Which page displays this option?: Edit Your Details

NOTE: Make sure to write down what profile field number this new profile field is. You will need to change the setting in the 'vBulletin -> Settings -> Options' to what your new profile field is. Also, make sure you set the permissions for viewing private profile fields to NO for those usergroups you do NOT want to see the email addresses.

Step 2: Go to your Admin CP
Scroll down to 'Plugin System'
Click 'Manage Products'
Click 'Add/Import Product'
Click the 'Browse' button, and locate the product-boofo_save_old_emails.xml file on your computer
---------------------------
Done!
Enjoy!

if ($mark_as_installed != 'clicked')
{
$you_get = 'squat';
}
else
{
$you_get = 'support';
}

cykelmyggen
05-26-2010, 04:40 AM
What a great idea, thanks - tagged for future use:)

Videx
05-27-2010, 12:44 AM
Actually, a more sensible idea was done in Automatically Create Usernote on EMAIL Change (https://vborg.vbsupport.ru/showthread.php?t=154322&highlight=email+change). Instead of having to make a field, it just automatically added usernotes.

Boofo
05-27-2010, 12:51 AM
I just looked at the hack and it uses 2-4 queries to do the usernote. This one doesn't use any queries. That right there is the main reason I wrote this.

Xencored
05-27-2010, 06:33 AM
I just looked at the hack and it uses 2-4 queries to do the usernote. This one doesn't use any queries. That right there is the main reason I wrote this.

<3333

"a more sensible idea was done" i loved that bit :D

Thanks Boofo nice to have you back on the game:up:

if ($mark_as_installed != 'clicked')
{
$you_get = 'squat';
}
else
{
$you_get = 'support';
}
Best coding ive seen in years! lmfao

Boofo
05-27-2010, 06:45 AM
Thank you, sir. I appreciate the comments. And nice to be back. ;)

That $you_get code actually works. I'm waiting for the first person to ask for help that hasn't clicked install. ;)

Videx
05-27-2010, 02:49 PM
Since email addys change so rarely it wouldn't really matter if it used 20 queries. What's much more important is that it's a much simpler install if I don't have to go creating custom fields.

Anyway, I was merely offering a suggestion; I didn't want to argue about it. Did you think about using an existing field such as User Notes? Is there a reason you can't use it in vb4?

Another consideration is that if I were to install this one now, then all my future notes will be in a different place from my old ones, making it more difficult to find the info.

Boofo
05-27-2010, 03:11 PM
I personally like user stuff to be in a location that is easily accessible for that user all in one place. If a simple install is all you are looking for, then this hack is not for you. Usability and convenience is far more important to me than simplicity.

Like I said, most admins don't use the usernotes very much, so that would be a waste to me to even consider going that route. Why enable something you only need for one thing that works better the way I did it?

Videx
05-27-2010, 04:05 PM
Why enable something you only need for one thing that works better the way I did it?"Better" is not having to make a custom field. User Notes is not something that has to be enabled, they're there by default.

Again, please consider in a future release at least an option to use the already existing User Notes field for this.

steve1966
04-17-2011, 02:00 PM
Thank you rated 10/10

OldSchoolDSL
11-19-2011, 09:11 PM
4.1.8 :(

Not working. Update please?

Boofo
11-20-2011, 02:59 AM
4.1.8 :(

Not working. Update please?

Working fine for me on 4.1.8.

OldSchoolDSL
12-04-2011, 04:23 AM
Working fine for me on 4.1.8.

Can confirm.

Had to clear cache and rebuild template..... Sorry

All is working

Luca_ITA
01-03-2012, 05:12 PM
Just installed on v4.1.9
Working perfectly!
Thank you for this mod!

stevieb
07-31-2013, 09:16 PM
4.2.0 - works perfectly.... :)

Thanks

Skyrider
02-02-2015, 02:36 PM
Date/time stamps of email change would be nice.

ozzy47
02-02-2015, 02:37 PM
Sadly that will never get added to the product, since Boofo is no longer with us. :(

Skyrider
02-02-2015, 05:22 PM
Is that what the RIP means? I never noticed the tag until now, i'm sorry to hear that :(.

ozzy47
02-02-2015, 05:51 PM
Yes, that is indeed what that means. :(

IslamicBoard
02-29-2016, 02:48 PM
What is the advantage of using this add-on over Profile Change History available by default in AdminCP? https://www.vbulletin.com/docs/html/main/user_change_history