Google Member Map

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

Previous topic - Next topic

fals

In my case, i only needed to re-ad these lines in the Load.php
<file name="$sourcedir/Load.php">
<operation>
<search position="before"><![CDATA[
'post_group' => $profile['post_group'],
'post_group_color' => $profile['post_group_color'],
'group_stars' => str_repeat('<img src="' . str_replace('$language', $context['user']['language'], isset($profile['stars'][1]) ? $settings['images_url'] . '/' . $profile['stars'][1] : '') . '" alt="*" border="0" />', empty($profile['stars'][0]) || empty($profile['stars'][1]) ? 0 : $profile['stars'][0]),
'local_time' => timeformat(time() + ($profile['timeOffset'] - $user_info['time_offset']) * 3600, false),]]></search>
<add><![CDATA[
'googleMap' => array(
'latitude' => $profile['latitude'],
'longitude' => $profile['longitude'],
),]]></add>
</operation>

<operation>
<search position="replace"><![CDATA[
mem.buddy_list, mg.onlineColor AS member_group_color, IFNULL(mg.groupName, '') AS member_group,]]></search>
<add><![CDATA[
mem.buddy_list, mem.latitude, mem.longitude, mg.onlineColor AS member_group_color, IFNULL(mg.groupName, '') AS member_group,]]></add>
</operation>

<operation>
<search position="replace"><![CDATA[
mem.notifyTypes, lo.url, mg.onlineColor AS member_group_color, IFNULL(mg.groupName, '') AS member_group,]]></search>
<add><![CDATA[
mem.notifyTypes, mem.latitude, mem.longitude, lo.url, mg.onlineColor AS member_group_color, IFNULL(mg.groupName, '') AS member_group,]]></add>
</operation>
</file>


Then it worked again  :)
Maybe they where deleted by mistake, when i uninstalled some other mod.







500fan.dk - SMF 2.0 ~ custom theme
ls-forum.dk - SMF 2.0.2 ~ custom theme and custom iPhone theme

dobomode

Hm, I already had that in there. :(

Thanks though.

Still not working.

I've got SMF 1.1.2 by the way.


arvesolland

Could anyone please send me the RC8 version to my email "arvesolland at gmail dot com", or post an exact url to where i can download, have been looking through the pages here, and cannot find it at all  :-[

Cheers

Dejv

SMF 1.1.20

Owain

I tried to install the file on page 52 but because I am already running 1.1.2 it says the instal failed because of version error.
Is there a way of installing this mod on 1.1.2 without going back to 1.1.1 first?

O.
www.tractionkiting.co.uk
Dedicated to promoting Kiting in Scotland

dobomode

Quote from: Owain on March 02, 2007, 08:38:38 AM
I tried to install the file on page 52 but because I am already running 1.1.2 it says the instal failed because of version error.
Is there a way of installing this mod on 1.1.2 without going back to 1.1.1 first?

O.

Yes, just install it manually.
Upload and run the php on your server and then manually edit the Source and Theme files as structured in the modifications xml file.
That worked for me, except for the 'no pins' issue I am still having! :(

LiveWire

I installed on 1.1.2 after modifying the install package xml per someone's suggestion. It did not get any errors. However, when in features and options, nothing will save. I make the changes, click save and they are lost. I get these errors in the error log:

8: Undefined index: pm_posts_per_hour
File: <snipped>/Sources/ModSettings.php

8: Undefined index: pm_posts_verification
File: <snipped>/Sources/ModSettings.php

8: Undefined index: max_pm_recipients
File: <snipped>/Sources/ModSettings.php

I tried uninstalling, then uninstalling the 1.1.2 update to go back to 1.1.1 and finally reinstalling the map mod. I still have the same problem.

Any thoughts?

LiveWire

I have not figured out why I could not save the settings. I changed them directly in MySQL and have the map up. I went into my profile and added a pin. When I go back to the map, it does not show up.

dobomode

Quote from: LiveWire on March 08, 2007, 12:42:20 PM
I have not figured out why I could not save the settings. I changed them directly in MySQL and have the map up. I went into my profile and added a pin. When I go back to the map, it does not show up.

You are not alone - I am still having this issue. If anyone has been able to resolve this - please let us know! :)

LiveWire

Started back on page 1. Got it working to my satisfaction for now at page 44. I did not see the IE fix link before being so small and blue on blue. I got the pins to show up by disabling clustering. If the settings page was working for me, I would probably have figured it out just playing around with settings.

It would be nice if all the little fixes were combined into a new dowloadable install package before the next big version is released.

Lew Cipher

Quote from: Bigguy on January 09, 2007, 03:52:32 PM
Well WhatsUp, I have tried this again and still have got no further. The "unexpected T_DOUBLE_arrow" error it gives because of this line:

'googlemap' => 'ModifyGoogleMapSettings',

believe it or not is because of this:

=>

I have tried everything to get this to work and for some reason it just won't. I am sorry. Maybe someone here that is more skilled at this can help out. The code around that area is this:

// Select the right tab based on the sub action.
if (isset($context['admin_tabs']['tabs'][$context['sub_action']]))
$context['admin_tabs']['tabs'][$context['sub_action']]['is_selected'] = true;

// Call the right function for this sub-acton.
$subActions[$_REQUEST['sa']]();
}

// This function basically just redirects to the right save function.
function ModifyFeatureSettings2()
{
global $context, $txt, $scripturl, $modSettings, $sourcedir;

isAllowedTo('admin_forum');
loadLanguage('ModSettings');

// Quick session check...
checkSession();


It tells us that the line of code is to go above this:

// This function basically just redirects to the right save function.

I have tried that and a number of other combonations and still I get a parse error.

This is my problem. I've spent hours trying to figure this out. Did anyone ever find the solution or can someone help?

TIA!

Version: SMF 1.1.2
Many mods installed

Bigguy

I have the google map installed and running but for the life of me I can't remember how I got it going. I had some help from someone here in this thread. Did you download and try using the rc8 version that is posted back about 10 or so pages. ???

Lew Cipher

Quote from: Bigguy on March 15, 2007, 08:58:00 PM
I have the google map installed and running but for the life of me I can't remember how I got it going. I had some help from someone here in this thread. Did you download and try using the rc8 version that is posted back about 10 or so pages. ???

Yes & I followed your great instructions on hand modding the problem file. Unfortunately, I got stuck at the same place you did when trying to help WhatsUp.  :(
Version: SMF 1.1.2
Many mods installed

Owain

Fingers crossed TLM will be back soon with a 1.1.2 version of googlemaps :D

O.
www.tractionkiting.co.uk
Dedicated to promoting Kiting in Scotland

pongsak

Hello there.
   I've used 1.1.2 thai with manual google map installed, and it works fine.
However i go to http://googlemapsapi.blogspot.com/ and see
some code interesting.
   That's when anyone move the mouse over the pin, the block show "hi".
I try to insert code in googlemap.php but failed.
    This 's the code i copy from that web site.

Quotevar point = new GLatLng(40.713956,-35.156250);

var marker = new GMarker(point, {draggable:true});

GEvent.addListener(marker, 'mouseover', function() {
marker.openInfoWindow('hi!');
});

map.addOverlay(marker);

Can anyone suggest me how to imply this code.
Moreover i want to say hi and "this is the xxx home "
when the user move mouse over the xxx pin.
how to adapt this code?

thank forward.
smf 1.1.2 with dilbermc themes.
> 50 mods installed.

cheekylemon

Hi all.

Thanks for all the info regarding the member map. After a lot of searching through the forum, I now have my map installed through the package manager on 1.1.2.

However, does anyone know how to alter the size of the balloon that appears when you click on a pin in the map. (The balloon shows user info, avatar, and links to the users profile). Currently, the data overspills the balloon. Hope that makes sense?

Cheers all.

Bigguy

It does that on mine sometime to but I found clicking on the pin again will actually resize the balloon to the proper dimensions.  (Or for me anyway)

cheekylemon

Quote from: Bigguy on March 24, 2007, 06:49:23 PM
It does that on mine sometime to but I found clicking on the pin again will actually resize the balloon to the proper dimensions.  (Or for me anyway)

You're right, it does reseize when clicked twice. How funny! Any idea what could be causing the problem? Not a major issue, just thought it would be nice to be able to correct it.

Bigguy

I am not sure as I have not looked at the code closely yet, when I get a free moment I will look.

clarkkent93

Quote from: LiveWire on March 09, 2007, 12:40:30 PM
Started back on page 1. Got it working to my satisfaction for now at page 44. I did not see the IE fix link before being so small and blue on blue. I got the pins to show up by disabling clustering. If the settings page was working for me, I would probably have figured it out just playing around with settings.

It would be nice if all the little fixes were combined into a new dowloadable install package before the next big version is released.

Does anybody know when the next version is going to be released?  I'd rather start with something new instead of going through 60 pages of modifications and fixes.  Sorry but....I'm looking for a replacement for Location Mod.
SMF 1.1.6

Advertisement: