This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

How can I change town to city?
#1

If I wanted to change the field that says town to City where would I need to go to change it? I just tried replacing everything that came up town to city and now the entire field is missing.

Also if I wanted to add other fields how can I do this?
Reply
#2

Hi,

You would open /comments/includes/language/english/form.php

On line 54, there is this:
PHP Code:
<?php 
define
('CMTX_LABEL_TOWN', 'Town:');

Change to:
PHP Code:
<?php 
define
('CMTX_LABEL_TOWN', 'City:');

The other part to change in this file would be:
PHP Code:
<?php 
define
('CMTX_TITLE_TOWN', 'Enter town');

To:
PHP Code:
<?php 
define
('CMTX_TITLE_TOWN', 'Enter city');

Then in /comments/includes/language/english/processor.php, there are these:

PHP Code:
<?php 
define
('CMTX_ERROR_MESSAGE_NO_TOWN', 'The town field can not be empty. Please enter your town.');
define ('CMTX_ERROR_MESSAGE_INVALID_TOWN', 'The town must contain letters and optionally - & . \'');
define ('CMTX_ERROR_MESSAGE_RESERVED_TOWN', 'The town entered is reserved. Please enter another town.');
define ('CMTX_ERROR_MESSAGE_BANNED_TOWN', 'The town entered is forbidden. Please enter another town.');
define ('CMTX_ERROR_MESSAGE_DUMMY_TOWN', 'The town entered is not yours. Please enter your town.');
define ('CMTX_ERROR_MESSAGE_LINK_IN_TOWN', 'The town entered contains a link. Please enter your town.');

Have you completed the interview?
Reply
#3

Adding extra fields is a feature which is planned for the next version.

Can you give me a few details about how you would use the feature, like:

1. How many fields you want
2. The type of field (text field, drop-down, radio button etc)
3. Any validation like to check if it's a number etc
4. Are you going to display the data
5. Any other requirements you can think of for this feature

Have you completed the interview?
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
16-Oct-2017, 08:11 AM
Last Post by johan
13-Mar-2014, 10:55 AM
Last Post by Girasole
21-Nov-2013, 06:07 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)