Loading...
 
Features / Usability

Features / Usability


Google maps plugin module not installing

posts: 40 United States

Hello All,

I am currently trying to get the wikiplugin_gmap installed via the MODS. What I get, very consistently, is this error:

Warning: copy(mods/wiki-plugins/wikiplugin_gmap.php) function.copy: failed to open stream: No such file or directory in /home/userdir/public_html/aftft/lib/mods/modslib.php on line 375
wiki-plugins/wikiplugin_gmap.php to lib/wiki-plugins/wikiplugin_gmap.php impossible to copy

I have installed the Plaze module through MODS and it went in fine so my MODS functionality, I would assume, is okay. From what I can tell the wikiplugins-gmap-1.1.tgz file is missing files. Is anyone else having this experience or have a way I can fix it?

NOTE: I changed the name of the user directory to userdir in the error message just because I'm paranoid.

Thanks,
Steve

posts: 2

I'm having the same problem.mad

Would really love to see this work!!!!!

Nelson Ko! Are you out there?!?!?!?!?

Warning: copy(mods/wiki-plugins/wikiplugin_gmap.php) function.copy: failed to open stream: No such file or directory in /home/userdir/public_html/aftft/lib/mods/modslib.php on line 375 wiki-plugins/wikiplugin_gmap.php to lib/wiki-plugins/wikiplugin_gmap.php impossible to copy
posts: 40 United States

> I'm having the same problem.mad
>
> Would really love to see this work!!!!!
>
> Nelson Ko! Are you out there?!?!?!?!?
>

>
Warning: copy(mods/wiki-plugins/wikiplugin_gmap.php) function.copy: failed to open stream: No such file or directory in /home/userdir/public_html/aftft/lib/mods/modslib.php on line 375 > wiki-plugins/wikiplugin_gmap.php to lib/wiki-plugins/wikiplugin_gmap.php impossible to copy


Hi dawirick,

I never found a solution to the specific problem, however Google has been very instrumental in a timely feature that provides a work-around. If you locate what you want at maps.google.com and then click the "Link to this page" link towards the upper right hand corner of the page, you will presented with HTML you can embed in the wiki page. You will have to enable HTML for the page to make this work however.

By clicking "Customize and preview embedded map" you can change the size setting for the map. If you examine the provided HTML you will see that you also have opportunity to include scroll bars and a border if you wish.

You can see a good example of this at work by visiting www.afinetimefortea.com and clicking the store locater link in the menu on the left.

Let me know if you run into any problems. I might be able to help.

Steve


posts: 5

Hi Steve
The tea site looks great by the way

I also was unable to install the gmap mod so went to Google and signed up for my API key and then tried to create my own page with calls to the Google API to display a map. After you sign up, they provide you with some handy sample code (attached). I put that into a wiki page but tikiwiki keeps wiping out the script elements.

Under Administration:Features I have enabled HTML content and Google Maps

On this particular wiki page, I have checked the box that says "Enable HTML".

Anything else that must be turned on to allow scripts (which are required to call the Google APIs)

Thanks
John Q

posts: 40 United States

> Hi Steve
> The tea site looks great by the way
>
> I also was unable to install the gmap mod so went to Google and signed up for my API key and then tried to create my own page with calls to the Google API to display a map. After you sign up, they provide you with some handy sample code (attached). I put that into a wiki page but tikiwiki keeps wiping out the script elements.
>
> Under Administration:Features I have enabled HTML content and Google Maps
>
> On this particular wiki page, I have checked the box that says "Enable HTML".
>
> Anything else that must be turned on to allow scripts (which are required to call the Google APIs)
>
> Thanks
> John Q

Thanks John, thankfully the owners of the shop like the site as well. I can't think of a more graceful way to put this other than, read through my previous post again. The way I incorporated the map was to use the purely HTML components provided by Google on the map page. To make it work, look your location up and then click "Link to this page." The rest of the instructions in my post should get you there. There are no API calls or account Id's necessary so in a way it's more convenient than the packaged answer we haven't been able to install. TikiWiki strips javascript out of wiki pages as part of the processing. If you want to include javascript you'll have to put it into the template itself.

Take a look at the locater page on the tea site again and look at the source for the page "^U" it will give you an idea for the code I mean to use from Google.

As a final note, if your site drops you into WYSIWYG editing when you enable HTML you'll need to be in "Source" mode when you paste the HTML. the "Source" button is a toggle and should be found in the upper left corner when in WYSIWYG mode.

Let me know if you continue to have trouble and I'll post some sort of step by step instructions on my own site or something.

Steve

posts: 5

>I can't think of a more graceful way to put this other than, read through my previous post again.

Hi Steve

Sorry about that - I was unnecessarily terse. The HTML that you mentioned works great (the HTML provided at Google maps when you request a link to this page), and we will be able to use this approach.

Let me back up a step and tell you what problem I'm trying to solve and how I was approaching it.

Our Tikiwiki site is an encyclopedic reference for our county. We have 855 places to map, which is the number of geographic places available for our county in the USGS Geographic Name Information System (GNIS). We have the latlon for each of the points so we were looking for a programmatic approach - some way to use the Google Maps feature in Tikiwiki and be able to feed it the latlon for each place... This doesn't seem unreasonable and perhaps this feature will be available in a future release of tikiwiki.

