• 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.
Did you by chance delete the files before you uninstalled? If you delete the Uninstall.php file, it can't very well run it to uninstall. :)
 
I am getting this error after installing all the pre-reqs:

Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
Timestamp: Tue, 10 May 2011 06:55:33 UTC

Message: Object doesn't support this property or method
Line: 6
Char: 78
Code: 0
URI: http://www.blahblah.net/forums/js/digitalpoint/usermap.js?_v=fc20a874
 
If I was starting fresh I think so... the problem is I have more than a million lines of code written for my own stuff that uses the vB framework. I've slowly been rewriting it through for XF mostly to learn the architecture (it's quite nice). Whenever vB5 comes out, we'll look at what our options are since a major version is when we would need to rewrite most of our existing stuff anyway.

I have some pretty substantially large things that use the framework that need to be re-written...

http://tools.digitalpoint.com/tracker.php
http://advertising.digitalpoint.com/
http://tools.digitalpoint.com/phonehome.php
http://marketplace.digitalpoint.com/
etc...
 
Sorry, I have no idea how to compile PHP or PHP modules for Windows. Never had a Windows server (and actually never had a computer of any sort running Windows either).. so would be the wrong person to ask. :)
 
Having JS error using user map in Internet Explorer 8, However it does seem to function in Firefox.

Installed GEOIP and GEOIPCity Database.

Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 1.1.4322; .NET4.0C; .NET4.0E)
Timestamp: Fri, 27 May 2011 20:01:03 UTC

Message: Object doesn't support this property or method
Line: 6
Char: 78
Code: 0
URI: http://www.inthepits.com/js/digitalpoint/usermap.js?_v=8f4ca5ad
 
Having JS error using user map in Internet Explorer 8, However it does seem to function in Firefox.

Installed GEOIP and GEOIPCity Database.

Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 1.1.4322; .NET4.0C; .NET4.0E)
Timestamp: Fri, 27 May 2011 20:01:03 UTC

Message: Object doesn't support this property or method
Line: 6
Char: 78
Code: 0
URI: http://www.inthepits.com/js/digitalpoint/usermap.js?_v=8f4ca5ad

Just FYI, Error occurs during document loading.
 
Code:
colors=["green","orange","white","red"];
var map;
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(4);
        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(4)
    }
}
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("usa");
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])
});

Okay, broke down the JS, figured out the Issue, the Map varible is not properly declared outside of the document on load, and functions. If anyone else is getting an error in Internet Explorer, just add 'var map;' to the top of the js file, and the error is fixed.
 
- so this mod is checking the "geo_ip mod" data as from which IP-address the user has signed up?
- I do not see any usernames in your screenshot- does it show the username for each pin on the map?
 
I had solve this error, but pm'd him the fix- I guess I should have posted it here sorry ;(

http://screensnapr.com/v/vQdVeZ.png

Code:
colors=["green","orange","white","red"];
var map;
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(4);
        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(4)
    }
}
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("usa");
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])
});

Okay, broke down the JS, figured out the Issue, the Map varible is not properly declared outside of the document on load, and functions. If anyone else is getting an error in Internet Explorer, just add 'var map;' to the top of the js file, and the error is fixed.
 
Very minor update... the only thing that 1.0.2 changes is the link in the navigation is a sub-section of the Member's area, rather than having it's own primary tab (when the first version came out, XenForo didn't have the ability to add to existing sections).
 
Thanks for the add-on... Looks awesome! Might I ask, there was a mapping addon on VB with the ability for users to submit points on the map and comments.
I think it was "graveyarded" back in VB3.5 or so....
I could REALLY use something like that!
Any plans for this mapping utility going forward?
I know this is an old post from page 1 of this thread but Cory, I still have the original copy of the addon that you are talking about and still use it with my XF install however it has to have vb 3.8 installed in a folder off XF and be somewhat twisted to look incorporated into XF by way of an iFrame and Guest permissions.

If you want a copy of it just PC me with an email address and I will send it to you.

It is a very small mod of just 1 php page so I, and along with others it seems, would be grateful if this could be ported to XF if anyone is interested or this mod can be made so users could either view members as it is now or click a button for "points of interests" that a user can add on a Google Map. In fact it would be great if you could have Members, Points of Interest 1, Points of Interest 2, Points of Interest 3 etc
 
Status
Not open for further replies.
Back
Top Bottom