Jump to content

Member Map


Recommended Posts

Thanks for your assistance...this is for the bing version so it was a matter of just changing the following.

needed to add this: ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.min.js

Use the latest of the chosen branch, so use 1.7.2.

Update your existing script tag though, don't just needlessly load another version of jQuery on the same page

Link to comment

I had to revert as it wouldnt update my location. Here is what the file looks like: Where would I insert that script to make it function properly?

<script type='text/javascript'>
ipb.vars['bingApiKey'] = "{$apiKey}";
ipb.vars['mmCacheFiles'] = "{$this->caches['mmFileCacheCount']['members']}";
</script>
<if test="$this->memberData['member_id'] && in_array('1', $perms)">
<ul class='topic_buttons'>
<if test="$perms['delete'] && $exists">
<li class='important'>
<a id='memberMapDelete' href='#' title='{$this->lang->words['buttonDeleteLocation']}'>{$this->lang->words['buttonDeleteLocation']}</a>
</li>
</if>
<if test="($perms['add'] && !$exists) || ($perms['edit'] && $exists)">
<li>
<a id='memberMapUpdate' href='#' title='<if test="!$exists">{$this->lang->words['buttonAddLocation']}<else />{$this->lang->words['buttonUpdateLocation']}</if>'>
<if test="!$exists">{$this->lang->words['buttonAddLocation']}<else />{$this->lang->words['buttonUpdateLocation']}</if>
</a>
</li>
</if>
</ul>
</if>
<h1 class="ipsType_pagetitle">{IPSLib::getAppTitle('membermap')}</h1>
<if test="$this->memberData['member_id'] && in_array('1', $perms)">
<form id='memberMapUpdateInput' class='clear' style='display: none;'>
<h3 class='maintitle'><if test="!$exists">{$this->lang->words['buttonAddLocation']}<else />{$this->lang->words['buttonUpdateLocation']}</if></h3>
<div class='ipsBox ipsPad'>
<div class='ipsBox_container'>
<input type='text' id='locationAddress' class='ipsPad' placeholder='{$this->lang->words['addressInputPlaceholder']}'>
<span class='right'>
<a href='#' id='currentLocation' data-tooltip='{$this->lang->words['tooltipCurrentLocation']}'>
<img src='{$this->settings['img_url']}/membermap/currentLocation.png'>
</a>
<input type='submit' value='{$this->lang->words['buttonSave']}'>
</span>
</div>
</div>
</form>
</if>
<div id='memberMapCanvasWrapper' class='ipsBox ipsPad'>
<div id='memberMapCanvas' class='ipsBox_container'></div>
</div>

Link to comment

I had to revert as it wouldnt update my location. Here is what the file looks like: Where would I insert that script to make it function properly?

You won't insert anything, you need to change the existing reference to jQuery, which is probably in globalTemplate.

Think of this as completely separate to member map.

Link to comment

Hi - we are getting this error from a user:

Fatal error: Call to a member function mapTemplate() on a non-object in /home/runetime/public_html/admin/applications_addon/other/membermap/modules_public/membermap/map.php on line 77

They are using a Mac.. but no one else seems to have a problem (from a PC).

Any ideas? Thanks!

Link to comment

stoo - can you advise re my outstanding question ?

I don't have an answer yet, this part of the code is subject to change.

Hi - we are getting this error from a user:

Fatal error: Call to a member function mapTemplate() on a non-object in /home/runetime/public_html/admin/applications_addon/other/membermap/modules_public/membermap/map.php on line 77

They are using a Mac.. but no one else seems to have a problem (from a PC).

Any ideas? Thanks!

Follow the first part of this: http://www.invisionpower.com/support/kb/_/manually-rebuild-skins-and-languages-from-xml-r42

Link to comment

Hi, I upgraded to Member Map 2.0.0 Beta 2 and now as Board Admin I am not able to delete user's locations... In Member Map Permissions Mask I set the permission to delete locations for Admin...

An other little question... As you can see here under Antartic there is a big blank space... How can I show map fullscreen?

Thanks

Link to comment

I am getting a small bug: when at the member map, when clicking on the name of a member it gets me this address:

-> for the user bassman-1001, for example:

http://communityname.com/index.phpuser/65929-bassman-1001/

This is a malformed URL (at least missing a slash) which redirects to the homepage. The right URL should be:

http://communityname.com/index.php/user/65929-bassman-1001/

- or -

http://communityname.com/user/65929-bassman-1001/

I believe this can be easily fixed at the code. Where can i change this? Thank you for your help!

Link to comment

I am getting a small bug: when at the member map, when clicking on the name of a member it gets me this address:

-> for the user bassman-1001, for example:

http://communityname.com/index.phpuser/65929-bassman-1001/

This is a malformed URL (at least missing a slash) which redirects to the homepage. The right URL should be:

http://communityname.com/index.php/user/65929-bassman-1001/

- or -

http://communityname.com/user/65929-bassman-1001/

I believe this can be easily fixed at the code. Where can i change this? Thank you for your help!

I thought this was already fixed at one point. Could be wrong.

Link to comment

I am getting a small bug: when at the member map, when clicking on the name of a member it gets me this address:

-> for the user bassman-1001, for example:

http://communityname.com/index.phpuser/65929-bassman-1001/

This is a malformed URL (at least missing a slash) which redirects to the homepage. The right URL should be:

http://communityname.com/index.php/user/65929-bassman-1001/

- or -

http://communityname.com/user/65929-bassman-1001/

I believe this can be easily fixed at the code. Where can i change this? Thank you for your help!

admin/applicatons_addon/other/membermap/sources/classes/mapLib.php

Change line 169 from

         'url'   => $this->registry->getClass('output')->buildSeoUrl('showuser='.$members[$id]['member_id'], 'public', $members[$id]['members_seo_name'], 'showuser'),

to

         'url'   => $this->registry->getClass('output')->buildSeoUrl($this->settings['board_url'] . '/index.php?showuser='.$members[$id]['member_id'], 'none', $members[$id]['members_seo_name'], 'showuser'),
Link to comment

unanswered questions:

  • I upgraded to Member Map 2.0.0 Beta 2 and now as Board Admin I am not able to delete user's locations... In Member Map Permissions Mask I set the permission to delete locations for Admin... Is it norma?
  • As you can see here under Antartic there is a big blank space... How can I remove it to show map in fullscreen?

new question (issue):

  • user's profile links broken in my member map after upgrading to v2.0 were ok but not the lost a slash in url... How can I fix it?
Link to comment

unanswered questions:

  • I upgraded to Member Map 2.0.0 Beta 2 and now as Board Admin I am not able to delete user's locations... In Member Map Permissions Mask I set the permission to delete locations for Admin... Is it norma?
  • As you can see here under Antartic there is a big blank space... How can I remove it to show map in fullscreen?

  • [Admin] Delete functionality will return in a near-future version, users are currently able to remove their own markers. - If you need to do this you can manually delete the data from the member_map table and then rebuild the cache for the app.
  • The blank space is because the map is zoomed all of the way out, this is caused by the marker that is placed in Antarctica.

new question (issue):

  • user's profile links broken in my member map after upgrading to v2.0 were ok but not the lost a slash in url... How can I fix it?


http://community.invisionpower.com/topic/306966-member-map/page-87#entry2479824 (this is literally 3 posts before this one :sad: )

Link to comment
  • 3 weeks later...

i took some time today to update our member maps after few months with non working old version based on google api.

@stoo

i just added some features to the version on my own. should i integrate them properly (and not like a quick fix) into the maps version and send it to you, so all users can use them!?

my additional features are (of course all accessable in ACP):

- disable the best fit zoom (i don't want to see all the world, because our members are mainly located in germany)

- define initial center location

- define initial zoom (in my case 10)

- auto center to my location (if it is set)

- set zoom when auto centering to my location (in my case 6)

- set MapType (i.e. to road instead of automatic)

- switch some map options (animate, showMapTypeSelector, showBreadcrumb)

- set zoom of profile map (in my case 10)

i think especially the center and zoom to my location is very useful, because it gives me what my users expect from the map. they want to find members in their region.

i would like to see these features in the official version, anybody else?

Link to comment

i took some time today to update our member maps after few months with non working old version based on google api.

@stoo

i just added some features to the version on my own. should i integrate them properly (and not like a quick fix) into the maps version and send it to you, so all users can use them!?

my additional features are (of course all accessable in ACP):

- disable the best fit zoom (i don't want to see all the world, because our members are mainly located in germany)

- define initial center location

- define initial zoom (in my case 10)

- auto center to my location (if it is set)

- set zoom when auto centering to my location (in my case 6)

- set MapType (i.e. to road instead of automatic)

- switch some map options (animate, showMapTypeSelector, showBreadcrumb)

- set zoom of profile map (in my case 10)

i think especially the center and zoom to my location is very useful, because it gives me what my users expect from the map. they want to find members in their region.

i would like to see these features in the official version, anybody else?

Sure, feel free to email it over to me, I'll take a look and see what can be included.

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...