Recent activity
Subscribe to this feed
whatsonchiangmai.com replied on March 17, 2009 07:17 to the question "Why can't I change the display order of My Slideshows?" in SlideShare:
whatsonchiangmai.com replied on November 02, 2008 12:38 to the question "Why can't I change the display order of My Slideshows?" in SlideShare:
whatsonchiangmai.com replied on November 01, 2008 09:54 to the question "Why can't I change the display order of My Slideshows?" in SlideShare:
whatsonchiangmai.com asked a question in Mapufacture on October 11, 2008 10:10:
Geo Mashup Versus GeoPress?With all the bugs in GeoPress, combined with the seemingly abandoned development, I was looking around and found a more actively supported plugin for Wordpress, Geo Mashup. Here is the link:
http://code.google.com/p/wordpress-ge...
Anyone here tried Geo Mashup?
Any comments?
whatsonchiangmai.com asked a question in Mapufacture on October 11, 2008 10:07:
Major Bug in GeoPress Location FunctionHello Again,
I noticed that if we create a new post and add a GeoPress location, the first time, everything is find. However, let's say that we later find that the location we created is a bit off target and we go back in and move the map market and adjust the coordinates in the post; when we save the post it creates another location. In other words, it does not overwrite the original, inaccurate, location. There is no option to overwrite.
When we go into the Locations settings in the WP control panel, there is no easy way to delete the wayward locations I fouind myself deleting them in the database directly using MyPHPAdmin.
When are these "large bugs" in GeoPress going to be fixed? Or, has this project been abandoned by the developers, who do not respond to email or here?
Thanks.
whatsonchiangmai.com marked one of Johnstonian's replies in Mapufacture as useful. Johnstonian replied to the question "Major Bug in GeoPress Map Function".
whatsonchiangmai.com replied on October 10, 2008 19:59 to the question "Major Bug in GeoPress Map Function" in Mapufacture:
whatsonchiangmai.com replied on October 10, 2008 14:59 to the question "Major Bug in GeoPress Map Function" in Mapufacture:
Thanks for the help. I installed the plugin and will give it a try.
Also, I will try to rearrange the SQL "hot fix" and report back; but like you, it should not make a difference.
There may be a different table that needs modifying besides the posts table, because I used MyPHPAdmin to delete all the other entries for the posts in the database, and still get the same problem, even when I clean up the posts table!!!
whatsonchiangmai.com replied on October 09, 2008 18:59 to the question "Major Bug in GeoPress Map Function" in Mapufacture:
Hi Johnstonian,
Thanks for the reply. I checked the link and followed your fix in the code below:
function get_location_posts ($number = -1) {
global $table_prefix, $wpdb;
$geopress_table = $table_prefix . "geopress";
$sql = "SELECT * FROM $geopress_table, $wpdb->postmeta";
$sql .= " INNER JOIN $wpdb->posts ON $wpdb->posts.id = $wpdb->postmeta.post_id";
$sql .= " WHERE $wpdb->postmeta.meta_key = '_geopress_id'";
$sql .= " AND $wpdb->postmeta.meta_value = $geopress_table.geopress_id";
$sql .= " AND $wpdb->posts.post_status = 'publish'";
$sql .= " AND coord != ''";
if($number >= 0) {
$sql .= " LIMIT ".$number;
}
$result = $wpdb->get_results( $sql );
// Build a hash of Location => Posts @ location
$locations = array();
foreach ($result as $loc) {
if($locations[$loc->name] == null) {
$locations[$loc->name] = array();
}
array_push($locations[$loc->name], $loc);
}
return $locations;
}
function get_locations ($number = -1) {
global $table_prefix, $wpdb;
$geopress_table = $table_prefix . "geopress";
$sql = "SELECT * FROM $geopress_table";
$sql .= " INNER JOIN $wpdb->postmeta ON $wpdb->postmeta.meta_key = '_geopress_id'";
$sql .= " AND $wpdb->postmeta.meta_value = $geopress_table.geopress_id";
$sql .= " AND $wpdb->posts.post_status = 'publish'";
$sql .= " WHERE coord != '' GROUP BY 'name'";
if($number >= 0) {
$sql .= " LIMIT ".$number;
}
$result = $wpdb->get_results( $sql );
// echo $sql; // debug
return $result;
}
----------------
It does not appear to have worked on my end .....
http://www.whatsonchiangmai.com/map/
I wonder why?
whatsonchiangmai.com asked a question in Mapufacture on October 09, 2008 12:29:
Major Bug in GeoPress Map FunctionThere is a significant bug in the GeoPress map function. Take a look at this link, generated by the GeoPress map function:
http://www.whatsonchiangmai.com/map/
If you click on a map market, you will see multiple instances of the referring page, one for each time an edited page was saved. This is a bug that needs to be fixed.
whatsonchiangmai.com replied on October 08, 2008 15:36 to the question "How to Change Map Marker in GeoPress" in Mapufacture:
We already tried to mod the code in mapabstraction.php (see below), but it still shows the default Google red marker.... that is why I am asking for support:
/**
* toGoogle returns a Google Maps compatible marker pin
* @returns Google Maps compatible marker
*/
Marker.prototype.toGoogle = function() {
var options = new Object();
if(this.labelText) {
options.title = this.labelText;
}
if(this.iconUrl){
baseIcon = new GIcon();
baseIcon.image = "images/dd-start.png";
/** baseIcon.shadow = "shadow.png"; **/
baseIcon.iconSize = new GSize(12, 20);
baseIcon.shadowSize = new GSize(12, 20);
baseIcon.iconAnchor = new GPoint(6, 10);
baseIcon.infoWindowAnchor = new GPoint(10, -5);
options.icon = baseIcon;
}
var gmarker = new GMarker( this.location.toGoogle(),options);
if(this.infoBubble) {
var theInfo = this.infoBubble;
GEvent.addListener(gmarker, "click", function() {
gmarker.openInfoWindowHtml(theInfo);
});
}
return gmarker;
whatsonchiangmai.com marked one of Johnstonian's replies in Mapufacture as useful. Johnstonian replied to the question "How to Change Map Marker in GeoPress".
whatsonchiangmai.com replied on October 08, 2008 15:22 to the question "How to Change Map Marker in GeoPress" in Mapufacture:
Hi Johnstonian,
The link you provided to the old question provide no answer, so that is why we asked again.
Pointing folks to the API docs is not very helpful either, but thanks anyway :-)
This site is listed as the support site for GeoPress! Where are the developers who support the code??
So far, the only place for support is on the Google Maps API group, but this is not specific to GeoPress.
I thought this site was for support, but there are no supporters!
whatsonchiangmai.com asked a question in Mapufacture on October 06, 2008 19:11:
How to Change Map Marker in GeoPressAny idea how to change the map market in GeoPress? Please refer to http://www.whatsonchiangmai.com to see the issues I am having with the map position markers. Thanks for the help!
Loading Profile...

