This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

rooman

  • ****
  • 231 posts
Hello
The OpenStreet plugin is activated
But it doesn't appear in the hooks
I don't know what the problem is

*

MB Themes

Re: The OpenStreet plugin is activated But it doesn't appear in the hooks
« Reply #1 on: March 27, 2024, 11:09:55 AM »
@rooman
you sure looking on correct hook?
There might be theoretical chance when function is added to hook via init hook, that it might not show up (never tried).
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

rooman

  • ****
  • 231 posts
Re: The OpenStreet plugin is activated But it doesn't appear in the hooks
« Reply #2 on: March 27, 2024, 12:19:32 PM »
@rooman
you sure looking on correct hook?
There might be theoretical chance when function is added to hook via init hook, that it might not show up (never tried).

OpenStreet plugin hook not found in item details
Only radius_map_items exists
Exists outside the item details as
osm_map_hook
I can't drag or move it

*

MB Themes

Re: The OpenStreet plugin is activated But it doesn't appear in the hooks
« Reply #3 on: March 29, 2024, 01:11:14 PM »
Correct it use 'location' hook.
You cannot drag hook functions across different hooks.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

rooman

  • ****
  • 231 posts
Re: The OpenStreet plugin is activated But it doesn't appear in the hooks
« Reply #4 on: March 29, 2024, 01:23:28 PM »
Correct it use 'location' hook.
You cannot drag hook functions across different hooks.
How can this be corrected?

*

MB Themes

Re: The OpenStreet plugin is activated But it doesn't appear in the hooks
« Reply #5 on: March 29, 2024, 04:35:46 PM »
It is correct as it is.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

rooman

  • ****
  • 231 posts
Re: The OpenStreet plugin is activated But it doesn't appear in the hooks
« Reply #6 on: March 31, 2024, 12:31:03 PM »
It is correct as it is.
I think you don't understand what I mean
How can this problem be treated?
How to insert
osm_map_hook
On the orphan list or item

*

MB Themes

Re: The OpenStreet plugin is activated But it doesn't appear in the hooks
« Reply #7 on: March 31, 2024, 09:50:52 PM »
You must edit plugin files and change hook.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

rooman

  • ****
  • 231 posts
Re: The OpenStreet plugin is activated But it doesn't appear in the hooks
« Reply #8 on: April 01, 2024, 06:34:32 AM »
You must edit plugin files and change hook.
Which file should be edited?
And how

*

MB Themes

Re: The OpenStreet plugin is activated But it doesn't appear in the hooks
« Reply #9 on: April 01, 2024, 01:54:56 PM »
index.php or functions.php
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Marked as best answer by frosticek on April 02, 2024, 09:40:14 AM
*

rooman

  • ****
  • 231 posts
Re: The OpenStreet plugin is activated But it doesn't appear in the hooks
« Reply #10 on: April 02, 2024, 09:22:55 AM »
index.php or functions.php
functions
Change from
osc_add_hook('location', 'osm_map_hook');
to
osc_add_hook('item_detail', 'osm_map_hook');

*

MB Themes

Re: The OpenStreet plugin is activated But it doesn't appear in the hooks
« Reply #11 on: April 02, 2024, 09:40:23 AM »
Correct
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots