WordCamp Columbus: Location Based Integrations
It was with extreme pleasure that we were asked to speak at WordCamp Columbus on the art of Location Based Integration. Check out our slide deck for tips on best practices, HMTL5 and a whole lot more.
WordCamp OC: Mobile and Geo Strategies
Ever get the opportunity to talk about two of your favorite things to a group of people that also love your favorite things. This past weekend we did a break out session at WordCamp Orange County on Mobile and Geo Strategies. Here are our slides:
Built-in localhost development is here!
If you are a person that wants to develop with GeoPosty on your localhost or if you are developing locally to your webserver (on the company network or whatever), then you will be happy to know that the newest version supports just that.
To get started:
1) Download and install the newest version of GeoPosty here: http://wordpress.org/extend/plugins/geoposty/ OR install the plugin from the wordpress repository through the WordPress admin by clicking “add new” in your admin panel.
2) Obtain localhost development key here: http://www.geoposty.com/request-your-test-api-key/
*Please note: you will need to update your API key before going live to the API key for your domain.
Developing Local to Webserver
Workaround for developing with GeoPosty on local webserver (but still on public domain).
There are some who would like to develop locally to their webserver. If you are one of these people, please keep in mind that GeoPosty requires two things of your testing/development environment:
1) Your webserver must be on domain for which key is registered and visible to the Internet. Subdomains are fine.
2) Currently, testing must be done from a browser/computer non-local to webserver OR a workaround must be utilized. The GeoPosty API references the geolocation database by visitor IP address. So, if you are developing on your workstation’s localhost or on your company’s webserver, likely you will run into issues because the plugin will try to look up the visitor’s IP as the webserver sees it (some local IP like 192.168.xxx.xxx) which naturally will not show a valid match in the IP Geolocation database lookup. This is an issue for which we are looking to provide a native comprehensive workaround in coming versions of GeoPosty, but at the moment the only solution is trick the plugin by hardcoding a “dummy” IP address into the plugin code while you are testing.
The steps for that are:
1) Uninstall GeoPosty and delete the plugin files via the wordpress admin. This step will clear the data that is cached by the plugin for the purpose of economizing the number of lookups. This step will also clear widget data.
2) Download GeoPosty from the WordPress Plugin Repository via WordPress admin or manually. Do not yet activate GeoPosty.
3) Find your workstation’s public IP. You can lookup here: http://www.quova.com/what/ip-repository/.
4) Find your local IP:
Mac: http://guides.macrumors.com/IP_Address;
PC: http://guides.macrumors.com/IP_Address#Finding_the_IP_Address_on_Your_PC;
Linux/Unix: you can find it yourself, you’re a *nix person.
5) In the GeoPosty plugin files, comment out line 14 of curl.php. Replace with the following:
/*** this is the old line 14 of curl.php: $data = wp_remote_retrieve_body(wp_remote_get(‘http://api.geoposty.com/geo.php?domain=’. $_SERVER['HTTP_HOST'] .’&ip=’. getGeoIpAddress() .’&domainkey=’ . $geoposty_api_key)); ***/
//currently, my public IP is 174.79.450.75. You should insert your public IP.
$geoPublicIP = ’174.79.450.75′;
//currently, my private IP is 192.168.1.117. You should insert your local IP.
$geoLocalIP = ’192.168.1.117′;
if (getGeoIpAddress() == $geoLocalIP) {
$data = wp_remote_retrieve_body(wp_remote_get(‘http://api.geoposty.com/geo.php?domain=’. $_SERVER['HTTP_HOST'] .’&ip=’. $publicIP .’&domainkey=’ . $geoposty_api_key));
}
else {
$data = wp_remote_retrieve_body(wp_remote_get(‘http://api.geoposty.com/geo.php?domain=’. $_SERVER['HTTP_HOST'] .’&ip=’. getGeoIpAddress() .’&domainkey=’ . $geoposty_api_key));
}
Now activate GeoPosty. You have successfully tricked the plugin into looking up your current public IP. Keep in mind, if your local IP changes you will have to update your workaround.
It’s not super-pretty, but before we are able to put in the super-pretty user-friendly workaround for those wanting to develop locally, this is what we have.
Another bug squashed!
A little update that solves a big problem!
Used to be that saving redirects when there was a blank one would create that redirect loop for your index page and break all other redirects… Well, that doesn’t happen anymore.
Don’t thank us. Really, it’s the least we could do.
Plugin Update: 0.9
Dear GeoPosters,
Today we updated the plugin files available on our site and in the WordPress repository, in response to a few issues.
Issue 1: Server Configuration
Over the last few months, we have found that there are several people who wanted to be using GeoPosty, but it was their server settings that prevented the API calls from working correctly. With this version, we have installed a system check that will run on activating the plugin to communicate whether your environment is set up properly for sending/receiving information from our API.
Issue 2: City Identification
We discovered that the data was not as accurately mapped as it should have been, as relates to a city’s correlating state. San Diego, CA and San Diego, TX will now be far more accurately identified.
Additional Feature: Exclude Areas in Display Filtering
It has always been the case that GeoPosty allows you to include specific areas in display settings, but now we have enhanced that feature to allow you to exclude specific areas. This means that it now takes only one shortcode to display a message to users OUTSIDE of a specific area. It was possible to do this before, but significantly more complicated, depending on the chosen area.
I will definitely be doing more demo-style blog posts on this feature, but now you know it’s there and it’s killer.
Thanks so much for all of your feedback! We have a few more things in the works here, so stay tuned!
GeoPosty: On Tour
GeoPosty is really valuable for lots of different things, but one of my favorite features is the way that it can be used by bands or authors to promote a tour.
Here’s an example:
Hey there, Los Angeles!
The Crunchy Towels are on tour, and they’re coming to you!
We’ll be playing at the Casbah on November 22, 2010. Go buy your tickets now or check out our other tour dates/locations.
What do you think? Cool, right? And it’s easy to set it up so that these messages show *only* to people who are in cities on your tour, using the radius-based display filtering features.
Here’s how to do it:
- Decide where you want your tour announcement. It can be a widget or page/post content.
- Pick your city. The little globe icon at the top of your editing panel will allow you to insert “Localized Content.” Choose this, then indicate the U.S. city and state where you want this particular message shown, as well as the size of the radius. You can determine the best area to reach with your announcement, depending on the city, the size of the venue, and your audience.
- Craft your message. Use shortcodes to name your visitor’s location, then be specific about the location of the gig and provide a link.
Easy, no? The only trick is that you have to set up a different shortcode for each different city that you want to see your announcement. Still, even that is not so complicated, since you can just copy/paste/edit the shortcodes and they’ll work just the same.
Geographic targeting is something that is super important for anyone who is going out on tour, but before GeoPosty, it was either expensive or unreliable or both. Using this plugin well will be the easiest, most powerful way to use your WordPress site to promote your tour to the people most likely to attend.
Quick Tips: Using Maps
Google maps that automatically display the area local to your visitors.
You’d think with all the time I’ve spent working on this project the awesomeness of that would have worn off for me a long time ago, but so far, no. I still think that is an incredibly effective way to reach out to visitors, show them that you are where they are, and connect with them like never before.
I thought it would be a good idea to take a minute to just go through some quick tips for using the maps feature on your pages, posts or sidebars.
- Only one map per page. (That’s not our rule, that’s Google’s.) We are working on a solution for this, but in the mean time, if you put two maps in a post, you’ll see that only one displays. For this reason, we recommend using the maps in widgets or pages, that way you will not create a conflict and the user will always see the one map you have indicated.
- Adjust the zoom to the most appropriate level. You might find the map content is all gray–that means that you’re zoomed in too far. If you see the shape of a continent, well, you’re probably zoomed out too far to be useful. Try a few different iterations, playing with number of results or zoom level until you get a map that will connect with your users in the most useful way.
- Provide some context. We strongly recommend a descriptive title, or even pairing the map with a little content section. Use a heading that describes what the users are seeing, and provide other information as necessary to make sure the user gets it. If you make sure the user understands what they are seeing, then you know you will get more value from the map feature
Okay, that’s it for now! Start here, and if you have any questions, just get in touch! I’ll be posting regularly with answers to specific questions and other tips for making the mosty of GeoPosty! (Sorry, couldn’t resist!)
We’re headed to WordCamp LA!
It’s official! We’re going to LA and we’re bringing cookies!
WordCampLA will be held on Saturday, 11 September on campus at Loyola Marymount. Several of the fine individuals responsible for GeoPosty will be present and we’re really excited to keep spreading the good word! If you are a user, please come say hello! If you are not sure how to use it, then PLEASE come say hello! We would love the chance to talk to you about your site, your goals, and how GeoPosty can help!
We’re also a WordCamp sponsor, so whenever you see the Mobiah flame, think of GeoPosty!
Warm cookies. Cold milk. 3:30pm. Be there.
