vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Prevent changes to email address (https://vborg.vbsupport.ru/showthread.php?t=271019)

bbi 09-28-2011 02:01 AM

Prevent changes to email address
 
Does anyone know of a plugin that would prevent members from changing their password once they have registered?
Thanks

Ziki 09-28-2011 02:13 PM

I think you meant e-mail address. I believe a simple template edit, where you would remove the visible fields should be sufficient.

bbi 09-28-2011 04:15 PM

Sorry - it should have read email address. Being a newbie to VB I am not sure of the (or how) template to edit. I am guessing that you would go into a template and remove the references to changing of the email address. I don't know if there is more than one template that has to be editted and what section of the template to change. If you could give me a little direction that would be great.
Thanks

Quispy 09-29-2011 12:32 PM

Example:
You need to figure out what file might have text that says "Edit Email Address" since this is what shows up in your profile when you go to change your email address.

Assuming you have a copy of VB on your computer for problems just like this.

If you use Notepad++ you can find out real easy.

Just open Notepad++ and click on Search then click on Find in Files....

type in what you want to search for like in this case "Edit Email Address".
And pick your directory where you have your VB upload folder also check look in sub-folders and click search.

It will come up with one hit located in "upload\install\vbulletin-language.xml"

vbulletion-language.xml also has other areas of interest as in
"Confirm New Email Address" and just "New Email Address" has 5 hits in the same file.

I don't know enough about the coding to help you at this point, I learn from trial and error myself and then when I'm lost I ask. Just remember to make backups of your website and databases before messing with something like this unless you know what you're doing.

Good luck, hope this helps.

bbi 09-29-2011 01:41 PM

Thanks. I will give it a try!

Andreas 10-02-2011 12:07 PM

Simply removing the input fields from the templates does not prevent users from changing their E-Mail-Adresses, it just makes it a libble bit more inconvenient as they will have to manually construct the required POST.

Add this Plug-in on hook profile_updatepassword_start

PHP Code:

if ($vbulletin->GPC['email'] != $vbulletin->userinfo['email'])
{
    
standard_error('Sorry, but you are not allowed to change your E-Mail address');


and you're done (though you might still want to remove the <input>s to avoid confusing the users).

bbi 10-03-2011 05:33 PM

Thanks for the help. Being new to VB (and not that much of a tech) I am not sure exactly how to go about "Add this Plug-in on hook profile_updatepassword_start". I have added mods in the past and they are quite straightforward but I think you are suggesting something different. Any direction you might be able to provide in this regard would be greatly appreciated.
Thanks.

Lynne 10-03-2011 05:39 PM

<a href="https://www.vbulletin.com/docs/html/add_plugin" target="_blank">Adding or Editing a Plugin</a>


All times are GMT. The time now is 08:20 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.01105 seconds
  • Memory Usage 1,724KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete