Google Member Map

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

Previous topic - Next topic

PhatTyres

Quote from: damacguy on January 30, 2006, 04:56:33 PM
This isn't an issue with this Mod, per say. But it's the only place I see the problem. The ICQ icon doesn't show up correctly when I click on a member in the map. It looks like it's a simple typo in a template somewhere (http://status.icq.com/online.gif?img=5&icq= should be http://status.icq.com/online.gif?img=5&icq=13541672).

I looked in membermap (and obviously it's not there). I also looked in profile.template and it's not there either. Where's this defined?

The ICQ icon shows up fine and click through perfectly on my 0.55 install on 1.0.5
OTB and Runnin Down The Hill

SMF 1.0.5  MKp1.0                                Clip'd In Cycling Community

TLM

Furvert, yeah I was looking at that section of code.  I knew it was a bad search but I was not sure what would be best to go about fixing it.  Sometimes it helps to have people look in your box. :)

damacguy, Sources/GoogleMap.php MapsXML(),
here is where it kills it,

// This is to help against those funky chars... and protect against those " errors in XML!
$datablurb = htmlspecialchars($datablurb);

I am considering redoing that whole chunk of code for it just is plain and simple ugly...

Furvert

I think it is installed but I cant make it work.
http://furvert.net/smf/index.php?action=featuresettings2;save;sa=googlemap
Apply Filter: Only show the errors with the same message
8: Undefined variable: setArray
File: /home/content/f/u/r/furvert/html/smf/Sources/ManageServer.php
Line: 486

It refuses to save the enable and key!
This one has me stumped, I dont see any errors and none were reported on install other than I mentioned and manually fixed.

Well I also have no map button but it also is not enabed yet so likely turned off

Furvert

I found the problem, there are 2 places that need the

// Insert Googlemap into Features and Options Menu
'googlemap' => 'ModifyGoogleMapSettings',

Furvert

It works fine with Location Mod :D
I had to add the button to my theme and change text to say 'Google Map'

Only thing I see that I would have liked different is place flag from map view without moving to profiles.
But that does complicate clicking on the view map so perhaps what you have is best?
Now to see about start location and zoom levels

TLM

Quote from: Furvert on January 30, 2006, 08:23:12 PM
It works fine with Location Mod :D
I had to add the button to my theme and change text to say 'Google Map'
Glad you got it but I don't quite understand all your problems you have.

Quote from: Furvert on January 30, 2006, 08:23:12 PM
Only thing I see that I would have liked different is place flag from map view without moving to profiles.
But that does complicate clicking on the view map so perhaps what you have is best?
Now to see about start location and zoom levels
Yes it would complicate the view map, thats why its in the profile, not to mention to me it makes more sense to have the member place there pin in there profile in case they want to remove it, it would make it easier for them to find/remove.  Not to mention place if there are multiple pins in such close proximity.

As for the start location and zoom level should be options in the admin section.  I would also state that the profile placing if no point is set should default to world view and not what is set in the admin section.

Furvert

Here is an interesting website
http://www.geobytes.com/GeoDirection.htm

    <script language="Javascript" src="http://gd.geobytes.com/gd?after=-1&variables=GeobytesCountry,GeobytesCity">
    </script>
    <script language="Javascript">
    document.write("<p>Welcome to visitors from "+sGeobytesCity+", "+sGeobytesCountry);
    </script>

You can select other varibles so that it can fetch sGeobytesLatitude,sGeobytesLongitude
So could it be used to fetch a preplacement for people on Profile page if no pin placed?
Just an odd idea, my location for example is wrong but my previous IP worked correctly.

TLM

Quote from: Furvert on January 30, 2006, 09:09:44 PM
Here is an interesting website
http://www.geobytes.com/GeoDirection.htm

    <script language="Javascript" src="http://gd.geobytes.com/gd?after=-1&variables=GeobytesCountry,GeobytesCity">
    </script>
    <script language="Javascript">
    document.write("<p>Welcome to visitors from "+sGeobytesCity+", "+sGeobytesCountry);
    </script>

You can select other varibles so that it can fetch sGeobytesLatitude,sGeobytesLongitude
So could it be used to fetch a preplacement for people on Profile page if no pin placed?
Just an odd idea, my location for example is wrong but my previous IP worked correctly.

Yeah, not gonna do that...

oscar2001

no big deal but before I selected a side bar I got this error being logged numerous times each time I hit the map buton

http://www.xxxx.com/smf/index.php?action=googlemap;sa=.js

8: Undefined index: googleSidebar
File: /home/xxxx/public_html/smf/Sources/GoogleMap.php
Line: 102


Soon as you select a side bar it stops the error and then if you select no default bar again after this no more errors are logged..
I got the same error on a few testing forums

No biggie just thought Id mention it in case your unaware

TLM

#269
Quote from: oscar2001 on January 30, 2006, 10:19:06 PM
no big deal but before I selected a side bar I got this error being logged numerous times each time I hit the map buton

http://www.xxxx.com/smf/index.php?action=googlemap;sa=.js

8: Undefined index: googleSidebar
File: /home/xxxx/public_html/smf/Sources/GoogleMap.php
Line: 102


Soon as you select a side bar it stops the error and then if you select no default bar again after this no more errors are logged..
I got the same error on a few testing forums

No biggie just thought Id mention it in case your unaware
Unaware, thanks for finding, checking into now..

Yeah the problem is I forgot to insert a default amount for that value.  Good catch!  Also I should re-label that variable to match the rest that are in the DB.

*edit*
Fixed above problems still working a little more before release of next version for you people to play with
*/edit*

TLM

Quote from: PhatTyres on January 30, 2006, 03:52:02 PM
TLM...I simply used the LatLong I got from googlemap site.  my location ended up in China, not USA...I remembered a post from a few pages back that referred to 360-long.  Used that and I was centered at home!!!!  Maybe just a simple notation by the entry field of what needs to be entered.   I do not know the standards but I don't believe they are that different.  My Long is 118.5xxxxx but what needs to be entered is 241.5.
Quote from: Redeye on January 08, 2006, 07:40:42 AM
The easy way to get your co-ordinates is to go to http://maps.google.com/
Zoom in and double click on where you want to center your map.
Then click "Link to page"
Copy the URL in the address bar as below which is for Edmonton, Alberta.
http://maps.google.com/?ll=53.514185,-113.400879&spn=4.41703,10.305176
The 53 and -113 are the numbers you want.
The first is 360 - 113 and the the second is 53 so your co-ordinates are (247, 53) and then play with the zoom which is 16 as default.
Those numbers should be left as is now.  To tell you the truth, I don't think this was ever necessary.  I just checked redeyes example and used mine, both worked like a charm right off the top, no math needed.

antracit

Quote from: TLM on January 30, 2006, 03:57:36 PM
Oh yeah when Google pushes v2 of there API the map will break.  Found this out this weekend when I was poking at the beta API.

Hi

Will this Great Mod follow  ???

Count me in for translation.

//johan

oscar2001

Tried it using Internet explorer(I use Fire Fox )  and just get a pop up error saying the operation was aborted... Got some other people to to look to and they got the same. Even your testing sites do it with IE..

TLM

#273
Quote from: antracit on January 31, 2006, 03:01:08 AM
Will this Great Mod follow  ???

Count me in for translation.
Yes I will fix the mod for v2 of the API sometime before there is the forced change over to v2.  They will give web people a one month time to change over.

And for what languages?

Quote from: oscar2001 on January 31, 2006, 03:04:56 AM
Tried it using Internet explorer(I use Fire Fox )  and just get a pop up error saying the operation was aborted... Got some other people to to look to and they got the same. Even your testing sites do it with IE..
Argh, this is what I get for not testing with IE again...
Anyway attached should be a fix that will work, I cant test it right now for that I am stuck in class where I cant use FTP to upload...  Make a backup of your existing first because I cant say if my fix works or not.  I really should install apache/mysql back on to my laptop for testing purposes when in class.
(clicky)

*EDIT* First file fix removed, next attached file is better. */EDIT*

allotments4all

Hi,

I run a website, and have recently changed from MKPortal to Joomla, but am having an issue with the googlemembermap mod (I've asked at the bridge board, but no luck).

The problem ...

When you view the membermap all is fine, however if you go to a users profile via the membermap then the page requested is of the form

http://www.allotments4all.co.uk/smf/index.php?action=profile;u=2336

Not

http://www.allotments4all.co.uk/joomla/component/option,com_smf/Itemid,28/action,profile/u,2336

This basically drops you out of the bridge.

Is there a way to get round this?  I have tried to find the call from the membermap to the profile to 'hack' the link, but can not.

Am I the only person using this combination, or has anyone else experienced / overcome this issue.

Cheers

Dan Fulton

TLM

#275
Quote from: allotments4all on January 31, 2006, 11:32:04 AM
When you view the membermap all is fine, however if you go to a users profile via the membermap then the page requested is of the form
http://www.allotments4all.co.uk/smf/index.php?action=profile;u=2336
Not
http://www.allotments4all.co.uk/joomla/component/option,com_smf/Itemid,28/action,profile/u,2336

This basically drops you out of the bridge.

Is there a way to get round this?  I have tried to find the call from the membermap to the profile to 'hack' the link, but can not.

Am I the only person using this combination, or has anyone else experienced / overcome this issue.
As far as I know there are a couple of sites with MKPortal, dont know of any with Jommla.  You are refering to the link at the bottom of the map?  If so you will have to go poking at language files, theres a lang setting that controls that line, and if you know the variable to change it to, you should be ok...  BUT, I will not support this for I dont take nicly to portals/CMS, seen to many bad things happen to many portals/CMS.  I dont support things I dont use.

allotments4all

Hi,

Thanks, but no not the link at the bottom of the map, but clicking on the pin of someone who has placed the pin to gain access to their profile.

I understand you not supporting portals, can be a real nightmare supporting multiple installation types, but I am happy to 'hack' away to get it working, if you can point me in the right direction.

Cheers

Dan


TLM

Quote from: allotments4all on January 31, 2006, 01:29:11 PM
Thanks, but no not the link at the bottom of the map, but clicking on the pin of someone who has placed the pin to gain access to their profile.
Couldve said that in your first post now couldnt ya? ;)
Sources/GoogleMap.php Line ~269

    <td style="white-space: nowrap;" align="left"><a href="' . $marker['online']['href'] . '"><img src="' . $marker['online']['image_href'] . '" alt="' . $marker['online']['text'] .'" class="avatar" border="0" /></a> <a href="' . $marker['href'] .'">' . $marker['name'] . '</a></td>

(^^ Might need to scroll sideways)
You will want to edit the part of $marker['online']['href'], sends user to the PM page of that profile, $marker['href'], sends user to the profile page its self.  These values are pulled out of SMF's member data array(s).  That alone is a good starting spot for you assuming you know PHP.  I would be willing to work with you on this but I am not gonna hold your hand and walk ya thru it, see below.  I just dont know how the heck joomla "wraps" the url and/or if there is a variable that SMF can use to figure the url to show, I am assuming so looking at your board breifly.  That I am gonna leave up to you to dig up.

Quote from: allotments4all on January 31, 2006, 01:29:11 PM
I understand you not supporting portals, can be a real nightmare supporting multiple installation types, but I am happy to 'hack' away to get it working, if you can point me in the right direction.
*rant*
Not only that but more so of, pardon me if your one, a complete and utter website newbie that does not know what on earth to do when you give them direct instructions.  I hate those people.  Then theres, well you support this, why not do this its the same basicly, response, "If its the same then change to it!", and if they con me enough I would spend the time into doing it finding out there like night and day.  It just opens up way to many cans of worms.  I say just write your own portal if you dont know how, then you should not be looking into dynamic content till you are able to understand fully how it works.
*/rant*

* TLM goes back to reading thru collage acceptance letter for a transfer.

oscar2001

Quote from: TLM on January 31, 2006, 08:26:45 AM
Quote from: antracit on January 31, 2006, 03:01:08 AM
Will this Great Mod follow  ???

Count me in for translation.
Yes I will fix the mod for v2 of the API sometime before there is the forced change over to v2.  They will give web people a one month time to change over.

And for what languages?

Quote from: oscar2001 on January 31, 2006, 03:04:56 AM
Tried it using Internet explorer(I use Fire Fox )  and just get a pop up error saying the operation was aborted... Got some other people to to look to and they got the same. Even your testing sites do it with IE..
Argh, this is what I get for not testing with IE again...
Anyway attached should be a fix that will work, I cant test it right now for that I am stuck in class where I cant use FTP to upload...  Make a backup of your existing first because I cant say if my fix works or not.  I really should install apache/mysql back on to my laptop for testing purposes when in class.
(clicky)


Fixes the immediate prob with IE but now the side bar popups wont work when when the names are clicked, seems alright otherwise.

TLM

#279
Quote from: oscar2001 on January 31, 2006, 03:09:19 PM
Quote from: TLM on January 28, 2006, 03:47:59 AM
Quote from: oscar2001 on January 31, 2006, 03:04:56 AM
Tried it using Internet explorer(I use Fire Fox )  and just get a pop up error saying the operation was aborted... Got some other people to to look to and they got the same. Even your testing sites do it with IE..
Argh, this is what I get for not testing with IE again...
Anyway attached should be a fix that will work, I cant test it right now for that I am stuck in class where I cant use FTP to upload...  Make a backup of your existing first because I cant say if my fix works or not.  I really should install apache/mysql back on to my laptop for testing purposes when in class.
(clicky)


Fixes the immediate prob with IE but now the side bar popups wont work when when the names are clicked, seems alright otherwise.
* TLM smacks face....
Duh... functions that are inside another function wont be able to be called....

*Goes about fixing the fix...*

This one should do it, works on TPF in IE and FF.  Although I am not to happy with this fix, but its a must for IE likes to complain more than FF...

Advertisement: