PDA

View Full Version : Save Old Emails 2.0.0


mtha
10-29-2005, 10:00 PM
/*================================================= =====================*\
|| ################################################## ################## ||
|| # SAVE OLD EMAIL RECORD v2.0.0 ? by HacNho # ||
|| # Copyright (C) 2005 by HacNho, All rights reserved. # ||
|| # ---------------------------------------------------------------- # ||
|| # For use with vBulletin Version 3.5.0 # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| # Discussion and support available at # ||
|| # https://vborg.vbsupport.ru/showthread.php?t=99692 # ||
|| ################################################## ################## ||
\*================================================ ======================*/

Hack Version: 2.0.0.051009
Compatible vB version: 3.5.0
Support: https://vborg.vbsupport.ru/showthread.php?t=99692

Version for vB 3.0.x
https://vborg.vbsupport.ru/showthread.php?p=499799#post499799

Credit:
Glenn H. Shelton III (Hurricane) for original idea for vB 3.0.x
- https://vborg.vbsupport.ru/showthread.php?t=63745


DESCRIPTION:
- Save all Old Emails to OldEmailList if user change email (or password)

The idea is to keep track of all the changes when people try to fool on you, by register on some email, posting trash, and change to another, or if someone hack some account, and change email address to something else, then you can contact the original user.

CHANGES/MODIFICATION:

- Profile Field to create: 1
- XML Product to import: 1


INSTALL:

1. Create a new profile field:
- Go to: AdminCP / User Profile Fields / Add New User Profile Field
- Select: Multiple-Line Text Box
- Set
Title = Save Old Email List
Text Area Height = 4
Field Required = No
Field Editable by User = No
Private Field = Yes
Field Searchable on Members List = No

- Create and check back on User Profile Field Manager for the new created field name. It should be 'fieldX' where X is some number.

2. Import XML product-hn_save_old_email.xml using vBulletin standard product import tool.

3. Go to Plugin Manager, and edit plugin named "HN: Save Old Email" at location "profile_updatepassword_complete"

Edit the line
$save_old_email_field = 'field';
Change field35 to the field that you just created


* CAUTION: you HAVE TO create a new profile field (step1), and change the field number (step3) for the hack to work.

SCREENSHOT:
Included

mtha
10-30-2005, 02:47 PM
reserved

Snake
10-30-2005, 04:14 PM
Nice hack. Installed!

COBRAws
10-30-2005, 08:16 PM
Nice hack. Installed!

indeed

Boofo
10-30-2005, 09:38 PM
Are you sure you wanrt to do this for Users Awaiting Email Verification in case they need to change it?

Also, using the userdata_presave hook is a better way to go. ;)

Odysseus
10-31-2005, 06:24 AM
Hm. I like this hack.

* Odysseus klicks INSTALL


Hint for Europeans:

If you want the date to be displayed in the common European notation, replace this code:

date("F j, Y, g:i a")

with this:

date("d.m.Y, H:i")

You will have dates like this then:
31.10.2005, 21:15

mtha
10-31-2005, 10:14 AM
Are you sure you wanrt to do this for Users Awaiting Email Verification in case they need to change it?

why not? it doesnt harm keeping a log of what they's done. The log is for admin to get more information anyway.


Also, using the userdata_presave hook is a better way to go. ;)

why so?

-=Sniper=-
10-31-2005, 10:33 AM
nice :)

ndahiya
08-06-2006, 02:27 AM
would this work with 3.6 ?

Subah
03-22-2007, 09:40 AM
would this work with 3.6 ?

Same question :D