Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: An rss_google_map Hack
In Textpattern 4.0.7 the following change was made
* Developer: new plugin type '3' for admin-only plugins (0=public, 1=admin+public, 2=library)
This plugin is Admin only so it’s using the new plugin type which is not compatible with 4.0.6. Here is a version that’s set to type 1 and with the replace2 change above. Not sure if it will have any negative effect on the public side. I only tested the admin side in a 4.0.6 install and without updateing the map api key.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#26 2009-04-14 16:22:59
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: An rss_google_map Hack
It WORKS!!!
Thank you so much!
I had to make the change you told me before to this version of the plugin because 4.0.6 doesnt have a body label.
so I used
<textarea id="body"
instead.
Thanks a lot!
Last edited by mlarino (2009-04-14 16:37:50)
Offline
#27 2009-04-14 16:45:13
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: An rss_google_map Hack
Oh oh…
I will have to correct myself… I can see the map, and the search field for the address, but I dont see the google zoom controls on the left, and clicking on the map doest place an icon, or anything.
Right now is just displays the map, is not getting Lat and Long.
Last edited by mlarino (2009-04-14 16:55:34)
Offline
Re: An rss_google_map Hack
On a fresh install of Textpattern version: 4.0.6 (r2805) it works for me (in IE6) after editing the plugin and fixing the replace2 line.
I can test in other browsers this evening if needed.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: An rss_google_map Hack
I got your email and checked out your site. I sent you a response but for the sake of completness I’ll also mention here what the problem was.
When changeing the custom fields used for the coordinates the ID of the field should be used and not the name. The ID is always custom_# from what I’ve seen.
By default
define("coordinates_field_1", "custom_1"); //custom-1 can be changed.
define("coordinates_field_2", "custom_1"); //custom-2 can be changed
Can be changed to
define("coordinates_field_1", "custom_7"); //custom-1 can be changed.
define("coordinates_field_2", "custom_8"); //custom-2 can be changed
Assigning a name to these fields does not change the ID of the field.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#30 2009-04-14 18:43:07
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: An rss_google_map Hack
How strange,
The first plugin (the one for the left column) only worked if I typed the names of the custome fields (longitud, latitud)
I will test
Thanks!
Offline
#31 2009-04-14 19:33:05
- candyman
- Member
- From: Italy
- Registered: 2006-08-08
- Posts: 684
Re: An rss_google_map Hack
Matt, is possible to add a simple toggle jQuery button [+] / [-] to show / hide the map?
Last edited by candyman (2009-04-14 19:33:18)
Offline
Re: An rss_google_map Hack
candyman wrote:
Matt, is possible to add a simple toggle jQuery button [+] / [-] to show / hide the map?
I’ve added the [+] and [-]
Latest version – msd_google_map for Textpattern 4.0.7 and above
Edit: Fixed link
Last edited by MattD (2009-04-15 22:38:04)
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#33 2009-04-15 07:26:20
- candyman
- Member
- From: Italy
- Registered: 2006-08-08
- Posts: 684
Re: An rss_google_map Hack
Thank you Matt, but the link doesn’t work properly at the moment…
Anyway I’ve found it here. Good work!
I would put a blank space between Map and [+] but I think it would be easy to customize that word and maybe localize it (Mappa in Italian). It would be very nice an option page (in the extensions page) to choose between the position (in the center or on the left of the admin area), insert the Google Maps API KEY and so on…
A vey good work, anyway. Thanks!
Last edited by candyman (2009-04-15 07:38:32)
Offline
Re: An rss_google_map Hack
I’m not much of a php developer and I haven’t done any options type stuff simply because I do not yet know how. Someday…
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#35 2009-04-16 10:53:15
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: An rss_google_map Hack
Has someone managed to make it work in 4.0.6 with glz_custom_fields plugin?
The only problem I have now after the new 3.0a Matt made is that is not getting the Latitude Longitud info into the custom fields glz_custom_fields creates.
Last edited by mlarino (2009-04-16 14:36:03)
Offline
Re: An rss_google_map Hack
I made some major changes and started a new thread for this plugin
- added preferences tab to allow easy update.
- added ability to select large center column map or small left column map.
- added various map control and type options.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline