1. woluweb
  2. General
  3. Tuesday, January 19 2021, 02:39 PM
Hi there,

I had seen that nice feature
Joomla Contacts Component Integration
If user is linked to contact you will see a direct link to contact page on User Profile Page.


and indeed it works
- with the Contacts which were previously manually created
- and also for the newly Registered Users since I enabled the plugin "Users - Contact Creator"

But what about the pre-existing Users ? How can I get them available as well in the Contacts ?

Any solution would do:
- SQL
- from the interface
- a hack of the plugin
- ...

(I apologize: I am aware that as such this is more a Joomla issue than an EasyProfile issue. But the question arises bc I want to take advantage of that EasyProfile feature... but I already have 500 Users :D )
admin Accepted Answer
Admin
Hi,
the best way is to use an SQL query like this
INSERT INTO prefix_contact_details(user_id,name,alias,catid,published,access,language,params,metakey,metadesc,metadata) SELECT id,name,username,11,1,1,"*","","","","" FROM prefix_users WHERE prefix_users.id NOT IN (SELECT user_id FROM prefix_contact_details)


This query should avoid duplicates.

NOTES:
- You need to replace "prefix" with your Joomla prefix ID
- Before launch this query you could check if the category ID is 11 (like my query)
  1. more than a month ago
  2. General
  3. # 1
woluweb Accepted Answer
Content Protected
  1. more than a month ago
  2. General
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.