Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#16 2009-04-08 15:19:15
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: An rss_google_map Hack
No, the map displays perfect on the leftside plugin, but not on the center version of the plugin.
By the way, I am already using custome 1 and 2 for something else, can I just change that editing the plugin?
like:
$replace2.='x = document.getElementById("custom-7").value;'."\n";
$replace2.='y = document.getElementById("custom-8").value;'."\n";
Or is there something else to do? because those 2 fields are not filling up after I click on the map.
Thanks!
Offline
Re: An rss_google_map Hack
Here is an updated version that will let you change the fields in one place.
The map displays fine on my install. Maybe there are other plugins installed that are causing an issue. Let me know what else you have installed and I can look at it more.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#18 2009-04-08 16:15:35
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: An rss_google_map Hack
These are all the plugins :) sorry, too many but I am sure only a couple can be causing that, like tinymce or hide in admin…
bp_admin_library
glz_custom_fields
hak_tinymce
ied_hide_in_admin
l10n
lam_image_uploader
msd_google_map
rss_article_edit
rvm_counter
rvm_maintenance
sed_plugin_library
sed_section_fields
smd_gallery
smd_if
smd_lib
upm_image
wlk_helpful
zem_contact_lang-mlp
Thanks for updating the plugin!
It works great in the left side, the only thing is that the map frame is really small (easy change).
Maybe a cool new feature could be integrate a custom image directly in your plugin to display in the maps instead of the default googlemap icons. (maybe?)
Offline
Re: An rss_google_map Hack
Do you get a javascript error? The only one I would imagine might interfere would be hak_tinymce. Try disabling it and see if it works.
If you are getting javascript errors let me know what they are.
This is how it looks on my install and when I click the word “Map” the map is then displayed.

Last edited by MattD (2009-04-08 16:31:16)
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#20 2009-04-08 23:29:06
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: An rss_google_map Hack
Hi,
Thanks for sending the image
I dont get a “Map” link
but I dont even have the “Title” or “Body” titles either.
I will check the plugins and see if something is hiding them.
This is the source of that page:
<td id="article-main"><p><input type="text" id="title" name="Title" value="" class="edit" size="40" tabindex="1" /></p>
<p><textarea id="body" name="Body" cols="55" rows="31" tabindex="2"></textarea></p>
<p><label for="excerpt">Claim</label> <a target="_blank" href="http://rpc.textpattern.com/help/?item=excerpt&language=es-es" onclick="popWin(this.href); return false;" class="pophelp">?</a><br /><textarea id="excerpt" name="Excerpt" cols="55" rows="5" tabindex="3"></textarea></p><input type="hidden" name="from_view" value="text" /></td><td id="article-tabs"> </td><td id="article-col-2">
As you can see there is no label for Title or Body, and Map doesnt even show up, they are not hiden either.
Last edited by mlarino (2009-04-08 23:40:30)
Offline
Re: An rss_google_map Hack
The plugin replaces the body label so if its missing it wouldnt work.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#22 2009-04-14 09:53:08
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: An rss_google_map Hack
Hi Matt,
I dont know why my body label is missing, but is not the only textpattern instalation I have and none of them have the body label.
All of them are 4.0.6
Where should that body label be? maybe I can just write it myself.
Thanks!
Offline
Re: An rss_google_map Hack
I developed it in 4.0.7 so maybe it changed. You can replace
$find2 = '<p><label for="body">';
with
$find2 = '<p><textarea id="body"';
and it should work.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#24 2009-04-14 14:21:36
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: An rss_google_map Hack
:( No, didnt work at all,
$find2 = '<p><textarea id="body"';
or
$find2 = '<p><textarea id="body">';
are not doing anything at all… any idea why this is happending?
I even replaced it with a bunch of other different labels I am seeing in the source but nothing changes…
Thanks
Last edited by mlarino (2009-04-14 14:51:16)
Offline
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