vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - Save Users' Old Email Addresses for vB4 (https://vborg.vbsupport.ru/showthread.php?t=243288)

Boofo 05-25-2010 10:00 PM

Save Users' Old Email Addresses for vB4
 
1 Attachment(s)
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!

Code:

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 . 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

Quote:

Originally Posted by Boofo (Post 2043858)
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:

Code:

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

Quote:

Originally Posted by Boofo (Post 2044144)
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


All times are GMT. The time now is 04:06 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
  • Page Generation 0.01008 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete