• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Digital Point User Map

Status
Not open for further replies.
Hmmm... I just double checked again, and the Google Earth stuff seems to work fine when I try it. For those that it doesn't work, do you have a URL I could try it on your setup?
 
Great plugin.
The map is realtime based on users that are online now. A large forum (like mine, which is what it was made for originally) would have issues displaying everything from the last 24 hours because you would be trying to plot more than 200,000 pins on a single map (which would probably kill your browser and/or Google Map).
While this is true for large sites, for smaller sites it would be nice to see a longer period since they won't have the same amount of activity. Couldn't you use a LIMIT statement in the SQL query to allow both?


--Ed
 
Great plugin.While this is true for large sites, for smaller sites it would be nice to see a longer period since they won't have the same amount of activity. Couldn't you use a LIMIT statement in the SQL query to allow both?
I suppose in theory... but you are also talking about making it FAR more complicated by needing to build a separate system that is logging all the data. Right now, it's just piggybacking the internal session system, so it's based on however long you have the "Online Status Timeout" setting set to.
 
Sorry, I had not yet looked at your code. Since you are using the existing xenForo session model that would make it more complicated to show users that have not timed out. (at least since the last cron job ran to purge the expired users) I don't have an active xenForo site that I can look at with a lot of data, but after digging around the xenForo database I see there is no other easy place to pull it from...

--Ed
 
Okay, I think I figured out what's going on with the Google Earth thing... seems to only happen if you are using mod_write URLs for your forum.

If someone wants to test it (I don't have a setup using rewritten URLs, so...) and let me know if it works okay, that would be great.

Change the js/digitalpoint/usermap.js to this to see if it fixes it:
Code:
colors=["green","orange","white","red"];
function move_and_zoom(a){switch(a){case "usa":map.setCenter(new google.maps.LatLng(38.959409,-93.867187));map.setZoom(4);break;case "europe":map.setCenter(new google.maps.LatLng(49.037868,16.962891));map.setZoom(4);break;case "india":map.setCenter(new google.maps.LatLng(22.350076,80.859375));map.setZoom(4);break;case "oceania":map.setCenter(new google.maps.LatLng(-23.80545,144.140625));map.setZoom(3);break;case "me":map.setCenter(new google.maps.LatLng(user_location[0],user_location[1]));map.setZoom(9);
break;default:map.setCenter(new google.maps.LatLng(24,-10));map.setZoom(2)}}
function createMarker(a,c,b){b=new google.maps.MarkerImage("http://labs.google.com/ridefinder/images/mm_20_"+colors[b]+".png",new google.maps.Size(12,20),new google.maps.Point(0,0),new google.maps.Point(6,20));var e=new google.maps.LatLng(c,a),d=new google.maps.Marker({position:e,map:map,shadow:shadow,icon:b,shape:{coord:[1,1,1,20,10,20,10,1],type:"poly"}}),f=new google.maps.InfoWindow({content:'<a href="'+window.location.href+"GoogleEarth/"+(window.location.href.indexOf("?")>0?"&":"?")+"location="+
a+","+c+'">View in Google Earth</a>'});google.maps.event.addListener(d,"click",function(){f.open(map,d)})}
$(document).ready(function(){var a={mapTypeId:google.maps.MapTypeId.ROADMAP};map=new google.maps.Map(document.getElementById("map"),a);move_and_zoom("");shadow=new google.maps.MarkerImage("http://labs.google.com/ridefinder/images/mm_20_shadow.png",new google.maps.Size(22,20),new google.maps.Point(0,0),new google.maps.Point(6,20));for(a=0;a<allPoints.length;a++)createMarker(allPoints[a][0],allPoints[a][1],allPoints[a][2])});
 
did, and still the same error but the url seems to be like this
forum/usermap/GoogleEarth/&location=-80.2706985474,25.7199993134
 
Nah... you would need to configure your browser to automatically open KML files in Google Earth, but there's not a way to force other people's browsers to do it without them changing it. So that's really the best you can do.
 
I have an idea but I am to tired to do it or explain it...please if you could...don't edit that snippet you posted at least until I respond again...I may have something ...I just hope it is not just an idea :-)
 
I need some help with the installation of this guys. How do i install geo-ip on a windows machine with Apatche 2?
I looked at the instructions on the site posted and it's all double dutch to me.
Can any one help?
 
Is the "spider" marker something that's in the released version here or is that something only available on your site? (I don't see it in my map legend)

--Ed
 
Is the "spider" marker something that's in the released version here or is that something only available on your site? (I don't see it in my map legend)
XenForo doesn't have a mechanism for differentiating spiders within it's session table (not storing a flag or user agent), so it was omitted in the XenForo version unfortunately.
 
Ah. I didn't notice your board is running vB. Hopefully that is a feature that will make it into XenForo in a future release.

--Ed
 
Attempting to uninstall version 1.0.1 I get:

Server Error

call_user_func() expects parameter 1 to be a valid callback, class 'DigitalPointUserMap_Uninstall' not found
  1. XenForo_Application::handlePhpError()
  2. call_user_func() in XenForo/DataWriter/AddOn.php at line 148
  3. XenForo_DataWriter_AddOn->_postDelete() in XenForo/DataWriter.php at line 1645
  4. XenForo_DataWriter->delete() in XenForo/ControllerAdmin/AddOn.php at line 114
  5. XenForo_ControllerAdmin_AddOn->actionDelete() in XenForo/FrontController.php at line 310
  6. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  7. XenForo_FrontController->run() in /home/dragon/public_html/dev/admin.php at line 13
 
Status
Not open for further replies.
Back
Top Bottom