Support Forums - Classified Ads Script Osclass

Osclass plugin support => Hooks Manager Plugin => Topic started by: rooman on March 27, 2024, 07:09:25 AM

Title: The OpenStreet plugin is activated But it doesn't appear in the hooks
Post by: rooman on March 27, 2024, 07:09:25 AM
Hello
The OpenStreet plugin is activated
But it doesn't appear in the hooks
I don't know what the problem is
Title: Re: The OpenStreet plugin is activated But it doesn't appear in the hooks
Post by: MB Themes 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).
Title: Re: The OpenStreet plugin is activated But it doesn't appear in the hooks
Post by: rooman 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
Title: Re: The OpenStreet plugin is activated But it doesn't appear in the hooks
Post by: MB Themes on March 29, 2024, 01:11:14 PM
Correct it use 'location' hook.
You cannot drag hook functions across different hooks.
Title: Re: The OpenStreet plugin is activated But it doesn't appear in the hooks
Post by: rooman 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?
Title: Re: The OpenStreet plugin is activated But it doesn't appear in the hooks
Post by: MB Themes on March 29, 2024, 04:35:46 PM
It is correct as it is.
Title: Re: The OpenStreet plugin is activated But it doesn't appear in the hooks
Post by: rooman 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
Title: Re: The OpenStreet plugin is activated But it doesn't appear in the hooks
Post by: MB Themes on March 31, 2024, 09:50:52 PM
You must edit plugin files and change hook.
Title: Re: The OpenStreet plugin is activated But it doesn't appear in the hooks
Post by: rooman on April 01, 2024, 06:34:32 AM
You must edit plugin files and change hook.
Which file should be edited?
And how
Title: Re: The OpenStreet plugin is activated But it doesn't appear in the hooks
Post by: MB Themes on April 01, 2024, 01:54:56 PM
index.php or functions.php
Title: Re: The OpenStreet plugin is activated But it doesn't appear in the hooks
Post by: rooman 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');
Title: Re: The OpenStreet plugin is activated But it doesn't appear in the hooks
Post by: MB Themes on April 02, 2024, 09:40:23 AM
Correct