Google Member Map

Started by TLM, December 18, 2005, 08:43:52 PM

Previous topic - Next topic

TLM

Problem is my mod does not like certain other mods on un/install.  I am still trying to make a list to find out what mods it does not like so I can figure out exactly why it does not like them.

Craig

Quote from: TLM on March 09, 2006, 08:38:06 AM
Quote from: Craig on March 07, 2006, 01:41:19 PM
i cant update the dbsettings via the forum its no big deal as i just went into the DB settings table and changed them there to get the setting i needed, but wondered what i did wrong ?

being an old YaBB.cgi user i always do mods by hand just dont trust the auto method  ;D
What kind of problems are you having?  It should have worked fine on the auto method, but if you went step by step in the correct modification file I doubt you missed soemthing.


thanks for tha responce its no big deal as i wont be changing the setup... and i can via the database if needed... just thought i mention it incase i missed a file permission or somting like that.

oh and LOL at the dumb comment... You guys deserve a medal for putting up with some of the questions ive read in this place hahahaha  ;)

Bigguy

#362
What is the code in : "ModSettings.php" and "Modifications.english.php" that I have to remove. I am trying to uninstall version .51 so I can upgrade to .55 but I get 3 errors so I need to take that code out manually. I cant really read those .xml files to good.

EDIT: Pins show up in IE NOT in FF

Edit: Ok I have the old one uninstalled with no errors, and the new one installed. The map shows up and everything. I had to add the code to the modsettings.php file and the option for the map shows in the admin panel but when clicked you dont go anywhere. Also in my error log I get this error:

QuoteUndefined index: googleSidebar
File: /home/****/public_html/smf/Themes/default/GoogleMap.template.php (eval?)
Line: 27

Bigguy


Bigguy

I have found that the pins on the map show in IE but not in FF. Does anyone know a fix. I am using smf1.1 rc2 and joomla.

TLM

#365
Quote from: Bigguy on March 13, 2006, 06:59:14 PM
EDIT: Pins show up in IE NOT in FF

Edit: Ok I have the old one uninstalled with no errors, and the new one installed. The map shows up and everything. I had to add the code to the modsettings.php file and the option for the map shows in the admin panel but when clicked you dont go anywhere. Also in my error log I get this error:

QuoteUndefined index: googleSidebar
File: /home/****/public_html/smf/Themes/default/GoogleMap.template.php (eval?)
Line: 27
I shall look into that error.

Quote from: Bigguy on March 14, 2006, 11:50:56 AM
No help at all ??? ????
Impatient are we? You do know some of us have other things to do, like me with a few projects that sucking my free time to work and support here.

Quote from: Bigguy on March 16, 2006, 05:58:33 PM
I have found that the pins on the map show in IE but not in FF. Does anyone know a fix. I am using smf1.1 rc2 and joomla.
Link so I can poke at it?  Also I dont support smf+joomla, so if its an issue with that, your on your own.
If http://new.mywworld.com/index.php?option=com_smf&Itemid=36&action=googlemap is it, give me a test account to use that can access the map or set permissions to allow guests to view the map. (Very tempted to rip permissions out just because of this right here)

Bigguy

#366
TLM I sent you a PM with test account. I don't mean to bump or be impatient, and I`m sorry about that. I realize everyone has a life and get busy. I try to run a small computer repair shop and raise my daughter so I know what busy is. Take your time, I just get rushed once and awhile.

TLM

Ok that IE issue is probally due to me doing bad coding again...

Whats happening is the sidebar being disabled, the javascript still looks for it.  But I was able to view the pins afer i said no to script debuging, but I am sure thats probally what the issue is, this weekend I shall try to get around to maybe doing a clean up on that.  I am reluctant to release the 0.56 version that is on my server due to it still has a few issues still.  Also it would require me to release a second mod to allow access to the admin menu, I am still deciding on that for right now on a few ways.  I may just edit the .55 and release it as .56 and call my servers .56, .60.

Also as someone said further back why not simply send only the data thats needed, I will look into it as well but will have to make a larger edit possibly.

This weekend my workload is lessened to just writting documents that can be churned out in about 7 hrs leaving lots of other time. :)

Bigguy

OK, thank you for taking the time to look at that as I do know how busy ppl can get. I will wait patiently for you to fix things up :) Thanks again.

basys

Hi TLM

mod request please.   ;D

On clicking a member's pin -
Members websites to open in a new window.

Many thanks
ATB
Paul



basys

#371
Hi Folks

For those persons experiencing an Operation Aborted type error, here's a quick fix,
(occurs in IE, & possibly other browsers).

Backup your original GoogleMap.php first.
Substitute with this code saved as GoogleMap.php

Posted with TLM's permission.

I've temporarily posted the code inline.
My SMF membership premissions do not allow me to post attachments.

GoogleMap.php

Code removed as more suitable fix in next post


ATB
Paul

TLM

#372
Well I would post a fix but it seems that I can upload an attachment anymore nor delete the old attachments.

