Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-05-2011, 09:51 AM
brtev brtev is offline
 
Join Date: Feb 2010
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Disabled Change Email field, but can't modify password

I deleted the email field on the

Edit Email & Password page

but when members submit their password, vbulletin gives error message:

Please complete the required field "Email".

How do I disable vbulletin from checking the email field after a member submits their new password?

Thanks!
Reply With Quote
  #2  
Old 01-06-2011, 07:27 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would not think that would be possible, since that's a required security check whenever editing your password. I don't think you can bypass such a security check.
Reply With Quote
  #3  
Old 01-07-2011, 02:48 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would be best to keep the email field just as a "hidden" field so the user can't alter it (assuming that is what you are trying to accomplish)... change the tag from <input type="text"...> to <input type="hidden"...>
Reply With Quote
  #4  
Old 06-30-2012, 11:02 PM
stalkingdatoast stalkingdatoast is offline
 
Join Date: Apr 2011
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
It would be best to keep the email field just as a "hidden" field so the user can't alter it (assuming that is what you are trying to accomplish)... change the tag from <input type="text"...> to <input type="hidden"...>
WHere do i change this?? im also trying to hide the email so no one changes it. Where exacly do i change the input type from text to hidden?? PLease help asap
Reply With Quote
  #5  
Old 07-01-2012, 06:44 AM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why not just change the field in profile manager for Field Editable by User to "Only at registration"?
Reply With Quote
  #6  
Old 07-01-2012, 11:36 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stalkingdatoast View Post
WHere do i change this?? im also trying to hide the email so no one changes it. Where exacly do i change the input type from text to hidden?? PLease help asap
In Admin CP - Settings -> vBulletin Options -> General Settings edit the setting "Add Template Name in HTML Comments" to YES.

Now go load the page to change your email/password an view the page source in your browser.

The name of each template used will be shown in the HTML comments.

Figure out which template is being used to show the email fields.

In Admin CP -> Style Manager -> (Choose your style) -> Edit Templates

Edit that template... change the fields for the email from <input type="text"... > to <input type="hidden" ...>

Do this for both the email line and the confirmation line.

Don't do anything else.

Save the template and make sure it works how you expect.

If it does (it should) you can go back to the template and edit out the code that mentions email change in the template as well so no one knows anything is missing.

Actually thinking about it you may want to simply add "readonly" to the existing input fields so users can still see it but not edit it.

Might be easier, ultimately up to you.

Quote:
Originally Posted by Simon Lloyd View Post
Why not just change the field in profile manager for Field Editable by User to "Only at registration"?
Email is not a field available in the field manager- at least it isn't listed in any of my forums.
Reply With Quote
  #7  
Old 07-01-2012, 12:34 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahh!, didnt read it properly, ok you need to edit the modifypassword template and replace this
HTML Code:
<if condition="$show['edit_email_field']">
			<fieldset class="fieldset">
				<legend>$vbphrase[edit_email_address] ($vbphrase[optional])</legend>
				<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
				<tr>
					<td>
						<div>$vbphrase[new_email_address]:</div>
						<div><input type="text" class="bginput" name="email" value="$bbuserinfo[email]" size="50" maxlength="50" dir="ltr" /></div>
					</td>
				</tr>
				<tr>
					<td>
						<div>$vbphrase[confirm_new_email_address]:</div>
						<div><input type="text" class="bginput" name="emailconfirm" value="$bbuserinfo[email]" size="50" maxlength="50" dir="ltr" /></div>
					</td>
				</tr>
				</table>
			</fieldset>
			</if>
for this
HTML Code:
<if condition="$show['edit_email_field']">
			<fieldset class="fieldset">
				<legend>$vbphrase[edit_email_address] ($vbphrase[optional])</legend>
				<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
				<tr>
					<td>
						<div>$vbphrase[new_email_address]:</div>
						<div><input type="text" class="bginput" name="email" value="$bbuserinfo[email]" size="50" maxlength="50" dir="ltr" readonly="readonly" /></div>
					</td>
				</tr>
				<tr>
					<td>
						<div>$vbphrase[confirm_new_email_address]:</div>
						<div><input type="text" class="bginput" name="emailconfirm" value="$bbuserinfo[email]" size="50" maxlength="50" dir="ltr" readonly="readonly" /></div>
					</td>
				</tr>
				</table>
			</fieldset>
			</if>
this will show their email address so no problem when changing your password...etc but they will not be able to change it for anything

--------------- Added [DATE]1341149700[/DATE] at [TIME]1341149700[/TIME] ---------------

@BOP5 lol, just bothered to read your post fully and see you suggested what i added

--------------- Added [DATE]1341149974[/DATE] at [TIME]1341149974[/TIME] ---------------

Just another note, if you really dont want them to even be able to select or look like they are able to change it you can change the readonly="readonly" for disabled="disabled"
Reply With Quote
  #8  
Old 07-01-2012, 03:15 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No you cannot used disabled="disabled"

If you set a field to disabled the browser will not submit it when you press the submit button it would be like trying to submit the forum with empty email addresses.
Reply With Quote
  #9  
Old 07-01-2012, 03:53 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I didn't try that i just know if you use disabled you can still see the email address but it's greyed out and uneditable.
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 04:48 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06335 seconds
  • Memory Usage 2,257KB
  • 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
  • (2)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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