PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:GoogleDir_tohere directions not being displayed (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:GoogleDir_tohere directions not being displayed


#2883
erooman (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
GoogleDir_tohere directions not being displayed 10 Months, 1 Week ago Karma: 0  
I don't know if anyone else encountered this. I am a very new user- and installed all the plugins fine- and my API key works good. However I although i can see the map- and use the controls (zoom, pan, etc), I cannot see any displayed directions when I type in a "coming from" address- anyone might know what I am doing wrong? I am using the most erecent plugin of tohere- 1.53, and I am using Joomla 1.5
 
  The administrator has disabled public write access.

#2884
kksou (Admin)
Admin
Posts: 1240
graph
User Online Now Click here to see the profile of this user
Re:GoogleDir_tohere directions not being displayed 10 Months, 1 Week ago Karma: 20  
Hi,

The "googleDirections - To Here - plugin" makes use of the following 2 plugins:
- googleMaps plugin
- googleDirections plugin

I believe you've installed all 3 plugins - that's why you can see the googlemap.

Before we debug this, can you first try to make sure that the googleDirections plugin are working?

Please follow the direction as outlined in googleDirections plugin - How to use

Let me know if you see the directions displayed...

Regards,
/kksou
 
 
Last Edit: 2009/11/05 00:40 By kksou.
  The administrator has disabled public write access.

#2888
rpitera (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Re:GoogleDir_tohere directions not being displayed 10 Months ago Karma: 0  
I am running into the exact same issue as erooman; I have verified all plugins are installed and working, and I know the directions plugins is working because I have cut and paste on the examples from the directions plugin docs and it displayed perfectly.

It would appear to me that there is something wrong with the submit button, because when I click on it, nothing seems to happen.

I can give you ftp access if you need it, just reply and I'll pm you.

I should add that I am using all the latest versions of the plugins and PHP5/J1.5.14
 
 
Last Edit: 2009/11/07 04:50 By rpitera. Reason: additional details
  The administrator has disabled public write access.
#2889
erooman (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:GoogleDir_tohere directions not being displayed 10 Months ago Karma: 0  
Thta is exactly it, the submit button does not seem to be doing anything- I have even tried deleting and reinstalling the plugins and that did not work either. As a temporary work around- I am just using the GoogleDir plugin with pre-made directions for the time being. Since the GoogleMap and GoogleDir plugin work perfectly, and there are only three major routes to my building, I created three hyperlinked maps based on these three major routes that people can access. I haven't given up on the tohere plugin working- since that would be the best solution- and because the interface is slick and simple.
 
  The administrator has disabled public write access.
#2890
kksou (Admin)
Admin
Posts: 1240
graph
User Online Now Click here to see the profile of this user
Re:GoogleDir_tohere directions not being displayed 10 Months ago Karma: 20  
erooman wrote:
Thta is exactly it, the submit button does not seem to be doing anything- I have even tried deleting and reinstalling the plugins and that did not work either. As a temporary work around- I am just using the GoogleDir plugin with pre-made directions for the time being. Since the GoogleMap and GoogleDir plugin work perfectly, and there are only three major routes to my building, I created three hyperlinked maps based on these three major routes that people can access. I haven't given up on the tohere plugin working- since that would be the best solution- and because the interface is slick and simple.

Hi Erik,

I've replied two emails to you. Looking at your reply here, I think you did not get any of those. Anyway, here's the thing I sent you.

1) You can see a demo of the googleDir plugin here. The result is the same as yours: http://www.kksou.com/t1510/index.php?option=com_content&view=article&id=79&catid=35&Itemid=55

2) You can see a demo of the googleDir_tohere plugin here: http://www.kksou.com/t1510/index.php?option=com_content&view=article&id=80&catid=35&Itemid=55

Try key in "interstate 26" in the field "Coming From", you will get the same result as (1).

Note that I've got the latitude and longitude of your home address using the Google Geocoder v2.0: http://www.kksou.com/php-gtk2/google-geocoder-v2/

This is a pretty powerful program. You can key in an initial address first, say "171 Moultrie St, Charleston, SC 29403". Then you can use your mouse to click somewhere else on your map. You will see the longitude and latitude of the location that you've clicked. In this way, you can get the exact longitude and latitude of any buildings on your campus.

3) As for your other question regarding "the side directions got cut off somewhat", please edit the css file "googleDirections.css" in the folder plugins/content/googleDirections.

Edit the entry:

table.googleDirections td {
font-family: Verdana, Arial, sans serif;
font-size: 11px;
margin: 2px;
}

and see if you can change the padding or margin. If you compare yours with mine, you can see that the css file are the same, but the effects are different. So most likely it's influenced by your tempalte css. In any case, do some trial and you should be able to get the desired format that you want.

Just one thing to bear in mind: the css style sheets are cached. So when you change the css file and do a reload, usually you will not notice any change. (You can test this by changing the font-size to say 24px). To resolve this, whenever you change the css file, open the css file in a browser. for example, in my case, it's http://www.kksou.com/t1510/plugins/content/googleDirections/googleDirections.css. Open this in the browser and do a reload. This will force a reload of the css file. Then go back to your article and do a reload of that article.

Please give it a try and let me know if it works.

Regards,
/kksou
 
 
Last Edit: 2009/11/08 07:57 By kksou.
  The administrator has disabled public write access.
#2891
kksou (Admin)
Admin
Posts: 1240
graph
User Online Now Click here to see the profile of this user
Re:GoogleDir_tohere directions not being displayed 10 Months ago Karma: 20  
rpitera wrote:
I am running into the exact same issue as erooman; I have verified all plugins are installed and working, and I know the directions plugins is working because I have cut and paste on the examples from the directions plugin docs and it displayed perfectly.

It would appear to me that there is something wrong with the submit button, because when I click on it, nothing seems to happen.

I can give you ftp access if you need it, just reply and I'll pm you.

I should add that I am using all the latest versions of the plugins and PHP5/J1.5.14


Please show the URL of the page so that I can see the actual output and also do a view source.

By the way, did you turn off javascript?

Regards,
/kksou
 
  The administrator has disabled public write access.
#2892
rpitera (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Re:GoogleDir_tohere directions not being displayed 10 Months ago Karma: 0  
Sorry for the delay, I was away on business.

The url of the directions page is:
http://ccs.kaizendemos.com/directions-to-our-store.html

I did not turn off Javascript, I tested with and without sh404 enabled (clearing the cache each time) and tried with both IE and FF.
 
  The administrator has disabled public write access.
#2893
kksou (Admin)
Admin
Posts: 1240
graph
User Online Now Click here to see the profile of this user
Re:GoogleDir_tohere directions not being displayed 10 Months ago Karma: 20  
Hi,

Please do a view source of your page and you'll see where the problem is.

You have included an email address in the home_label, didn't you.

Please try the following:

1) Remove the email address from home_label - does it work now?

2) OR, go to the Plugin Manager. You will find a plugin called "Content - Email Cloaking". Temporarily unpublish this plugin - does it work now?

