Skip Navigation

[Resolved] Toolset Maps and ultimate members

This support ticket is created 5 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 7 replies, has 2 voices.

Last updated by Arne 5 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#1434151

Tell us what you are trying to do?

I am trying to display usermeta fields created by ultimate member on a google map.

We are currently using a plugin for that but it is horrible, so I am trying to find an alternative.

Is there any documentation that you are following?

I tried following the maps documentation but couldn’t figure out how to access fields that are not created by toolset.

Is there a similar example that we can see?

Sure, this is how it is supposed to work though I would like to use the additional features of toolset maps. hidden link

What is the link to your site?

hidden link

This is what I have been thinking could be possible:

1. I created a custom post type called maps for that I tried pulling in the custom user fields couldn’t figure out how (using the new block editor).

2. Maybe another way would be creating the user fields for ultimate member with toolset but it looks like this does not work and since the ultimate member fields are stored in the user meta table I thought we could just access them using toolset.

What do you think?

Thanks
Arne

#1434267

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Toolset blocks version 1.0.1 support post views for now.

The first thing is that you are saying that you want to create a map based on the information stored by the ultimate members plugin and that plugin stores the information at usermeta table.

I need to first understand your data/content structure, what content you want to display exactly where. Can you please first show me what content you want to plot on map and from where we need to get the content.

Once I review your data structure I will be able to guide you in the right direction. To review your stcture, I need admin access details and links where I can see your content based on which you want to create the map.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1435461

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Thanks for the all required details.

Using the Toolset shortcode [wpv-user field='custom-field-name'] we can access the usermeta information strored in the database by ultimate member plugin. so, we have a way to access those stored user custom fields.

More info:
=> https://toolset.com/documentation/user-guides/views/views-shortcodes/#wpv-user

Now, you can activate the classic views access so that you can create a user view with map. To activate that I've followed the following points as marked in the following screenshot:
=> https://toolset.com/wp-content/uploads/2019/12/toolset-settings-both-workflows.png

I've created the following user view:
=> hidden link..de/wp-admin/admin.php?page=views-editor&view_id=1075

Now, I would like to know, as I can see the map co-ordinates with each user profile at the bottom of the user profile:
=> hidden link..de/wp-admin/user-edit.php?user_id=181&wp_http_referer=%2Fwp-admin%2Fusers.php
- Do we need to use those points to plot the pin?
Or
We need to use those user fields stored in usermeta table to build the address like:

address='[wpv-user field="hausnr"] [wpv-user field="unternehmen-str"]  [wpv-user field="ort"] [wpv-user field="country"]'

Also, The Map API key is not configured correctly, when I click on button "API prüfen" - it showing error.
=> hidden link
- Please configure the unrestricted map API key.

Once you configure correct map API key please revert back to me with answers for the question I raised and I would be happy to help you further.

#1441283

Hi Minesh,

I tried fixing the key but I keep seeing the error message in the backend. The weird thing is, that I am not seeing errors in the browser console and none in the google cloud console.

The preview below the api setting seems to work. Maybe it works when we try it in the actual view.

Re coordinates: the coordinates are from the plugin I am trying to replace so we have to use the user fields.

Can I use a different marker on the map by user role?

Thank you for your help!
Arne

#1442235

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Re coordinates: the coordinates are from the plugin I am trying to replace so we have to use the user fields.
==>
Just to ensure what user fields we need to use and combine those together to form a single address? Can you please confirm? I mean, based on what fields you want to form the address and display the marker on the map?

Can I use a different marker on the map by user role?
==>
I've split the ticket and shared the solution with that.

#1444247

Sure, the fields "hausnr" (number), "unternehmen-str" (street), "ort" (city), "plz" (zip code), "country" shall be used to position the marker on the map.

Thanks
Arne

#1444361

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please check now, I've made a test page: hidden link

I've also adjusted the view roles - you can set the roles to query as per your requirement.
=> hidden link

Also, with I've added my test google map API key to show you the results:
=> hidden link

You should create a correct non-restricted google map API key and register it and remove test API key I've registered.

#1444665

Thank you Minesh, I should be able to work from here. I have also removed your API-key.