Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
- This topic has 4 replies, 3 voices, and was last updated 10 years ago by
Michael.
-
AuthorPosts
-
08/16/2016 at 1:24 am #386732
Michael jones
ParticipantHi,
Can i please have some assistance with the below if possible.
I have edited the export all php file which is great but for phone and address there is no option to change the field names.$corePhoneTypes = $instance->options->getDefaultPhoneNumberValues();
$phoneFields = array(
‘number’ => ‘Number’,
‘visibility’ => ‘Visibility’,); // Add the core phone types to the field array. foreach ( $corePhoneTypes as $phoneType => $phoneName ) { //$key = 'phone_' . $phoneType . '_number'; //$fields[ $key ] = 'Phone | ' . $phoneName; foreach ( $phoneFields as $phoneFieldType => $phoneFieldName ) { $key = 'phone_' . $phoneType . '_' . $phoneFieldType; $fields[ $key ] = 'Phone | ' . $phoneName . ' | ' . $phoneFieldName; } }Any ideas on how i can change these?
Example: Phone | Work Fax | Number
08/16/2016 at 10:28 am #386766Steven Zahm
Keymaster@ Michael
I’m sorry, I’m not entirely sure what you wish to accomplish. Can you give more detail?If you are already editing the file, can you not just change the names to whatever you want? Also, fyi, changing the names will break the auto mapping feature in the CSV Import extension.
08/16/2016 at 10:59 pm #386809Michael jones
ParticipantHi Steven,
I wish to change the headings in the CSV export, this is so we can have an offline version of the contact list in case of any issues with our site.
I have changed majority of them and removed some we didnt need which is great, but in the code i cant see anything to change the phone headings, only number and visibility.
Example of headings in the CSV file:
Categories First Name Last Name Position Title Organization Work Address | State, Phone | Cell Phone | Number, Phone | Home Fax | Number, Phone | Home Phone | Number, Phone | Work Fax | Number, Phone | Work Phone | Number, Email | Personal Email | Address, Email | Work Email | Address,
I wish to change the email and phone headings on export like i have with the above.
Is there anything i can add that will change these on export?$corePhoneTypes = $instance->options->getDefaultPhoneNumberValues();
$phoneFields = array(
‘number’ => ‘Number’,
‘visibility’ => ‘Visibility’,I have made a backup of the php file so when i need to export and import i can use that instead.
If not or you still not sure thats fine.
08/17/2016 at 4:42 pm #386864Steven Zahm
Keymaster@ Michael
Honestly, I still do not entirely understand… I thin you want to change the strings coming from
$corePhoneTypes = $instance->options->getDefaultPhoneNumberValues();. If that is the case, you can either hook into the filters and change the values or edit them directly. The function is found in theclass.options.phpfile in this folder:
../includes/settings/class.options.phpDoes that help?
08/18/2016 at 9:47 pm #387013Michael
GuestThanks Steven,
Perfect, this is exactly what i was looking for, sorry for not explaining too well.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
