Loading...
 
Architecture / Installation

Architecture / Installation


Mod GMAP - File Corrections

posts: 12

G'day Tiki'ers,

After spending 2 days trying to get the GMAP Mod to function I have finally succeeded.

The solution is based on a post by iniebla in 2008 and I replicated it here for completeness and confirm it works.

It will hopefully save someone else 2days of work.

CHANGES THAT NEED TO BE MADE:

. on file /templates/wiki-plugins/wikiplugin-gmap.tpl change $feature_gmap, $gmap_key, $gmap_defaultx, $gmap_defaulty and $gmap_defaulty CHANGE TO $prefs.feature_gmap, $prefs.gmap_key, $prefs.gmap_defaultx, $prefs.gmap_defaulty, $prefs.gmap_defaulty (all occurrences; intended values are in array prefs in _tpl_var, not directly in _tpl_var as program supposed); if you have put gmap tag on a wiki page then you will see Google map on that wiki page.

. on file /gmap_wikipluging_save.php change $feature_gmap CHANGE TO $prefs'feature_gmap' (at beginning of file; similar reason that change in previous file): to have working 'Save current point' for new values for x and y on 'map and geotagging for this page +' option.

NOTE- WHERE 'feature_gmap' IS ENCLOSED IN '...' REPLACE THE ' WITH SQUARE BRACKETS. FOR SOME REASON THE EDITOR WONT LET ME USE THEM ON THIS POST.

All credits go to iniebla


Cheers


Leighton

posts: 1811 Catalan Countries

Thanks Leighton, and welcome to Tikiwiki Community! smile

Could you please post this as a bug and as the patch to fix this bug at the dev.tw.o tracker preapred for this?:
http://dev.tikiwiki.org

(submit a bug report, ...)

This way, you can provide more information that is needed: version, features affected, etc. And someone can review it, find it when filtering for features, etc.

Thanks! and thanks for contributing your fix.
(I don't have time now to test it, but I would in a few months, if nobody else does, and I can find your fix later on...)

Cheers


posts: 1550 Canada

Please see PluginGoogleMap which is in active development.

M ;-)


posts: 12

Thanks Marc

I don't suppose this will work in 4.2?

L

posts: 1550 Canada

Likely yes if you copy the relevant 5.x files to a 4.x instance

M ;-)