So having to resort to this...
http://www.mindlesstux.com/files/GoogleMap.phps
rename to .php before uploading to your sites people.  This fix should cover the IE issue and the fix that basys also did in a diffrent way that might be better than what he did.

basys

Hi TLM

You too     ;D

ATB
Paul

Bigguy

The fix I was hoping for was for FF as right now I cant get into my admin area for the map and the pins dont show up. I am also using joomla. Hope theres help. It also says when I use ff that google map is not compatible with this browser.

skyshroud

dudes.

I must be a moron. Forum had been working well, used pkg mgr to install mod, site error occurred, removed the 'arcade' mod, which magically allowed users to begin viewing threads again..so, I assume there must be some sort of conflict there, as well. Just to mention it.

Now, here's where the problem comes from. I have NO IDEA what I am doing, what I need to modify, where I need to place the button, how to link to it, etc..... at this point, the package is installed, but has no functionality, since I have done nothing but 'apply mod' from manager.

The instructions in the text file merely give a shout to the creator. No info I could find on what to do after application of the mod. I have searched pretty much all of the 25 pages in this thread, but can find no specifics. Am I correct in that 3 files need to be modified? I have my google ID, and once again, no idea how to add it to the code....lol...or even which code file I need to add it to. I think I need the grand 'ole click here, type this on this line, etc.

Any use in me trying to forge ahead, or should I just uninstall, cause I am not knowledgeable enough to get past this hump?

Bill.Ramby

#376
Ok, this is not an IE issue, sort of..... ::)

AOL uses IE's rendering core. I have IE working with the map on my site thanks to the updated GoogleMap.php. Except AOL's IE based browser wont render it. My one forum member that uses it reports this error:

"Google Map API is not compatible with this browser."

Any ideas?

OncleBen31

#377
Helo,

This is a very good mod, congratulation (in french Bravo  :D)
1 - If there is other french users of this mod or if TLM want to add other language to it, I've made the translation of the language directory's file in French (See below).

2 - I'm using a french version of SMF 1.1 RC2, and I've notice a strange bug. My member can see the map button but when I'm login with admin permission I don't see it. This bug don't exist with the orginal version of SMF 1.1 RC2. Do you know what type of subtility of a different language version can explain this behaviour ?

Edited (30/03/2006) : It isn't a bug, I just miss to copy the index.template.php file from default theme to my theme folder. :P

Google map en francais:

Code to add in the ModSettings.french.php (Code à ajouter au fichier)
$txt['googleMapsEnable'] = 'Activer la carte de membre Google';
$txt['googleMapsEnableLegend'] = 'Afficher la légende';
$txt['googleSidebar'] = 'Où afficher la bare barre d\'information';
$txt['googleMapsKey'] = 'la clé d\'activation pour la page de l\'API Google Map';
$txt['googleMapsPinGender'] = 'Est-ce que le drapeau doit représenter le sexe du membre ?';
$txt['googleMapsPinNumber'] = 'Nombre maximum de drapeau à afficher sur une page';
$txt['googleMapsType'] = 'Le type de carte à afficher';
$txt['googleMapsDefaultLat'] = 'La latitude par défaut';
$txt['googleMapsDefaultLong'] = 'La longitude par défaut';
$txt['googleMapsDefaultZoom'] = 'Le zoom par défaut';
$txt['googleMapsEnableClusterer'] = 'Autoriser le regroupemeent de drapeau';
$txt['googleMapsMinMarkerCluster'] = 'Nombre minimum de drapeau par regroupement';
$txt['googleMapsMaxVisMarker'] = 'Nombre maximum de boite d\'info sur une carte';
$txt['googleMapsMaxNumClusters'] = 'Nombre maximum de regroupement';
$txt['googleMapsMaxLinesCluster'] = 'Nombre maximum de ligne dans la boite d\'info d\'un regroupement';
$txt['googleMapFO'] = 'Carte des Membres (Google Map)';


Code to add in the Modifications.french.php (Code à ajouter au fichier)
$txt['googleMap'] = 'Carte';
$txt['googleMapGreenPinGD'] = 'Drapeau d\'un membre';
$txt['googleMapGreenPinNG'] = 'Sexe inconnu';
$txt['googleMapBluePin'] = 'Homme';
$txt['googleMapRedPin'] = 'Femme';
$txt['googleMapPurplePin'] = 'Groupement';
$txt['googleMapAddPinNote'] = '<a href="' . $scripturl . '?action=profile;sa=forumProfile">Cliquez ici pour placer votre drapeau si vous ne l\'avez pas encore fait.</a>';
$txt['googleMapDisclaimer'] = 'Placer le drapeau avec la précision qui vous convient.';
$txt['cannot_googleMap_view'] = 'D&eacute;sol&eacute;, vous n\'&ecirc;tes pas autoris&eacute; à acc&eacute;der à la carte des membres.';
$txt['permissionname_googleMap_view'] = 'Voir la carte des membres (Google Map)';
$txt['permissionhelp_googleMap_view'] = 'Permet d\'activer la carte des membres.  Si cette option n\'est pas coch&eacute;e, personne ne vera la carte.';
$txt['cannot_googleMap_place'] = 'D&eacute;sol&eacute;, Vous n\'&ecirc;tes pas autorisé à placer un drapeau sur la carte des membres.';
$txt['permissionname_googleMap_place'] = 'Placer un drapeau sur la carte (Google Map)';
$txt['permissionhelp_googleMap_place'] = 'Permet aux membres de placer un drapeau sur la carte.  Si cette option n\'est pas coch&eacute;e, personne ne poura placer de drapeau.';


