Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-28-2011, 02:01 AM
bbi bbi is offline
 
Join Date: Jul 2011
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Prevent changes to email address

Does anyone know of a plugin that would prevent members from changing their password once they have registered?
Thanks
Reply With Quote
  #2  
Old 09-28-2011, 02:13 PM
Ziki's Avatar
Ziki Ziki is offline
 
Join Date: Nov 2005
Posts: 2,704
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think you meant e-mail address. I believe a simple template edit, where you would remove the visible fields should be sufficient.
Reply With Quote
  #3  
Old 09-28-2011, 04:15 PM
bbi bbi is offline
 
Join Date: Jul 2011
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 09-29-2011, 12:32 PM
Quispy Quispy is offline
 
Join Date: Feb 2010
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 09-29-2011, 01:41 PM
bbi bbi is offline
 
Join Date: Jul 2011
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. I will give it a try!
Reply With Quote
  #6  
Old 10-02-2011, 12:07 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #7  
Old 10-03-2011, 05:33 PM
bbi bbi is offline
 
Join Date: Jul 2011
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 10-03-2011, 05:39 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:56 PM.


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.18578 seconds
  • Memory Usage 2,227KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete