vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Need Remove Required Field Message (https://vborg.vbsupport.ru/showthread.php?t=282862)

solarisibot 05-13-2012 03:25 PM

Need Remove Required Field Message
 
Good evening, I need to disable my users not able to edit the email option on the Edit Email & Password, I managed to hide the email field, but when I finish the exchange of password the following message appears:

vBulletin Message
Please complete the required field "Email".

How can I remove this so that I can change the password without this problem?

kh99 05-13-2012 05:38 PM

The problem is that if the submitted email doesn't match the user's current email, it tries to reset the email field. If you removed the email input fields completely then it's trying to set a blank email, which causes that message.

You could solve it by changing the email and emailconfirm fields to hidden fields instead of deleting them, but it might be better to create a plugin to stop email changes (because just removing or hiding the fields might not stop someone from changing their email if they know that's all you did). The plugin would use hook profile_updatepassword_start and have code like this:


Code:

$vbulletin->GPC['email'] = $vbulletin->userinfo['email'];
$vbulletin->GPC['emailconfirm'] = $vbulletin->userinfo['email'];


ReddeR 01-11-2015 09:52 AM

Have this error too.
How fix it ? And how i can add this hook ?
Quote:

Originally Posted by kh99 (Post 2329048)
Code:

$vbulletin->GPC['email'] = $vbulletin->userinfo['email'];
$vbulletin->GPC['emailconfirm'] = $vbulletin->userinfo['email'];



ozzy47 01-11-2015 11:03 AM

1 Attachment(s)
Download the attached to your computer.

Go to, ACP --> Plugins & Products --> Download / Upload Plugins scroll to the bottom, and find this block, Import Plugin Definitions XML File and click on Browse, and find the file on your computer.

This will not show the error, as well as remove the fields from the template.


All times are GMT. The time now is 02:32 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.00924 seconds
  • Memory Usage 1,718KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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