Which makes me wonder: Did Nelson Ko actually create a gmap mod or did he just claim to create one, along the lines of Fermat's Last Theorem? "I created a truly wonderful gmap mod but it was too large to fit in the margin of this page." If his mod actually existed, how would it work - perhaps as you mentioned in your previous post, it puts the necessary Google API calls in Javascript into a template...

Thanks
JQ

posts: 40 United States
perhaps as you mentioned in your previous post, it puts the necessary Google API calls in Javascript into a template...


You could possibly even parameterize a smarty template that uses the "Link To" feature on Google and implement it through a module. Use of smarty variables in key locations of the URL called from an iframe tag would give you the flexibility your looking for and no javascript would be necessary. You could also take the same approach authoring a wiki plugin, but then you would need a page for every site. There's a few permutations of these approaches I'd like to give a try myself, but time is the issue. Let me know how it goes if you take this approach on. I'll do the same if the time gremlin comes along and grants me an extra hour or so to look at it and I get anywhere.

Steve

posts: 5

Hi
I went out to sourceforge.net and found Nelson Ko's source files - not sure why the install wasn't working correctly, maybe someone knows and can figure it out. I copied the files into the appropriate tikiwiki directories. (The otherwise failed install successfully created the required database table so I didn't have to do that by hand, but his documentation explains what to do if you need that step too.)

Then was able to add a quicktag to the wikipages: {GMAP()} and display the Google map in that page.

Attaching a zip file that contains those source files if anyone else is interested or knows how to fix the install.
Thanks
JQ

posts: 40 United States

> Hi
> I went out to sourceforge.net and found Nelson Ko's source files - not sure why the install wasn't working correctly, maybe someone knows and can figure it out. I copied the files into the appropriate tikiwiki directories. (The otherwise failed install successfully created the required database table so I didn't have to do that by hand, but his documentation explains what to do if you need that step too.)
>
> Then was able to add a quicktag to the wikipages: {GMAP()} and display the Google map in that page.
>
> Attaching a zip file that contains those source files if anyone else is interested or knows how to fix the install.
> Thanks
> JQ

Great! Your a better sleuth than I. I took a look around the net and wasn't able to find the code back when I initially submitted the post. Hopefully I'll be able to make some time to use what you found this weekend.

Steve

posts: 4656 Japan

> >...
> Great! Your a better sleuth than I. I took a look around the net and wasn't able to find the code back when I initially submitted the post. Hopefully I'll be able to make some time to use what you found this weekend.

The plugin files are at http://mods.tikiwiki.org/. This should probably be the first place to look for Tiki components that aren't part of the main archive.

I installed the plugin files and added the needed table to the database for a branch-1-10 Tiki site, and it works fine. See: http://www.cunningham-lee.com/CEVEUS/tiki-index.php?page=GMAP. As described in my other post, testing with my 1.9.8.3 site is inconclusive because the map API key registration seems to be confused by the domain setup there.

-- Gary

posts: 40 United States

> I installed the plugin files and added the needed table to the database for a branch-1-10 Tiki site, and it works fine. See: http://www.cunningham-lee.com/CEVEUS/tiki-index.php?page=GMAP. As described in my other post, testing with my 1.9.8.3 site is inconclusive because the map API key registration seems to be confused by the domain setup there.


The site looks really good. I really thought I had covered the mods.tikiwiki.org space and only came up with the package that wouldn't install. Alls well that ends well I guess. Thanks for your help Gary.

Steve

posts: 4656 Japan

> Which makes me wonder: Did Nelson Ko actually create a gmap mod or did he just claim to create one, along the lines of Fermat's Last Theorem?

At a 1.9.8.3 site I installed (manually, not with the mods interface) the gmap files linked to in the other post and put the GMAP plugin syntax in a wiki page. Like the theorem proof, the plugin does in fact exist and apparently works although I installed it in a rush and haven't checked yet how to set the data for a specific map.

> .... If his mod actually existed, how would it work - perhaps as you mentioned in your previous post, it puts the necessary Google API calls in Javascript into a template...

The map API key as provided by Google goes in header.tpl, enclosed in {literal} tags. (Well, I got this from Google's example, but in 1.10 Google maps work even if the key is specified in the page body, so maybe it doesn't need to be in the header. — As you can see, I'm a Google maps noobie ;-) .) When the plugin is used in a page, the initial display is an empty map space and some gadgets to input map and geotagging data. But it isn't clear (to me anyway) what goes in the gadgets and it seems like only the large textarea can actually accept input (using Opera anyway).

I'm getting an error: "The Google Maps API key used on this web site was registered for a different web site" but don't know what the solution is yet as I just produced the key, and it works without an error to produce a map in a simple html page at the same site. Since the key is directory-specific, maybe there is a problem with setting the key for the root direction (involving caching?).

That's as far as I got, and will come back to this later when time permits. I think we can assume when Nelson Ko (the primary guy doing support.mozilla.com's Tiki implementation btw) contributes code, chances are if it's not working, the problem is user error or some other installation environment factor ;-).

BTW, I got Google maps working OK in a 1.10 installation, at least as far as having the map appear in my user prefs/info's Google Map Locator. The map API key is ok this time. In this case Tiki is in a subdirectory of the site root. In the case where the key doesn't work, the site is a domain that's actually a pointed-to directory/subdomain within another domain; not sure if that's causing problems.

-- Gary

--