customize google store locator - google-maps-api-3

i am using google store locator (http://storelocator.googlecode.com/git/examples/custom.html) for display sport events.
Now I want to customize the messages from google.
I would like to hide the message "There are no stores in this area. However, stores closest to you are listed below." if there is no event in the zoomed area. And I want to put a link over the hole line in the panel to redirect to a specific url.
Are there any options to customize store locator to my wishes?
thx

The source is available. Download it and change it to do what you want. Those messages are defined in this file.

Related

How to pass perameters with third party url?

Check this image first
In the picture above you can see that there are 4 buttons with four different plans and all buttons linked with the third party link (Something Like https://example.com/) so I want that if the user is checking or click on the second plan button then URL should be like https://example.com?2 so we know that which plan user is checking. Any idea about this. Is it possible to pass parameters or whatever to the third-party link? I am using wordpress.

Wordpress Advanced Custom Fields - Limit A User's Choice To One Option

I have a WordPress website and as part of the news items, the editor can add either an:
internal link OR
external link OR
file
Currently I have this set up as a repeater field with maximum rows set to 1.
Is it possible if say one value has been entered, to prevent another of the values from being filled in.
E.g. I add an internal link and then try to add an external link. A message of some sort is then shown to me to say that only one value can be selected at a time.
I know I can add a description to the field with this information but I want to make it idiot proof so that the user can never add more than one value.
Thanks for your time and help in advance.
I can't write this in comments but celeriko right. Install types plugin there is ability of conditional logic. You can very easy implement of from backend.
Types: http://wp-types.com/
Reagrds

How to show pages visited during sessions marked with a custom variable in Google Analytics?

I embed custom links into each resume I send out, so I can see who as clicked on the links. I then take the custom value (passed through a url parameter) and pass it into Google Analytics as a session level custom variable. What I want to do is create a report that will show me all the typical information I can normally see (pages visited, time, etc), but filtered down by custom variables. i.e. I want to see that people form company X have looked at these parts of my website. I've been reading through all the documentation and feel like a custom report is the right way to go, but I'm not really sure. Any suggestions, links, instructions would be appreciated.
Create a custom report. Play around with some configuration like the following:

wordpress - how let users add location on a map?

I'm using Wordpress to build my website, i want to add a form that will have: name, description, image and location on a map. that is letting the users add their own marker on a map.
and by pressing 'submit' the whole data (name, description, image, longitude, latitude) would be saved to a database.
how can i do that? which plugins should i use?
You could use Google Placemarks and give them access to the creation of the 'Placemarks' custom post type that plugin utilises. You might have to hack the featured image..
Alternatively, you're looking at full custom post type creation and google maps API integration, a custom loop that utilises of the featured image.
Plugin that comes closest to what you need is what SMacFadyen suggested - BGMP. But if you want to do that yourself you would need to look into this:
Google Maps JavaScript API
WordPress Custom Post Types
WordPress Meta Boxes
For the first one there is lots of tutorials on how to display map and InfoWindows so you shouldn't have much problem with that. For Custom Post Types there is an awesome generator which should do 99% of your work. For Meta Boxes you can go several ways:
plugin - easiest but you would depend on a plugin which I don't like very much
from scratch - tutorial - which is a lot better than plugin but requires a lot of work
one of the meta box libraries - this is the way I usually go - I'm developing my own but it's not ready yet so in the mean time I would recommend My-Meta-Box or Reusable Custom WordPress Meta Boxes
Several times, when searching how to make this work, I stumbled upon this thread. Every time, I wasn't really happy with the way existing plugins deal with this. So, I now put this together myself.
Here's an overview of my solution.
Use the plugin Custom Post Type UI to create a custom post type for the markers on the map.
Use the plugin Advanced Custom Fields to add a field to this custom post type which represents the location. The field type is of type 'Google Map'.
Copy the standard Google Maps API clustering example to the appropriate theme file in your theme.
For showing your markers, generate the list of locations by, in your theme file, requesting the posts of your newly created custom post type.
For each marker/location, pick up the 'Google Map' field and abstract the latitude and longitude.
For each marker/location, construct the appropriate array element for the array with all locations, with, at least, the latitude and the longitude, and probably also the contents of an infowindow.
This should give you a map with all locations plotted out.
To allow users to add locations:
Add a listener to your map that listens for clicks and returns the location clicked. Perhaps this listener is only running after the user has expressed his intent to add a location to the map.
When the user has clicked, open a form, for example in a modal. The form should contain hidden fields with the latitude and longitude and could, for example, also contain a static image of the relevant location. Other form fields would be the fields you need for your purpose.
Submit the form using AJAX. Refer, for example, to this tutorial. In your theme's functions.php, you can then validate the submission and add the new submission to your Wordpress database, matching your new custom post type.
Depending on how you store your new location, on your next map reload, the new location will be included. (Or you perhaps need to authorise the new location, first.)
You can also reload all locations through AJAX.
Profile Builder allows you to do just that. Create a front-end register form including the required custom fields and a map field for users to pin or enter their location.
Then using the built-in User Listing (Member Directory) module, you can display a map of all users locations.

embed google maps with search and locator functionality in drupal 7..?

I Want to to create a page in my drupal 7 site with a google map on it, which shows hospitals, clinics and pharmacies near the user.
I tried, location module and openLayerslocator. But I couldn't figure how to achieve it using these modules. Initially I came to know that, I can use to openLayers locator, but there is no documentation or guide that's available to achieve it.
But as far as I understand, both modules work in a similar way but NOT as I want it to. In both module, I will have a content type called 'Location' and it will as for address,zip code etc while creating the content with that type. Then there will be a view, which takes these address from those 'Location' noddes and displays those addresses on a google map..! But THAT'S NOT WHAT I WANT.
I do not want user to create any content or anything, the map sits there as a page where user visits it, to see what are the hospitals etc are there around him. When user navigates to that page, he will just enter his city, address or zipcode (like in a form and hits find) to see what are the hospitals around him (let's say around a distance of 50km). By default, when he navigates to the page, the map should be showing those places like hospitals and clinics around his default address (It will be available from the database.).
So how can I achieve it...??
Thanks in advance.

Resources