In any case, the "Content - Email Cloaking" plugin is the one causing the problem. It encodes your email address, thus messing up the entire javascript. That's why the button is not working.

You have two choices:
1) don't use any email address in home_label, OR
2) don't use the "Content - Email Cloaking" plugin

Regards,
/kksou
 
  The administrator has disabled public write access.
#2894
rpitera (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Re:GoogleDir_tohere directions not being displayed 10 Months ago Karma: 0  
Well I didn't have an email address in my home_label, but I did have a phone number on one line and a zip code on another. Leaving those in and just disabling the email cloaking, I tested it again.

This time, not only did I not get directions, but the entire map disappeared.

Taking out the zip code and phone by themselves (and re-enabling cloaking left me with the same results as I started with, no action at all.

It was only when I did both (no numbers and cloaking disabled) did it finally work. So there is obviously something going on in the script that doesn't play well with email cloaking. While this is not a big issue for me, I'm sure others will want to be able to use cloaking, so if there is anything I can do to help you work on this (if you want to), let me know - I'd be glad to give you admin access or ftp if it will help.

I have noticed one other problem; when you use the print button, the only thing that comes up is the map. For some reason,the directions are not included. Is there something I am missing??
 
  The administrator has disabled public write access.
#2895
kksou (Admin)
Admin
Posts: 1240
graph
User Online Now Click here to see the profile of this user
Re:GoogleDir_tohere directions not being displayed 10 Months ago Karma: 20  
Hi,

Please try the following:

1. Go to Plugin Manager

2. Make sure the "Content - Email Cloaking" plugin comes BEFORE the googleMaps, googleDirections and googleDirections_tohere plugins. i.e. if the order of the "Content - Email Cloaking" plugin is 20, then make the order of the googleMaps plugin 31, the googleDirections 32 and the googleDirections_tohere plugin 33.

Let me know if it works.

Regards,
/kksou

p.s. As for the printing, it's output direct from google. There's not much we can do with their API.
 
 
Last Edit: 2009/11/10 22:58 By kksou.
  The administrator has disabled public write access.



Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Blog - Forum - Privacy Policy - Contact Us
Copyright © 2006-2009. kksou.com. All Rights Reserved