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.

Contact Enhanced - One button to clear database and import?

10 years 9 months ago - 10 years 9 months ago #14762 by firehorse
Hi,

Currently under tools, there is a button to:
"Import Contacts and Categories from Joomla Core Contacts component"

However this just adds to the existing database.

I need to keep using the Joomla Contacts database because zhgooglemaps reads data from there.

My client is balking at
* Update details in Contacts
* Select CE
* delete contacts
* set status to trash
* empty trash
* select categories
* delete categories
* set status to trashed
* empty trash
* import from Joomla Contacts.
just for changing someone's email address or phone number.

After the above, he then needs to go into the menu system and reset the category selection for contacts enhanced to pick up the new imported category.

Ideally, CE could synchronize with Contacts automatically without the client having to do anything, but I can see that might be a big programming job!

Second choice, more feasible, can you have a second 'import' button that does all the above in one go? ie reset the whole CE database to empty and import from Contacts. If the categories is also reset each time, then we could even avoid having to update the menu as presumably the category id would remain the same :-). I could then advise the client, update Contacts, then click this button in CE. He could live with that :-)

Thanks
Alan

Joomla 2.5.11, CE 2.5.14

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

10 years 9 months ago #14763 by douglas
Dear Alan,

Contact Enhanced was designed to work independent from Joomla core contacts component. I have created the import option to make the transition easier.

It is much easier and faster if you ask zhgooglemaps developer to support Contact Enhanced as well. It should be very easy because CE database table structure is very similar to Joomla core contact component.

Can you do that?

Best regards,

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

10 years 9 months ago #14765 by firehorse
Dear Douglas,

I've asked, but he is away on holiday for another week or so.
forum.zhuk.cc/index.php/forum/...ather-than-joomla-contact#2572

Is there any documentation on the CE database structure to speed up the process?

Thanks
Alan

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

10 years 9 months ago - 10 years 9 months ago #14766 by douglas
Dear Alan,

If you want to clear the Contact details database table you can execute this SQL query below for now using PHPMyAdmin:
TRUNCATE TABLE `#__ce_details`

Don't forget to replace #__ with your Joomla database tale prefix.

PS: This will remove all your contacts in Contact Enhanced Components.

I hope that helps you for now.

Best regards,

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

10 years 9 months ago - 10 years 9 months ago #14768 by firehorse
Dear Douglas,

Thank you for that. It's given me another possibility.

I've had a quick look at Joomla's database. I can see #__ce_details which is the contacts for Contact Enhanced, but I can't see the equivalent table for categories?

I'm thinking of using this extension
mijosoft.com/joomla-extensions/mijosql-joomla-database-manager
which says it can save sql queries.

If I can put

TRUNCATE TABLE `#__ce_details`

together with the one for the categories, then running the "saved query" will reset the CE to its starting state and the client can just click on reimport and not have to worry about setting up the menu connection again.

Will

TRUNCATE TABLE `#__ce_details`

reset the categories as well or will there be another command?

***

Ah ... just found the CE categories in Joomla categories, extension field filled with "com_contactenhanced". That's a problem, because although the saved query will be able delete and 'trash' those category items, the user still needs to connect up the menu to the right category for the list of contacts to display. hmmm...


Thinking ...
Alan

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