5 of 8
5
Geocoding
Posted: 13 August 2007 07:17 AM   [ Ignore ]   [ # 73 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6535
Joined  04-15-2006

Hi Mark,

Thanks for the reply. The template has pretty much nothing else in it as I was just trying to test out the extension on its own before adding back in loads of other code. When I view the page though all I get is the {photo_information width=“300px” height=“200px”} on the page and also showing in the body of the html page.

Not really too sure what is going on at all?

Mark

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 13 August 2007 07:52 AM   [ Ignore ]   [ # 74 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

And the map is working in the CP, so you have the extension enabled correct?

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 13 August 2007 08:53 AM   [ Ignore ]   [ # 75 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6535
Joined  04-15-2006

Hi Mark,

Yes the map works quite well in the CP. I did notice that I was running a slightly older version of the extension that actually worked slightly better in the CP, just a few small issues though on operation but nothing too bad. When I submit the entry it shows the lat and long co-ordinates but then that is about it. If I go to the single-entry template that I have set up for the entry then it just shows up the code and not the actual map.

Thanks.

Mark

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 13 August 2007 08:55 AM   [ Ignore ]   [ # 76 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

can you try outputting the raw coordinates?  does that parse?

{office_location_raw}
{latitude}
, {longitude}
{
/office_location_raw}

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 13 August 2007 03:00 PM   [ Ignore ]   [ # 77 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6535
Joined  04-15-2006

Hi Mark,

Have tried that too before and it literally outputs what you have written to the page. You can see it in action (or perhaps not) here at this page.

http://www.markbowendesign.com/index.php/site/comments/photo_test_2

Any more ideas would be greatly appreciated as I would really like to get this all working. I’ve never had a problem with any of your extensions before so I’m not too sure what I must be doing wrong here.

Thanks.

Mark

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 13 August 2007 03:28 PM   [ Ignore ]   [ # 78 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

is there any way you could get me a login to your CP, Mark?  I’d be happy to check it out for you.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 14 August 2007 04:19 AM   [ Ignore ]   [ # 79 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6535
Joined  04-15-2006

Hi Mark,

PM now on its way!

Oh one other thing that I did notice is that when I first create an entry the Google map shows up fine but on subsequent edits the map isn’t there!

Strange.

Thanks for the help.

Mark

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 14 August 2007 02:57 PM   [ Ignore ]   [ # 80 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

Alright, there was some screwyness going on in the PHP that I’ve taken care of in version 1.0.5.  Grab it up top.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 14 August 2007 03:33 PM   [ Ignore ]   [ # 81 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6535
Joined  04-15-2006

Hi Mark,

Thanks for the update but unfortunately it still isn’t working. The map now works when I go to re-edit an entry but it still doesn’t work in the entry page.

Is there anything else I should be doing?

Thanks.

Mark

P.S. Just a quick question as I wanted to make sure that I have actually even read correctly as to what this extension does. I should be able to place a pin(s)? onto the map in the CP and then show the map on the entry page?

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 15 August 2007 06:03 AM   [ Ignore ]   [ # 82 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  779
Joined  12-01-2002

I just installed version 1.0.5 and it works, at least in the control panel. I haven’t tested elsewhere yet. But on the Admin Tab, when I select custom fields, then the field group that contains custom geo coordinates field, I get the following error

Notice: Undefined variable: field_type in /www/pmh4349/public_html/waubesa/cp/cp.publish_ad.php on line 7311

It just screw with that page of the control panel, and of course only happened once I switch the field type to geo corrdinates; but I couldn’t find any other mentions of the error under the latest version of geocoding. I do have a number of your other extensions running—in fact almost all of your various field types.

Profile
 
 
Posted: 25 August 2007 08:50 PM   [ Ignore ]   [ # 83 ]  
Lab Assistant
RankRank
Total Posts:  122
Joined  07-18-2007

Thanks Mark for your extension. I was just about to give up on hacking away at my own solution when I came across yours - a sigh of relief.

I love how it remembers the zoom level, but what about map type?

Profile
 
 
Posted: 27 August 2007 09:23 AM   [ Ignore ]   [ # 84 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

rick.prince - map type wasn’t really possible when I started the extension.  It’s something that can probably be integrated later on.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 28 August 2007 11:23 AM   [ Ignore ]   [ # 85 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6535
Joined  04-15-2006

Hi Mark,

Sorry to be a pest but was just wondering if you had ever had any luck with my problem? Still can’t get the map to show up on the site but it does show in the control panel every now and then.

Thanks.

Mark

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 30 August 2007 07:01 PM   [ Ignore ]   [ # 86 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  596
Joined  12-10-2006

I have masked access to the control panel using a sub-domain.

Thus, I need two api keys:
- one for admin.mysite.com (inside the CP)
- another for mysite.com (the public site)

It would be great if there could be an option for two API keys, one for within the masked CP and another for the live site.

I tried doing this myself, but it’s beyond me.

Profile
 
 
Posted: 31 August 2007 03:49 AM   [ Ignore ]   [ # 87 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  596
Joined  12-10-2006

For anyone else who comes across this problem, here’s how I fixed it:

About line 284 of ext.geo.php, I replaced this:

fetch_setting('google_key') ?>" type="text/javascript">

With this:

[removed](
    
'<\/script>' );

So it will disregard the key you put in the CP, and it will be hardcode, but it’s soles this particular problem. (Would still be better to have the extension use multiple keys though).

Profile
 
 
Posted: 31 August 2007 03:51 AM   [ Ignore ]   [ # 88 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  596
Joined  12-10-2006

For anyone else who comes across this problem, here’s how I fixed it:

About line 284 of ext.geo.php, I replaced this:

<script src="http://maps.google.com/maps?file=api&amp;v=2.58&amp;key=<?php echo $this->fetch_setting('google_key') ?>" type="text/javascript"></script>

With this:

<script type="text/javascript"> document[dot]write(
    
'<script src="http://maps.google.com/maps?file=api&amp;v=2.58&amp;key=' +
    
{
        
'mysite.com': 'google_api_key_1',
        
'subdomain1.mysite.com': 'google_api_key_2',
        
'subdomain2.mysite.com': 'google_api_key_3'
    
}[location.host] +
    
'" type="text/javascript"><\/script>' );
</script>

Replace the [dot] above, with an actual dot/period(.)

So it will disregard the key you put in the CP, and it will be hardcoded, but it’s solves this particular problem.
(Would still be better to have the extension use multiple keys though).

Profile
 
 
Posted: 07 September 2007 09:31 AM   [ Ignore ]   [ # 89 ]  
Grad Student
Rank
Total Posts:  61
Joined  01-23-2006

@Mark Bowen - I found some good documentation for integrating and customizing my maps here:

http://www.google.com/apis/maps/documentation/#The_Hello_World_of_Google_Maps

And if this helps, in the HEAD of my page I’ve combined EE code with Google’s JS like this:

map.setCenter(new GLatLng({exp:weblog:entries limit="1" dynamic="on" rdf="off"}{office_location_raw}{latitude}, {longitude}{/office_location_raw}{/exp:weblog:entries}), 13);

 Signature 

Vibe9 Design - Vancouver Web Design Company

Profile
 
 
Posted: 07 September 2007 11:57 AM   [ Ignore ]   [ # 90 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6535
Joined  04-15-2006

Hi vibe9.

Yes I’ve seen that link before but thanks for reminding me of it. I will have to look back at that page again when I get more time to figure it all out. Unfortunately I have a lot of things going on at the moment and getting my head around another item will most likely make it explode so I am being a little careful!! grin

Thanks for the link though.

Best wishes,

Mark

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
   
5 of 8
5
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64878 Total Logged-in Users: 69
Total Topics: 81804 Total Anonymous Users: 45
Total Replies: 439751 Total Guests: 313
Total Posts: 521555    
Members ( View Memberlist )
Newest Members:  pticketdxrsmdanbilly8hrkiliwysso50kexpressoKlaasdarrenstylestravelerjcaton