Member
Member
andy26   2012-01-21, 13:30
#1

Hi

On my user registration form I have address fields. The problem I am facing is that all the letters are uncapitalised, e.g "street" rather than "Street".

I have searched through my ZenPhoto folders/files to find where to change this and have not had much luck. Please can you advise upon the location of this file?

Regards

Member
Member
andy26   2012-01-21, 13:45
#2

NB. Additionally on the log in form I want to change the text 'User' to 'Email' as my users use email addresses to log on. Please can you advise on the location of this file too?

Many thanks

Administrator
Administrator
acrylian   2012-01-21, 14:29
#3

All plugin files are within /zp-core/zp-extensions. As alway you should not modify files there but create custom files. For all plugins you can create custom forms to be placed within either the theme's folder or within the /plugins (user plugin folder). Please see the documentation of the plugin.

Do you use the native English of Zenphoto? I don't remember if the terms are all lowercase or not right now.

Member
Member
andy26   2012-01-21, 20:31
#4

I believe I am using the native English of ZenPhoto. I keep looking for the files but I'm not having any luck. So far I've tried:

  1. Problem of changing 'street' to Street' on the registration form - I've tried looking in zp-core/zp-extensions/register_user/register_user_form.php and zp-core/zp-extensions/register_user.php.

  2. Problem of changing 'User' to 'Email Address' on the login form - I've tried looking in zp-core/zp-extensions/user_login-out.php.

Please help as at the moment problem number 1 looks unprofessional and number 2 is confusing for users.

Regards

Administrator
Administrator
acrylian   2012-01-21, 21:11
#5
  1. If it is just the lowercase you can use CSS to change that as well.
  2. Sorry, my colleague is more familiar with the login stuff so hopefully he can help with that later.
Member
Member
sbillard   2012-01-21, 21:22
#6

1 The address fields come from the comment_form plugin.


2 Logon forms are done by the Zenphoto_Athority class.

Administrator
Administrator
fretzl   2012-01-21, 22:02
#7
  1. ...zp-core/zp-extensions/comment_form.php

Starting from line 302 you'll see bits of code like
sprintf('street%s:',$required).

Change [i]street%s[/i] to [i]Street%s[/i]
Do this for all the address parts.

Like @crylian said it's best to make custom plugin and put that in the plugins folder.

Administrator
Administrator
fretzl   2012-01-21, 22:57
#8
  1. You could try this jQuery/JavaScript snippet on the page you're calling the login form.

`

$(document).ready(function(){
$("legend:contains('User')").text("Email");
});

`

Member
Member
andy26   2012-01-21, 23:15
#9

Great! Resolved both issues. Many thanks for your quick and efficient help.

Regards

Member
Member
sbillard   2012-01-21, 23:29
#10

don't even need custom plugin, just put the folder/file in your theme folder.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.