[DEV] jQ User Map api3

Mod Support

Moderators: BNa, Sekuro, 4seven


Re: [DEV] jQ User Map api3

Postby 4seven » 21 Nov 2013, 12:55

have you currently build in the corrected fix?
if not, then do so and i take a quick look.

write a post, when ready.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080


Re: [DEV] jQ User Map api3

Postby volksdevil » 21 Nov 2013, 12:57

OK, I'll do that now and post again when ready. Only a minute to do. :)
volksdevil

Tiptop

Tiptop
 
Posts: 29
Joined: 08 Jul 2012, 20:16
 
Resolution: 1920x1080

Re: [DEV] jQ User Map api3

Postby volksdevil » 21 Nov 2013, 12:59

OK done. No members showing on map, but they are showing as links/hover at top.
EDIT: I notice the 'Show full map' link no longer works either, once you have moved the map to somewhere else.

EDIT2: Just seen this:
Uncaught TypeError: Object 843 has no method 'val'
volksdevil

Tiptop

Tiptop
 
Posts: 29
Joined: 08 Jul 2012, 20:16
 
Resolution: 1920x1080


Re: [DEV] jQ User Map api3

Postby 4seven » 21 Nov 2013, 13:06

open (in your template folder)
with the current fix

user_map.html

find

Code: Select all
<span oncontextmenue="profil(' + locations[i][2]).val() + ');" style="color:#

replace with

Code: Select all
<span oncontextmenue="profil(' + locations[i][2].val() + ');" style="color:#
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080


Re: [DEV] jQ User Map api3

Postby volksdevil » 21 Nov 2013, 13:13

Just tried both 4seven,

First one makes the map disappear. Second one makes the map appear, but no users shown.
volksdevil

Tiptop

Tiptop
 
Posts: 29
Joined: 08 Jul 2012, 20:16
 
Resolution: 1920x1080


Re: [DEV] jQ User Map api3

Postby 4seven » 21 Nov 2013, 13:14

pls. zip and upload as attachment your current user_map.html
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080


Re: [DEV] jQ User Map api3

Postby volksdevil » 21 Nov 2013, 13:18

I've added as a plain text file for you. :)

I have to go back to work now (Dinner time is finished) thank you for helping so far. It's appreciated.
Attachments
user_map.zip
user_map.txt
(4.05 KiB) Downloaded 125 times
volksdevil

Tiptop

Tiptop
 
Posts: 29
Joined: 08 Jul 2012, 20:16
 
Resolution: 1920x1080


Re: [DEV] jQ User Map api3

Postby 4seven » 21 Nov 2013, 13:38

Fix v.2 for loosing rightclick in v.0.9.0

Please recheck the buggy fix from here
viewtopic.php?f=2&t=200&start=50#p1205


Google took away the rightclick event from its api listener.
In Demo is it fixed allready, but for another intention, so a quick fix for v.0.9.0

open (in template folder)

user_map.html

find

Code: Select all
// div none
function divout(iloc){
$(
"#namediv_" + iloc).css("display", "none");
}
  

after add

Code: Select all
// profile lnk
function profil(iloc){
location.href = $("#profile_" + iloc).val();
}
  

find

Code: Select all
<span style="color:#

replace with

Code: Select all
<span oncontextmenu="profil(' + locations[i][2] + ');" style="color:#

find

Code: Select all
// User memberlist link on rightclick
google.maps.event.addListener(marker, 'rightclick', (function(marker, i) {
return function() {

location.href = $("#profile_" + locations[i][2]).val();

}
})(
marker, i));  

replace with

Code: Select all
// User memberlist link on rightclick
// Edit: Dont work anymore
/*
google.maps.event.addListener(marker, 'rightclick', (function(marker, i) {
return function() {
location.href = $("#profile_" + locations[i][2]).val();
}
})(marker, i));
*/
  
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080


Re: [DEV] jQ User Map api3

Postby volksdevil » 21 Nov 2013, 20:27

That's got it 4seven 8-) Thank you.
volksdevil

Tiptop

Tiptop
 
Posts: 29
Joined: 08 Jul 2012, 20:16
 
Resolution: 1920x1080

Previous

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron