Support Forum

Every time that you post a problem, PLEASE add the Joomla and the extension's versions and revisions (for example: Joomla 3.3.6, Contact Enhanced 3.3.5), PHP version and Server's Operating System. If you only manage only one site it is easier if you edit your profile and just add that information to your signature. Don't forget to add a detailed description of the problem. If possible, write down all steps to simulate the problem.

Before submitting a new post, PLEASE make sure you are running the latest version, test in different browsers (IE, FF, Chrome,..) and clear Joomla and browser's cache after every change you make.

Also, most questions are already answered in our FAQ and in iFAQ and Contact Enhanced documentation pages.

Anonymous@user.com

10 years 7 months ago #15480 by safeworld
Thanks Doug
That gives me something to play with

Best

Andrew

I just love good customer service

Please Log in or Create an account to join the conversation.

10 years 7 months ago #15482 by safeworld
Hi Doug
On line 121 there is this

$this->emailInfo->name = (JRequest::getVar( 'name') ? JRequest::getVar( 'name') : ($user->get('name') ? $user->get('name') : JText::_('Anonymous User')));

Seeing that we are using a field called Surname as the 'Name' field
would it be possible to add in the extra field we have created called First_Name' in here as well

For us technically challenged it would be code to say please send the email with 'First name and Surname' from the fields 'first_name' and 'name'

:)

Andrew

I just love good customer service

Please Log in or Create an account to join the conversation.

10 years 7 months ago #15485 by douglas
Dear Andrew,

I did not understand what you want to achieve.

Regards,

Please Log in or Create an account to join the conversation.

10 years 7 months ago #15540 by safeworld
Hi Douglas
Apologies for my late reply I had to move on to something else!


Let me show you how we use your forms
Volunteer Applications
This is an example of one of our Volunteer Application Forms
www.asafeworldforwomen.org/volunteers/research-team.html
When the form is completed it goes to the Research Team co-ordinator
We are using two fields for gathering names of applicants
At present we have two fields we are using.
1) First Name (which is a text field)
2) Surname (which is a name field)

So if you filled in the form the Team co-ordinator would see this
Anonymous User Machado admin@fok.com.br

Now if a co-ordinator replies to that email it comes up as the name of the person being replied to.

Rather than Douglas Machado [admin@fok.com.br]

Ok so what I was asking was this
in /components/com_contactenhanced/controllers/contact.php
On line 121 the coding says

$this->emailInfo->name = (JRequest::getVar( 'name') ? JRequest::getVar( 'name') : ($user->get('name') ? $user->get('name') : JText::_('Anonymous User')));


Would it be possible to combine two fields there?
So instead of 'name' we could have 'First_Name' and 'name' as the output fields.

Which means it would add Douglas in as the First Name and Machado as the name field

Hope that explains better I just wouldn't know how to do thus!

Cheers

Andrew

I just love good customer service

Please Log in or Create an account to join the conversation.

10 years 7 months ago #15542 by douglas
Dear Andrew,

I'm working on a fix for you, but in the meanwhile I'll ask you to perform a couple very simple changes on your site.

1. Go to your First Name Custom Field and edit the alias so it reads first_name. This requires the latest CE version to be installed;

2. Disable the Name Custom Field type;

Even though you have explained and I don't get why you cannot use the Name Custom Field, I'll keep this Customization in the source code, so you can upgrade in the future.

Best regards,

Please Log in or Create an account to join the conversation.

10 years 7 months ago #15544 by safeworld
Thanks Doug
Working on it now
Reason for needing this is in order to be able to export the info into other programmes!
If we just used the 'name' field then we wouldn't be able to write to people by First Name
Because people would add into the Name field 'Doug Machado'
So an email to them would be
'Dear Doug Machado'
as opposed to 'Dear Doug'

So using First Name and Surname allows us to have the option to do this
or simple to address someone more formally as in Dear Mr Machado

:)

Thanks my friend

Andrew

I just love good customer service

Please Log in or Create an account to join the conversation.

10 years 7 months ago #15545 by safeworld
Just so you know it worked perfectly
Thank you so much

The team are happy!

:)

Andrew

I just love good customer service

Please Log in or Create an account to join the conversation.

10 years 6 months ago #15580 by safeworld
Douglas
Forgive me for being a total pain!
I just noticed that while we have sorted the name in the email address we have another minor problem
Because the name field is used elsewhere in the system we ened up with only the First Name in the Recorded Messages at the backend and also only the first name in the CSV export file!
And because we need to exported data to use elsewhere as mentioned earlier it causes an issue!
I can try fixing it if you can give me any guidance?

Thanks so much

Andrew

I just love good customer service

Please Log in or Create an account to join the conversation.

10 years 6 months ago #15587 by douglas
Dear Andrew,

You have a very unique situation, so it is hard to get it to work correctly, however I was just testing and for new form submissions you should still get the Name in the CSV file. However it won't show for your previous form submissions.

Best regards,

Please Log in or Create an account to join the conversation.

10 years 6 months ago - 10 years 6 months ago #15591 by safeworld
Good to know we are unique
:)
Just checked and an application which came in today arrived with email address looking fine but only first name showing in the CSV
Is it because the Recorded Messages only show the name field still?

Andrew!

I just love good customer service

Please Log in or Create an account to join the conversation.

10 years 6 months ago #15600 by douglas
Dear Andrew,

I've doubled checked the source code and the first_name field should be recorded in placed of the name field.

I'll create a new version next week OR so. Can you wait?

Best regards,

Please Log in or Create an account to join the conversation.

10 years 6 months ago #15605 by safeworld
Sure we can wait!
Thanks so much

A

I just love good customer service

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum

Copyright © 2018 IdealExtensions.com. All Rights Reserved.

This site is not affiliated with or endorsed by the Joomla!™ Project. It is not supported or warranted by the Joomla!™ Project or Open Source Matters™. The Joomla!™ logo is used under a limited license granted by Open Source Matters™, the trademark holder in the United States and other countries.
We may collect your IP address and your browser's User Agent string while using our site for security reasons and deriving aggregate information (analytics). This information is retained for a minimum of 1 and a maximum of 24 months.
Feedback