Code to add in the Who.french.php (Code à ajouter au fichier)
$txt['whoall_googlemap'] = 'Visualise la <a href="' . $scripturl . '?action=googlemap">Carte des Membres</a>.';
$txt['whoall_.kml'] = 'Visualise la base de donn&eacute;e Google Earth.';

OncleBen31

Google Map in French (Part 2)

I've notice that there is a hard coding of the gender in the file GoogleMap.php. So if you use another language, the Pin won't represent the gender of the member.

To fix it you have to do the following modification :
Find and change in GoogleMap.php
if ($marker['gender']['name'] == "Male") {
   $markers = $markers . 'gender="1"';
} elseif ($marker['gender']['name'] == "Female") {
   $markers = $markers . 'gender="2"';
} else {
   $markers = $markers . 'gender="0"';
}

in
if ($marker['gender']['name'] == $txt[238]) {
   $markers = $markers . 'gender="1"';
} elseif ($marker['gender']['name'] == $txt[239]) {
   $markers = $markers . 'gender="2"';
} else {
   $markers = $markers . 'gender="0"';
}


TLM

#379
Quote from: skyshroud on March 23, 2006, 03:12:30 PM
I must be a moron. Forum had been working well, used pkg mgr to install mod, site error occurred, removed the 'arcade' mod, which magically allowed users to begin viewing threads again..so, I assume there must be some sort of conflict there, as well. Just to mention it.
I will need to look into that sometime soon.

Quote from: skyshroud on March 23, 2006, 03:12:30 PM
Now, here's where the problem comes from. I have NO IDEA what I am doing, what I need to modify, where I need to place the button, how to link to it, etc..... at this point, the package is installed, but has no functionality, since I have done nothing but 'apply mod' from manager.

The instructions in the text file merely give a shout to the creator. No info I could find on what to do after application of the mod. I have searched pretty much all of the 25 pages in this thread, but can find no specifics. Am I correct in that 3 files need to be modified? I have my google ID, and once again, no idea how to add it to the code....lol...or even which code file I need to add it to. I think I need the grand 'ole click here, type this on this line, etc.
Quote from: TLM on December 18, 2005, 08:43:52 PM
Once installed you will want to go to Features and Options and enable it, along with put in a key for use on the forum.  The key is required by the Google Maps API, and can be aquired at, http://www.google.com/apis/maps/signup.html  Upon sign up there you will need to put in your sites URL,
example,
Your Forum is at http://www.example.com/forums/
In there sign up box put exactly that, do not include any file name just the directory path in the url.
You just did not read careful enough, first post there. :)




Quote from: Bill.Ramby on March 24, 2006, 09:23:44 PM
Ok, this is not an IE issue, sort of..... ::)

AOL uses IE's rendering core. I have IE working with the map on my site thanks to the updated GoogleMap.php. Except AOL's IE based browser wont render it. My one forum member that uses it reports this error:

"Google Map API is not compatible with this browser."

Any ideas?
Which web browsers does Google Local support?  That and I dont have anyone on AOL(aohell) to test this with.  Can that user use google maps anywhere else?




Quote from: OncleBen31 on March 27, 2006, 10:50:24 AM
Helo,

This is a very good mod, congratulation (in french Bravo  :D)
1 - If there is other french users of this mod or if TLM want to add other language to it, I've made the translation of the language directory's file in French (See below).

2 - I'm using a french version of SMF 1.1 RC2, and I've notice a strange bug. My member can see the map button but when I'm login with admin permission I don't see it. This bug don't exist with the orginal version of SMF 1.1 RC2. Do you know what type of subtility of a different language version can explain this behaviour ?

Edited (30/03/2006) : It isn't a bug, I just miss to copy the index.template.php file from default theme to my theme folder. :P
1) I will add those soon, I dont think I am gonna add more language lines for a while.
2) Accualy I had that happen on my test site and my domains site, so not exactly sure what caused it, but probally the same but the test site using the default theme.

3) As for the hard coding of those lables I will be updating that to what looks like you did, just so it will be all the same.




As sort of an update as to why the mod has kind of stalled, class is gotten in the way mostly.  I have not had any real free time to where I can work on the next planned feature, custom data and a somewhat cleanup on the code.  Spring break for me is coming up, and I should have time then if I dont go blow it with friends of mine or use it to get a certification I need.  So dont go thinking I am leaving this for the wayside.

Advertisement: