Skip to Content Skip to Menu

HotSpots Integration

4 years 3 months ago - 4 years 3 months ago #319891 by piranhapete
HotSpots Integration was created by piranhapete
I purchased Community Builder because of the Hotspots integration ability. However, I seem to be having issue making it work. The Hotspot plugins indicate "Hotspots is not compatible with your current CB version." - The Hotspot map is not rendering in a user profile.

This is what the Hotspot developer had to say:
"Most probably the reason the map is not rendering in the user's profile (this map will show hotspots the user has created) is because you are rendering the map in a tab and that tab is not the first one that renders on the page. I don't know if CB has changed anything in their JS, but in the past it was not possible to detect the tab the map is placed in and when it is visible. That's why the map loads on page load. But since the tab is not rendered and it effectively has a 0 height - google maps isn't able to properly initialize. If you want to use that map, move it to a different position and it will be fine.

To place the user's on the hotspots map you'll have to play with the other hotspots settings. And onProfileSave or onProfileUpdate the hotspots code will be triggered - we'll try to get the entered address and geocode it to lat, lng coordinates. If this succeeds. The user will be added to the database."

Thoughts?

This message contains confidential information
Last edit: 4 years 3 months ago by piranhapete. Reason: security

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
4 years 3 months ago #319893 by krileon
Replied by krileon on topic HotSpots Integration
We're not the developers of the HotSpot integration you're using so we're limited in what help we can provide. Tabs fire a jQuery event on selection so it is possible to track when a tab is rendered. This is done with the below.

Code:
$( '.cbTabsMenu' ).on( 'cbtabs.selected', function( e, event, cbtabs, tab ) { // code to execute when a profile tab is selected in the tab menu position });

e = original event triggering cbtabs.selected
event = the pass through event triggering cbtabs.selected (use this if detecting click target)
cbtabs = the cbtabs jquery object
tab = tab object selected

tab contains a lot of sub-objects for various parts of a tab. They are as follows and allows acting on various parts of a tab.

tabNav = the navigation container
tabNavLink = the navigation link
tabPane = the tab container
tabIndex = the placement of the tab by index

The issue with the map not showing due to not being able to calculate the height can be avoided by adding a static height to the map container and if needed removed/changed later with JS for responsiveness. Aside from that there's nothing we can really do as we're not the developers of your integration.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

4 years 3 months ago #319894 by piranhapete
Replied by piranhapete on topic HotSpots Integration
What about the "Hotspots is not compatible with your current CB version." issue?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
4 years 3 months ago #319897 by krileon
Replied by krileon on topic HotSpots Integration
That means the plugin was designed for CB 1.x and never updated to CB 2.x. This check is purely against the XML node <version> of the plugins XML file. It is not recommended to simply change the XML nodes value, but to also be sure the plugin has been updated to use latest CB APIs and is actually compatible. This would be up to the developer of your integration to do.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: piranhapete

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

Moderators: beatnantkrileon
Powered by Kunena Forum