100plugins
Forum Replies Created
-
Forum: Plugins
In reply to: [Open User Map] Form displayHi @sarrendell,
We can try one more thing. If this not works please wait a bit for the upcoming update.
Okay, let’s try this. Edit the file /templates/block-map.php in the plugin folder. It looks like this:
<?php require_once "$this->plugin_path/templates/partial-map-init.php"; ?> <div class="open-user-map"> <?php require_once "$this->plugin_path/templates/partial-map-add-location.php"; ?> <?php require_once "$this->plugin_path/templates/partial-map-render.php"; ?> </div>Remove everything and insert this instead:
<?php require_once "$this->plugin_path/templates/partial-map-init.php"; ?> <div class="open-user-map"> <?php $plugin_path = $this->plugin_path; add_action('wp_footer', function () use ( $plugin_path, $oum_map_label, $types, $oum_marker_types_label, $oum_title_label, $oum_address_label, $oum_description_label, $oum_ui_color, $oum_enable_user_notification, $text_notify_me_on_publish_label, $thankyou_text, $map_style, $text_notify_me_on_publish_name, $text_notify_me_on_publish_email, $thankyou_headline, $oum_addanother_label) { echo '<div class="open-user-map">'; require_once "$plugin_path/templates/partial-map-add-location.php"; echo '</div>'; }); ?> <?php #require_once "$this->plugin_path/templates/partial-map-add-location.php"; ?> <?php require_once "$this->plugin_path/templates/partial-map-render.php"; ?> </div>Save the file and test again. Please let me know if it works.
Best Regards,
DanielForum: Plugins
In reply to: [Open User Map] Posts and YouzifyJust a quick update. Starting with version 1.2.21 it is now possible to use shortcodes to display specific content of a location anywhere.
This makes building single pages much easier.
Best regards,
DanielForum: Plugins
In reply to: [Open User Map] Archive Page with all entriesHi @svenatkins,
I just want to let you know that with the current version v1.2.21 archive pages are now available. The Public Pages Feature (Single Pages) must be enabled of course.
So just update and it should work.
Best regards,
DanielForum: Plugins
In reply to: [Open User Map] Location Info Behind map (Premium)Hey @elliotdev00,
Is this solved or did you reach out to me via direct support already?
Just need to know if this is still an issue.
Best regards,
DanielForum: Plugins
In reply to: [Open User Map] outdated maps (2012)Hi @pabloartigas,
Thanks for reaching out! Unfortunately it is not possible to use Google Maps with my plugin. I don’t want the users to mess with API registration, costs and limits that would come with Google Maps as provider.
The downside is that the free map provider (Open Street Map) is not so accurate sometimes.I will probably release an extension for MapBox as provider (with API registration but very accurate map material) in a future update. But this has no high priority at them moment.
Best regards,
DanielForum: Plugins
In reply to: [Open User Map] 3 Feature requestsHi @ronald2020,
Thanks for reaching out (and sorry for the long response time as I was on holiday). Here’s my feedback on your ideas:
- What you can do (PRO) is add a custom field of type “Link”. So your visitors can attach a public URL to their location. The link will then be shown in the location info bubble. Your other idea of adding a URL attribute ?link seems to be a bit risky as this then could be misused as just a redirection (spam ads). But I will think about it a bit more.
- Right. I will try to find a decent way to display the link. That is maybe something like a Share button.
- I think it makes sense to display the map controls even when a location is clicked – at least on larger screens. Maybe people want to search for some other place while keeping the previous location open. But I agree on mobile devices. I will try to optimise this with a next update.
- Right. I gonna change this to a multiselect.
Thanks for your ideas. They are very good. I will keep you in the loop on progress.
Best regards,
DanielYeah, Mapbox is great. However it still needs an API registration and API Handling which I want my users not have to struggle with.
But you are right, I should probably consider to prefer using Mapbox instead of Google Maps eventually.
Thanks, Daniel
Forum: Plugins
In reply to: [Open User Map] Access the map object with another scriptAh! Yeah, I should have told you that I added this feature with version 1.2.20
Best regards,
DanielHi @wordmax,
the auto-suggest feature is based on Open Street Map as provider. I’m relying on OSM because Google has API limits and would need additional authorisation. OSM is very good but not as complete as Google, but that is kind of the deal I need to make – because I want to keep Open User Map free from any API Key / Registration process.
Maybe in the future I will add an extension to use Google’s Service instead but this has no high priority to me at the moment.
Best regards,
DanielForum: Plugins
In reply to: [Open User Map] Suggestion to add a “flag” option for locations…Hi @wordmax,
I like your idea a lot! This would be beneficial in lot of cases. I will implement this in a very next release. I’ll keep you posted on this.
Thanks!
Best Regards,
DanielForum: Plugins
In reply to: [Open User Map] Access the map object with another scriptHey @svenatkins,
Did you try to wrap your code inside
$('document').ready(function(){ // your code });?
If you like to avoid jquery you’d need to use a vanilla JS equivalent.
Best Regards,
Daniel- This reply was modified 3 years, 10 months ago by 100plugins.
Forum: Plugins
In reply to: [Open User Map] Unable to add a pin after registration@hanetlak Did you get my email? I’ve replied on your request a week ago as well. Please let me know if this works for you. We will get this done!
Forum: Plugins
In reply to: [Open User Map] Unable to add a pin after registrationHello @hanetlak,
Thanks for reaching out! What user role are you assigning to the registered users? You need to make sure the user has “edit_posts” or “edit_oum-locations” capabilities. Otherwise the + Button won’t show up. This should prevent users with the role “subscriber” to add locations. Usually “subscribers” should not have the right to add new posts.
Are you using a user role manager plugin?
Best Regards,
DanielForum: Plugins
In reply to: [Open User Map] Access the map object with another scriptHi @svenatkins,
Actually yes. The map object is called oumMap in Javascript. Here you’ll find the LeafletJS documentation on what you can do with it: https://leafletjs.com/reference.html
Best regards,
DanielForum: Plugins
In reply to: [Open User Map] More than one image per location postHi @svenatkins,
No yet but it’s already planned and will be part of a very next release. A couple of users were asking for it. I’ll let you know when it’s ready.
Best regards,
Daniel