[ABD] Phoogle (Google) Map

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
User avatar
BassFace
Registered User
Posts: 783
Joined: Tue Dec 02, 2003 7:10 pm
Location: Aurora, CO

IE Malfunction! FIXED

Post by BassFace »

MALFUNCTION!!! FIXED

Well, there seems to be an issue with v0.2.0 and IE. It's working fine in Firefox. Seems page 1 of the map is broken - markers and sidebar won't work. I'll try to fix this over the weekend, but it may be like this for a few days.
Stupid IE! :twisted:

FIXED
Map is working again.
There was a member with no map coordinates that was breaking the markers. Fixed that, but I'll need to address how/why that was able to happen.
User avatar
viktorados
Registered User
Posts: 43
Joined: Wed Jan 02, 2008 11:43 pm

Re: Demo Board running v0.2.0

Post by viktorados »

BassFace wrote:Notable changes:
  • Phoogle icon shows in the Forum threads poster's profile (to the left -->) if the message author/poster has a map point set.
  • Map comment bubble and event description bubble now accepts BBCode and smileys! (expand BassFace's bubble to see an example) These will respect the settings you have for the users' "Signature" field (e.g Allow Flash, Allow URLs).
  • Polylines get drawn between you and users or events when you click their marker or sidebar link (if you have a map point set).
Wow GREAT!!!

With every new version Phoogle Map gets better and better!

Thanks! :D
User avatar
BassFace
Registered User
Posts: 783
Joined: Tue Dec 02, 2003 7:10 pm
Location: Aurora, CO

Re: [BETA] Phoogle (Google) Map

Post by BassFace »

I just found this out today. I think some of you will be very happy about it! :D

http://code.google.com/support/bin/answ ... opic=12267

To use this on your main map, change the code in phoogle.php (approx. line 950)

from (partial line):

Code: Select all

?file=api&v=2&key='
to (e.g. for German)

Code: Select all

?file=api&v=2&hl=de&key='
saaiberke
Registered User
Posts: 1126
Joined: Wed Jul 20, 2005 8:13 am
Location: Gent/Belgium
Contact:

Re: [BETA] Phoogle (Google) Map

Post by saaiberke »

Bassface,

That is a great solution :) I like it.

I installed this latest version in my board and from the moment I edit or add an event, the google map doesn't show up anymore in the main Phoogle map screen. In the UCP there doesn't seem to be a problem, neither in the ACP.

Any idea how this is possible? Or maybe I better wait the new release?

Grtz,

Nic
User avatar
BassFace
Registered User
Posts: 783
Joined: Tue Dec 02, 2003 7:10 pm
Location: Aurora, CO

Re: [BETA] Phoogle (Google) Map

Post by BassFace »

saaiberke wrote:Bassface,

That is a great solution :) I like it.

I installed this latest version in my board and from the moment I edit or add an event, the google map doesn't show up anymore in the main Phoogle map screen. In the UCP there doesn't seem to be a problem, neither in the ACP.

Any idea how this is possible? Or maybe I better wait the new release?

Grtz,

Nic
There is no shadow image dimensions set for the event marker image:
"images/phoogle/events/dipro.png";
If you can't see the whole Event Marker table in the ACP, collapse the left menu. :D
saaiberke
Registered User
Posts: 1126
Joined: Wed Jul 20, 2005 8:13 am
Location: Gent/Belgium
Contact:

Re: [BETA] Phoogle (Google) Map

Post by saaiberke »

Oh, that was stupid of me.... :oops: Thank you very much bassface! ;)

Grtz,

Nic
issjut
Registered User
Posts: 113
Joined: Tue Oct 09, 2007 5:02 am
Location: Berlin, Germany

Re: [BETA] Phoogle (Google) Map

Post by issjut »

Hello,

The mod works great, but there is a little problem...
If "USER XY" set his marker on the map the map doesn't show up anymore :(
All other users can set markers and everything is OK.

USER XY is a normal user without any special characteristics
He is a moderator, but other mods can add the markers to the map without problems!

Any idears?


Next question ;-).....

My board only used by people from Berlin (Germany). Is it possible to limit the shown Area of map for this town only... i want that users can't scroll ore move outside of this area...

Thx for Help
sorry for my bad English ;-)
User avatar
BassFace
Registered User
Posts: 783
Joined: Tue Dec 02, 2003 7:10 pm
Location: Aurora, CO

Re: [BETA] Phoogle (Google) Map

Post by BassFace »

issjut wrote:Hello,

The mod works great, but there is a little problem...
If "USER XY" set his marker on the map the map doesn't show up anymore :(
All other users can set markers and everything is OK.

USER XY is a normal user without any special characteristics
He is a moderator, but other mods can add the markers to the map without problems!

Any idears?


Next question ;-).....

My board only used by people from Berlin (Germany). Is it possible to limit the shown Area of map for this town only... i want that users can't scroll ore move outside of this area...

Thx for Help
Can you post the source code of the broken map page?

I'll see if there's a way to change the code to make the map 'fixed' or not moveable.
anglershaven
Registered User
Posts: 35
Joined: Thu Jul 12, 2007 7:35 pm

Re: [BETA] Phoogle (Google) Map

Post by anglershaven »

Brilliant Brilliant Brilliant MOD. My board has a lot of MODS installed and it works gr8 with all of them. I cant wait for a release where the Subsilver2 style will be supported, as this is default by override for my forum.

I am no coder but played around a bit and got it to display all links as needed in Subsilver2. The only problem is that if you access your settings via UCP and move the icon to your current location it does not update it, but defaults back to (42, 3) LOL like I said I am no coder and will wait patiently for a subsilver2 tweak.

Once again Respect BassFace for this brilliant MOD
Jume
Registered User
Posts: 198
Joined: Tue Jun 22, 2004 9:29 am

Re: [BETA] Phoogle (Google) Map

Post by Jume »

BassFace wrote:I do the pagination so you can limit how many users get displayed at one time. If you have 1,000 users with map points, the map would take forever to load if they were all displayed at once. (I know, I've tested it like that before. :geek: )
Is it decided randomly which users are set on p. 1 and which on p. 2 (and so on) ... ?

Wouldn't it be cooler if the admin could set the way points are situated on the various pages? For example, filtering by country would be nice.

This definitely will become a great mod. Thanks!
issjut
Registered User
Posts: 113
Joined: Tue Oct 09, 2007 5:02 am
Location: Berlin, Germany

Re: [BETA] Phoogle (Google) Map

Post by issjut »

BassFace wrote:
Can you post the source code of the broken map page?
Ok, here is the source code without header and footer information....hope doesn't need it ;-)
Name of the User is "dienina". Without her marker everything works fine.

Code: Select all

</table><script src="http://maps.google.com/maps?file=api&v=2.x&key=ABQIAAAA7vLeHADhUAYfzg9RTtp8GhRCUcbDoolOOMSD6QdI2KRimAn2IhQMQxKC84MYHVfE1JBqR3lBqPh0xA" type="text/javascript"></script>

<script src="includes/phoogle/extmaptypecontrol.js" type="text/javascript"></script>
<script type="text/javascript">
var sbmarkers = [];
function myclick(i)
{
	GEvent.trigger(sbmarkers[i], "click");
}
function toggleGroup(whichType) 
{
	for (var i = 0; i < sbmarkers.length; i++) 
	{
		var marker = sbmarkers[i];
		if(sbmarkers[i].type == whichType)
		{
			if (marker.isHidden()) 
			{
				marker.show();
			} 
			else 
			{
				marker.hide();
			}
		}
	}
}
function showmap()
	{
	//<![CDATA[
	if (GBrowserIsCompatible())
	{
	var map = new GMap2(document.getElementById("map_canvas"));
	map.getContainer().style.overflow="hidden";
function wheelevent(e)
{
	if (!e)
	{
		e = window.event
	}
	if (e.preventDefault)
	{
		e.preventDefault()
	}
	e.returnValue = false;
	}
GEvent.addDomListener(map.getContainer(), "DOMMouseScroll", wheelevent);
map.getContainer().onmousewheel = wheelevent;
map.enableDoubleClickZoom();
map.enableContinuousZoom();
map.enableScrollWheelZoom();
map.enableGoogleBar();
GEvent.addListener(map, "moveend", function()
		{ 
		var center = map.getCenter();
		var zoomLevel = map.getZoom();
		document.phoogle_map.map_center.value = center.toString();
		document.phoogle_map.init_zoom.value = zoomLevel.toString();
}); // end of addListener inner function 

// init a var to collect points to auto-fit map to markers
var bounds = new GLatLngBounds();
map.setCenter(new GLatLng(52.51454943590012, 13.396453857421875), 10, G_NORMAL_MAP);
}
map.addMapType(G_PHYSICAL_MAP);
map.addControl(new GMapTypeControl());

		var icon1 = new GIcon();
		icon1.image = "images/phoogle/markers/admin.png";
		icon1.shadow = "images/phoogle/markers/phoogle_shadow.png";
		icon1.iconSize = new GSize(15, 23);
		icon1.shadowSize = new GSize(35, 23);
		icon1.iconAnchor = new GPoint(7, 23);
		icon1.infoWindowAnchor = new GPoint(5, 1);

		var icon2 = new GIcon();
		icon2.image = "images/phoogle/markers/moderator.png";
		icon2.shadow = "images/phoogle/markers/phoogle_shadow.png";
		icon2.iconSize = new GSize(15, 23);
		icon2.shadowSize = new GSize(35, 23);
		icon2.iconAnchor = new GPoint(7, 23);
		icon2.infoWindowAnchor = new GPoint(5, 1);

		var icon3 = new GIcon();
		icon3.image = "images/phoogle/markers/wink.png";
		icon3.shadow = "images/phoogle/markers/phoogle_shadow.png";
		icon3.iconSize = new GSize(15, 23);
		icon3.shadowSize = new GSize(35, 23);
		icon3.iconAnchor = new GPoint(7, 23);
		icon3.infoWindowAnchor = new GPoint(5, 1);

		var icon4 = new GIcon();
		icon4.image = "images/phoogle/markers/eek.png";
		icon4.shadow = "images/phoogle/markers/phoogle_shadow.png";
		icon4.iconSize = new GSize(15, 23);
		icon4.shadowSize = new GSize(35, 23);
		icon4.iconAnchor = new GPoint(7, 23);
		icon4.infoWindowAnchor = new GPoint(5, 1);

		var icon5 = new GIcon();
		icon5.image = "images/phoogle/markers/evil.png";
		icon5.shadow = "images/phoogle/markers/phoogle_shadow.png";
		icon5.iconSize = new GSize(15, 23);
		icon5.shadowSize = new GSize(35, 23);
		icon5.iconAnchor = new GPoint(7, 23);
		icon5.infoWindowAnchor = new GPoint(5, 1);

		var icon6 = new GIcon();
		icon6.image = "images/phoogle/markers/twisted.png";
		icon6.shadow = "images/phoogle/markers/phoogle_shadow.png";
		icon6.iconSize = new GSize(15, 23);
		icon6.shadowSize = new GSize(35, 23);
		icon6.iconAnchor = new GPoint(7, 23);
		icon6.infoWindowAnchor = new GPoint(5, 1);

		var icon7 = new GIcon();
		icon7.image = "images/phoogle/markers/surprised.png";
		icon7.shadow = "images/phoogle/markers/phoogle_shadow.png";
		icon7.iconSize = new GSize(15, 23);
		icon7.shadowSize = new GSize(35, 23);
		icon7.iconAnchor = new GPoint(7, 23);
		icon7.infoWindowAnchor = new GPoint(5, 1);

		var icon8 = new GIcon();
		icon8.image = "images/phoogle/markers/geek.png";
		icon8.shadow = "images/phoogle/markers/phoogle_shadow.png";
		icon8.iconSize = new GSize(15, 23);
		icon8.shadowSize = new GSize(35, 23);
		icon8.iconAnchor = new GPoint(7, 23);
		icon8.infoWindowAnchor = new GPoint(5, 1);

		var icon9 = new GIcon();
		icon9.image = "images/phoogle/markers/ubergeek.png";
		icon9.shadow = "images/phoogle/markers/phoogle_shadow.png";
		icon9.iconSize = new GSize(15, 23);
		icon9.shadowSize = new GSize(35, 23);
		icon9.iconAnchor = new GPoint(7, 23);
		icon9.infoWindowAnchor = new GPoint(5, 1);

		var icon10 = new GIcon();
		icon10.image = "images/phoogle/markers/razz.png";
		icon10.shadow = "images/phoogle/markers/phoogle_shadow.png";
		icon10.iconSize = new GSize(15, 23);
		icon10.shadowSize = new GSize(35, 23);
		icon10.iconAnchor = new GPoint(7, 23);
		icon10.infoWindowAnchor = new GPoint(5, 1);

		var icon11 = new GIcon();
		icon11.image = "images/phoogle/markers/smiley.png";
		icon11.shadow = "images/phoogle/markers/phoogle_shadow.png";
		icon11.iconSize = new GSize(15, 23);
		icon11.shadowSize = new GSize(35, 23);
		icon11.iconAnchor = new GPoint(7, 23);
		icon11.infoWindowAnchor = new GPoint(5, 1);

		var icon12 = new GIcon();
		icon12.image = "images/phoogle/markers/cool.png";
		icon12.shadow = "images/phoogle/markers/phoogle_shadow.png";
		icon12.iconSize = new GSize(15, 23);
		icon12.shadowSize = new GSize(35, 23);
		icon12.iconAnchor = new GPoint(7, 23);
		icon12.infoWindowAnchor = new GPoint(5, 1);

	var point0 = new GLatLng(52.568199238285445, 13.322725296020508);
	var options = 
		{
		icon:icon6,
		title:"dienina"
		};
	var marker0 = new GMarker(point0, options);
	marker0.type = "user";
	GEvent.addListener(marker0, "click", function() {
		map.savePosition();
	var polyOptions = {geodesic:true, clickable:false};
			var polyline_shadow = new GPolyline([point6, point0], "#000000", 3, .6, polyOptions);
			var polyline = new GPolyline([point6, point0], "#FFFF00", 2, 1, polyOptions);
			map.addOverlay(polyline_shadow);
			map.addOverlay(polyline);
		var maxContent = "<br/><img src=\"./download/file.php?avatar=102_1200926911.jpg\" width=\"41\" height=\"80\" alt=\"Benutzeravatar\" /><br/><dl class=\"details\" style=\"width: 80%;\"><dt>E-Mail-Adresse:</dt><dd><a href=\"mailto:j.wannicke1@gmx.de\">E-Mail dienina</a></dd><dt>WLM:</dt><dd><a href=\"./memberlist.php?mode=contact&action=msnm&u=102\" onclick=\"popup(this.href, 550, 320); return false;\">WLM-Nachricht senden</a></dd><dt>Website:</dt><dd><a href=\"http://www.sister1985.de.vu\">http://www.sister1985.de.vu</a></dd><br/><br/><dt>Wohnort:</dt><dd>Reinickendorf</dd><dt>Interessen:</dt><dd>unternehmungslustig,
computer, männer
familie (meine süßen neffen), im bett gammeln, meine haare :-P und fitness</dd><br/><label>Kommentar</label><br/><br/></dl>";
		var maxTitle = "<b>dienina</b>";	
		var dist = point6.distanceFrom(point0);
		var distance = (dist/1000);
		var distance_text = "<div>dienina ist " + formatNumber(distance,2,',','.','','','-','') + "kms von Dir entfernt</div>";
		marker0.openInfoWindowHtml("<div><b>dienina</b></div><br/><div><a onclick=\"openpopup(this.href); return false\" href=\"./memberlist.php?mode=viewprofile&u=102\">Profil</a>&nbsp;&bull;&nbsp;<a href=\"ucp.php?i=pm&mode=compose&u=102\">Private Nachricht senden</a></div><div><a href=\"./ucp.php?i=zebra&add=dienina\">Freund hinzuf&uuml;gen</a>&nbsp;&bull;&nbsp;<a href=\"./ucp.php?i=zebra&mode=foes&add=dienina\">User ignorieren</a></div></div><br />" + distance_text,	
			{
				maxContent: maxContent,
		 		maxTitle: maxTitle
			} );
		
		var iw = map.getInfoWindow();
		GEvent.addListener(iw, "closeclick", function() 
		{
			map.returnToSavedPosition();
		});
		GEvent.addListener(marker0, "infowindowclose", function() 
		{	
	 		map.removeOverlay(polyline_shadow);
			map.removeOverlay(polyline);
		});
		GEvent.addListener(iw, "maximizeclick", function() {
			map.disableGoogleBar();});
		GEvent.addListener(iw, "restoreclick", function() {
			map.enableGoogleBar();});
		GEvent.addListener(iw, "closeclick", function() {
			map.enableGoogleBar();});
	});
	sbmarkers[0] = marker0;
	map.addOverlay(marker0);
	bounds.extend(point0);


	var point1 = new GLatLng(52.52332372377514, 13.412590026855469);
	var options = 
		{
		icon:icon4,
		title:"mic74"
		};
	var marker1 = new GMarker(point1, options);
	marker1.type = "user";
	GEvent.addListener(marker1, "click", function() {
		map.savePosition();
	var polyOptions = {geodesic:true, clickable:false};
			var polyline_shadow = new GPolyline([point6, point1], "#000000", 3, .6, polyOptions);
			var polyline = new GPolyline([point6, point1], "#FFFF00", 2, 1, polyOptions);
			map.addOverlay(polyline_shadow);
			map.addOverlay(polyline);
		var maxContent = "<br/><img src=\"./download/file.php?avatar=62_1192525428.jpg\" width=\"53\" height=\"80\" alt=\"Benutzeravatar\" /><br/><dl class=\"details\" style=\"width: 80%;\"><dt>E-Mail-Adresse:</dt><dd><a href=\"mailto:michaeltag@arcor.de\">E-Mail mic74</a></dd><dt>WLM:</dt><dd><a href=\"./memberlist.php?mode=contact&action=msnm&u=62\" onclick=\"popup(this.href, 550, 320); return false;\">WLM-Nachricht senden</a></dd><dt>Website:</dt><dd><a href=\"http://www.gate-promotion.com\">http://www.gate-promotion.com</a></dd><br/><br/><dt>Wohnort:</dt><dd>10559 Berlin-Tiergarten</dd><dt>Interessen:</dt><dd>Family ;), I-Net, Poker, Darts</dd><br/><label>Kommentar</label><br/><br/></dl>";
		var maxTitle = "<b>mic74</b>";	
		var dist = point6.distanceFrom(point1);
		var distance = (dist/1000);
		var distance_text = "<div>mic74 ist " + formatNumber(distance,2,',','.','','','-','') + "kms von Dir entfernt</div>";
		marker1.openInfoWindowHtml("<div><b>mic74</b></div><br/><div><a onclick=\"openpopup(this.href); return false\" href=\"./memberlist.php?mode=viewprofile&u=62\">Profil</a>&nbsp;&bull;&nbsp;<a href=\"ucp.php?i=pm&mode=compose&u=62\">Private Nachricht senden</a></div><div><a href=\"./ucp.php?i=zebra&add=mic74\">Freund hinzuf&uuml;gen</a>&nbsp;&bull;&nbsp;<a href=\"./ucp.php?i=zebra&mode=foes&add=mic74\">User ignorieren</a></div></div><br />" + distance_text,	
			{
				maxContent: maxContent,
		 		maxTitle: maxTitle
			} );
		
		var iw = map.getInfoWindow();
		GEvent.addListener(iw, "closeclick", function() 
		{
			map.returnToSavedPosition();
		});
		GEvent.addListener(marker1, "infowindowclose", function() 
		{	
	 		map.removeOverlay(polyline_shadow);
			map.removeOverlay(polyline);
		});
		GEvent.addListener(iw, "maximizeclick", function() {
			map.disableGoogleBar();});
		GEvent.addListener(iw, "restoreclick", function() {
			map.enableGoogleBar();});
		GEvent.addListener(iw, "closeclick", function() {
			map.enableGoogleBar();});
	});
	sbmarkers[1] = marker1;
	map.addOverlay(marker1);
	bounds.extend(point1);


	var point2 = new GLatLng(52.60273476545375, 13.356285095214844);
	var options = 
		{
		icon:icon12,
		title:"PlayerUmmer"
		};
	var marker2 = new GMarker(point2, options);
	marker2.type = "user";
	GEvent.addListener(marker2, "click", function() {
		map.savePosition();
	var polyOptions = {geodesic:true, clickable:false};
			var polyline_shadow = new GPolyline([point6, point2], "#000000", 3, .6, polyOptions);
			var polyline = new GPolyline([point6, point2], "#FFFF00", 2, 1, polyOptions);
			map.addOverlay(polyline_shadow);
			map.addOverlay(polyline);
		var maxContent = "<br/><img src=\"./download/file.php?avatar=85_1192792957.jpg\" width=\"53\" height=\"80\" alt=\"Benutzeravatar\" /><br/><dl class=\"details\" style=\"width: 80%;\"><dt>E-Mail-Adresse:</dt><dd><a href=\"mailto:playerummer88@hotmail.com\">E-Mail PlayerUmmer</a></dd><dt>WLM:</dt><dd><a href=\"./memberlist.php?mode=contact&action=msnm&u=85\" onclick=\"popup(this.href, 550, 320); return false;\">WLM-Nachricht senden</a></dd><br/><br/><dt>Interessen:</dt><dd>Fussball und alles mögliche!!</dd><br/><label>Kommentar</label><br/><br/>keine Ahnung</dl>";
		var maxTitle = "<b>PlayerUmmer</b>";	
		var dist = point6.distanceFrom(point2);
		var distance = (dist/1000);
		var distance_text = "<div>PlayerUmmer ist " + formatNumber(distance,2,',','.','','','-','') + "kms von Dir entfernt</div>";
		marker2.openInfoWindowHtml("<div><b>PlayerUmmer</b></div><br/><div><a onclick=\"openpopup(this.href); return false\" href=\"./memberlist.php?mode=viewprofile&u=85\">Profil</a>&nbsp;&bull;&nbsp;<a href=\"ucp.php?i=pm&mode=compose&u=85\">Private Nachricht senden</a></div><div><a href=\"./ucp.php?i=zebra&add=PlayerUmmer\">Freund hinzuf&uuml;gen</a>&nbsp;&bull;&nbsp;<a href=\"./ucp.php?i=zebra&mode=foes&add=PlayerUmmer\">User ignorieren</a></div></div><br />" + distance_text,	
			{
				maxContent: maxContent,
		 		maxTitle: maxTitle
			} );
		
		var iw = map.getInfoWindow();
		GEvent.addListener(iw, "closeclick", function() 
		{
			map.returnToSavedPosition();
		});
		GEvent.addListener(marker2, "infowindowclose", function() 
		{	
	 		map.removeOverlay(polyline_shadow);
			map.removeOverlay(polyline);
		});
		GEvent.addListener(iw, "maximizeclick", function() {
			map.disableGoogleBar();});
		GEvent.addListener(iw, "restoreclick", function() {
			map.enableGoogleBar();});
		GEvent.addListener(iw, "closeclick", function() {
			map.enableGoogleBar();});
	});
	sbmarkers[2] = marker2;
	map.addOverlay(marker2);
	bounds.extend(point2);


	var point3 = new GLatLng(52.415246754240094, 13.402719497680664);
	var options = 
		{
		icon:icon3,
		title:"RyoBerlin"
		};
	var marker3 = new GMarker(point3, options);
	marker3.type = "admin";
	GEvent.addListener(marker3, "click", function() {
		map.savePosition();
	var polyOptions = {geodesic:true, clickable:false};
			var polyline_shadow = new GPolyline([point6, point3], "#000000", 3, .6, polyOptions);
			var polyline = new GPolyline([point6, point3], "#FFFF00", 2, 1, polyOptions);
			map.addOverlay(polyline_shadow);
			map.addOverlay(polyline);
		var maxContent = "<br/><img src=\"./download/file.php?avatar=54_1189723459.jpg\" width=\"80\" height=\"80\" alt=\"Benutzeravatar\" /><br/><dl class=\"details\" style=\"width: 80%;\"><dt>E-Mail-Adresse:</dt><dd><a href=\"mailto:ryoberlin@talkberlin.de\">E-Mail RyoBerlin</a></dd><dt>WLM:</dt><dd><a href=\"./memberlist.php?mode=contact&action=msnm&u=54\" onclick=\"popup(this.href, 550, 320); return false;\">WLM-Nachricht senden</a></dd><dt>ICQ:</dt><dd><a href=\"http://www.icq.com/people/webmsg.php?to=19787665\" onclick=\"popup(this.href, 550, 320); return false;\">ICQ-Nachricht senden</a></dd><dt>Website:</dt><dd><a href=\"http://www.ISFotodesign.de\">http://www.ISFotodesign.de</a></dd><br/><br/><dt>Wohnort:</dt><dd>Tempelhof-Schöneberg</dd><dt>Interessen:</dt><dd>Anime, Kampfkünste (Chen Taijiquan), Computer, Internet, Joggen</dd><br/><label>Kommentar</label><br/><br/></dl>";
		var maxTitle = "<b>RyoBerlin</b>";	
		var dist = point6.distanceFrom(point3);
		var distance = (dist/1000);
		var distance_text = "<div>RyoBerlin ist " + formatNumber(distance,2,',','.','','','-','') + "kms von Dir entfernt</div>";
		marker3.openInfoWindowHtml("<div><b>RyoBerlin</b></div><br/><div><a onclick=\"openpopup(this.href); return false\" href=\"./memberlist.php?mode=viewprofile&u=54\">Profil</a>&nbsp;&bull;&nbsp;<a href=\"ucp.php?i=pm&mode=compose&u=54\">Private Nachricht senden</a></div><div><a href=\"./ucp.php?i=zebra&add=RyoBerlin\">Freund hinzuf&uuml;gen</a>&nbsp;&bull;&nbsp;<a href=\"./ucp.php?i=zebra&mode=foes&add=RyoBerlin\">User ignorieren</a></div></div><br />" + distance_text,	
			{
				maxContent: maxContent,
		 		maxTitle: maxTitle
			} );
		
		var iw = map.getInfoWindow();
		GEvent.addListener(iw, "closeclick", function() 
		{
			map.returnToSavedPosition();
		});
		GEvent.addListener(marker3, "infowindowclose", function() 
		{	
	 		map.removeOverlay(polyline_shadow);
			map.removeOverlay(polyline);
		});
		GEvent.addListener(iw, "maximizeclick", function() {
			map.disableGoogleBar();});
		GEvent.addListener(iw, "restoreclick", function() {
			map.enableGoogleBar();});
		GEvent.addListener(iw, "closeclick", function() {
			map.enableGoogleBar();});
	});
	sbmarkers[3] = marker3;
	map.addOverlay(marker3);
	bounds.extend(point3);


	var point4 = new GLatLng(52.60622721774922, 13.350963592529297);
	var options = 
		{
		icon:icon12,
		title:"Stullen_andi"
		};
	var marker4 = new GMarker(point4, options);
	marker4.type = "user";
	GEvent.addListener(marker4, "click", function() {
		map.savePosition();
	var polyOptions = {geodesic:true, clickable:false};
			var polyline_shadow = new GPolyline([point6, point4], "#000000", 3, .6, polyOptions);
			var polyline = new GPolyline([point6, point4], "#FFFF00", 2, 1, polyOptions);
			map.addOverlay(polyline_shadow);
			map.addOverlay(polyline);
		var maxContent = "<br/><img src=\"./download/file.php?avatar=95_1202599991.jpg\" width=\"80\" height=\"53\" alt=\"Benutzeravatar\" /><br/><dl class=\"details\" style=\"width: 80%;\"><dt>E-Mail-Adresse:</dt><dd><a href=\"mailto:playermadel@hotmail.de\">E-Mail Stullen_andi</a></dd><dt>WLM:</dt><dd><a href=\"./memberlist.php?mode=contact&action=msnm&u=95\" onclick=\"popup(this.href, 550, 320); return false;\">WLM-Nachricht senden</a></dd><br/><br/><dt>Wohnort:</dt><dd>Reinickendorf</dd><dt>Interessen:</dt><dd>Computer, Freunde, Party....</dd><br/><label>Kommentar</label><br/><br/></dl>";
		var maxTitle = "<b>Stullen_andi</b>";	
		var dist = point6.distanceFrom(point4);
		var distance = (dist/1000);
		var distance_text = "<div>Stullen_andi ist " + formatNumber(distance,2,',','.','','','-','') + "kms von Dir entfernt</div>";
		marker4.openInfoWindowHtml("<div><b>Stullen_andi</b></div><br/><div><a onclick=\"openpopup(this.href); return false\" href=\"./memberlist.php?mode=viewprofile&u=95\">Profil</a>&nbsp;&bull;&nbsp;<a href=\"ucp.php?i=pm&mode=compose&u=95\">Private Nachricht senden</a></div><div><a href=\"./ucp.php?i=zebra&add=Stullen_andi\">Freund hinzuf&uuml;gen</a>&nbsp;&bull;&nbsp;<a href=\"./ucp.php?i=zebra&mode=foes&add=Stullen_andi\">User ignorieren</a></div></div><br />" + distance_text,	
			{
				maxContent: maxContent,
		 		maxTitle: maxTitle
			} );
		
		var iw = map.getInfoWindow();
		GEvent.addListener(iw, "closeclick", function() 
		{
			map.returnToSavedPosition();
		});
		GEvent.addListener(marker4, "infowindowclose", function() 
		{	
	 		map.removeOverlay(polyline_shadow);
			map.removeOverlay(polyline);
		});
		GEvent.addListener(iw, "maximizeclick", function() {
			map.disableGoogleBar();});
		GEvent.addListener(iw, "restoreclick", function() {
			map.enableGoogleBar();});
		GEvent.addListener(iw, "closeclick", function() {
			map.enableGoogleBar();});
	});
	sbmarkers[4] = marker4;
	map.addOverlay(marker4);
	bounds.extend(point4);


	var point5 = new GLatLng(52.60466346756968, 13.364439010620117);
	var options = 
		{
		icon:icon6,
		title:"warjut"
		};
	var marker5 = new GMarker(point5, options);
	marker5.type = "user";
	GEvent.addListener(marker5, "click", function() {
		map.savePosition();
	var polyOptions = {geodesic:true, clickable:false};
			var polyline_shadow = new GPolyline([point6, point5], "#000000", 3, .6, polyOptions);
			var polyline = new GPolyline([point6, point5], "#FFFF00", 2, 1, polyOptions);
			map.addOverlay(polyline_shadow);
			map.addOverlay(polyline);
		var maxContent = "<br/><img src=\"./download/file.php?avatar=146_1201430734.jpg\" width=\"61\" height=\"80\" alt=\"Benutzeravatar\" /><br/><dl class=\"details\" style=\"width: 80%;\"><dt>E-Mail-Adresse:</dt><dd><a href=\"mailto:warjut@gmx.de\">E-Mail warjut</a></dd><br/><br/><dt>Wohnort:</dt><dd>Reinickendorf</dd><br/><label>Kommentar</label><br/><br/>F??r weibliche Besucher \nMo.-Fr. 14-22 Uhr\nSa. und So. mit Termin :)</dl>";
		var maxTitle = "<b>warjut</b>";	
		var dist = point6.distanceFrom(point5);
		var distance = (dist/1000);
		var distance_text = "<div>warjut ist " + formatNumber(distance,2,',','.','','','-','') + "kms von Dir entfernt</div>";
		marker5.openInfoWindowHtml("<div><b>warjut</b></div><br/><div><a onclick=\"openpopup(this.href); return false\" href=\"./memberlist.php?mode=viewprofile&u=146\">Profil</a>&nbsp;&bull;&nbsp;<a href=\"ucp.php?i=pm&mode=compose&u=146\">Private Nachricht senden</a></div><div><a href=\"./ucp.php?i=zebra&add=warjut\">Freund hinzuf&uuml;gen</a>&nbsp;&bull;&nbsp;<a href=\"./ucp.php?i=zebra&mode=foes&add=warjut\">User ignorieren</a></div></div><br />" + distance_text,	
			{
				maxContent: maxContent,
		 		maxTitle: maxTitle
			} );
		
		var iw = map.getInfoWindow();
		GEvent.addListener(iw, "closeclick", function() 
		{
			map.returnToSavedPosition();
		});
		GEvent.addListener(marker5, "infowindowclose", function() 
		{	
	 		map.removeOverlay(polyline_shadow);
			map.removeOverlay(polyline);
		});
		GEvent.addListener(iw, "maximizeclick", function() {
			map.disableGoogleBar();});
		GEvent.addListener(iw, "restoreclick", function() {
			map.enableGoogleBar();});
		GEvent.addListener(iw, "closeclick", function() {
			map.enableGoogleBar();});
	});
	sbmarkers[5] = marker5;
	map.addOverlay(marker5);
	bounds.extend(point5);


	var point6 = new GLatLng(52.5972088243376, 13.33439826965332);
	var options = 
		{
		icon:icon4,
		title:"issjut"
		};
	var marker6 = new GMarker(point6, options);
	marker6.type = "admin";
	GEvent.addListener(marker6, "click", function() {
		map.savePosition();
	var polyOptions = {geodesic:true, clickable:false};
			var polyline_shadow = new GPolyline([point6, point6], "#000000", 3, .6, polyOptions);
			var polyline = new GPolyline([point6, point6], "#FFFF00", 2, 1, polyOptions);
			map.addOverlay(polyline_shadow);
			map.addOverlay(polyline);
		var maxContent = "<br/><img src=\"./download/file.php?avatar=53_1201553653.jpg\" width=\"80\" height=\"80\" alt=\"Benutzeravatar\" /><br/><dl class=\"details\" style=\"width: 80%;\"><dt>E-Mail-Adresse:</dt><dd><a href=\"mailto:issjut@talkberlin.de\">E-Mail issjut</a></dd><dt>WLM:</dt><dd><a href=\"./memberlist.php?mode=contact&action=msnm&u=53\" onclick=\"popup(this.href, 550, 320); return false;\">WLM-Nachricht senden</a></dd><dt>Website:</dt><dd><a href=\"http://issjut.funpic.de\">http://issjut.funpic.de</a></dd><br/><br/><dt>Wohnort:</dt><dd>Reinickendorf</dd><dt>Interessen:</dt><dd>Kino, DVD, Feiern, Natur, viel unternehmen....</dd><br/><label>Kommentar</label><br/><br/>Mein Block</dl>";
		var maxTitle = "<b>issjut</b>";	
		var dist = point6.distanceFrom(point6);
		var distance = (dist/1000);
		var distance_text = "<div>issjut ist " + formatNumber(distance,2,',','.','','','-','') + "kms von Dir entfernt</div>";
		marker6.openInfoWindowHtml("<div><b>issjut</b></div><br/><div><a onclick=\"openpopup(this.href); return false\" href=\"./memberlist.php?mode=viewprofile&u=53\">Profil</a>&nbsp;&bull;&nbsp;<a href=\"ucp.php?i=pm&mode=compose&u=53\">Private Nachricht senden</a></div><div><a href=\"./ucp.php?i=zebra&add=issjut\">Freund hinzuf&uuml;gen</a>&nbsp;&bull;&nbsp;<a href=\"./ucp.php?i=zebra&mode=foes&add=issjut\">User ignorieren</a></div></div><br />" + distance_text,	
			{
				maxContent: maxContent,
		 		maxTitle: maxTitle
			} );
		
		var iw = map.getInfoWindow();
		GEvent.addListener(iw, "closeclick", function() 
		{
			map.returnToSavedPosition();
		});
		GEvent.addListener(marker6, "infowindowclose", function() 
		{	
	 		map.removeOverlay(polyline_shadow);
			map.removeOverlay(polyline);
		});
		GEvent.addListener(iw, "maximizeclick", function() {
			map.disableGoogleBar();});
		GEvent.addListener(iw, "restoreclick", function() {
			map.enableGoogleBar();});
		GEvent.addListener(iw, "closeclick", function() {
			map.enableGoogleBar();});
	});
	sbmarkers[6] = marker6;
	map.addOverlay(marker6);
	bounds.extend(point6);


	//]]>

	}

	window.onload = showmap;
	window.onunload="GUnload();"
	</script>

<style>
#map_canvas 
{
	position: relative;
	height: 500px; 	
	width: 99%;
	border: 4px inset #03699C;
	vertical-align: middle;
	color: #000;
}
#userblock 
{
	position:relative;
	padding-left:5px;
	margin-bottom:10px;
	width:150px;
	height:150px;
	z-index:1;
	overflow: auto;
	background-color: #FFFFFF;
	border:inset #006699;
	text-decoration: none;
	vertical-align:top;
}
#userblock a { text-decoration:none;	}
#userblock a:hover { text-decoration:none; background:#DDD;	}
#eventblock 
{
	position:relative;
	padding-left:5px;
	margin-bottom:10px;
	width:150px;
	height:120px;
	z-index:1;
	overflow: auto;
	background-color: #FFFFFF;
	border:inset #006699;
	text-decoration: none;
	vertical-align:top;
}
#eventblock a { text-decoration:none;	}
#eventblock a:hover { text-decoration:none; background:#DDD;	}
</style>
<script language="javascript">
// number formatting function
// copyright Stephen Chapman 24th March 2006, 10th February 2007
// permission to use this function is granted provided
// that this copyright notice is retained intact

function formatNumber(num,dec,thou,pnt,curr1,curr2,n1,n2) {var x = Math.round(num * Math.pow(10,dec));if (x >= 0) n1=n2='';var y = (''+Math.abs(x)).split('');var z = y.length - dec; if (z<0) z--; for(var i = z; i < 0; i++) y.unshift('0');y.splice(z, 0, pnt); if(y[0] == pnt) y.unshift('0'); while (z > 3) {z-=3; y.splice(z,0,thou);}var r = curr1+n1+y.join('')+n2+curr2;return r;}
</script>
<body onLoad="showmap()" onUnload="GUnload()">

<form method="post" action="./phoogle.php?mode=everyone" name="phoogle_map">
<table border="0" align="center" cellpadding="10" cellspacing="0" width="99%">
  <tr>
    <td valign="top" class="panel">

	<div class="panel">Mitglieder auf der Karte&nbsp;(<a href="javascript:void(0);" alt="Total Members with Set Map Points" title="Total Members (with set map points)">7</a>&nbsp;Total)</div>
	<div id="userblock">
	<a href="phoogle.php?mode=everyone"><span>All Members</span></a><br /><a href="javascript:myclick(0)"><span>dienina</span></a><br /><a href="javascript:myclick(1)"><span>mic74</span></a><br /><a href="javascript:myclick(2)"><span>PlayerUmmer</span></a><br /><a href="javascript:myclick(3)"><span style="color:#CC0000">RyoBerlin</span></a><br /><a href="javascript:myclick(4)"><span>Stullen_andi</span></a><br /><a href="javascript:myclick(5)"><span>warjut</span></a><br /><a href="javascript:myclick(6)"><span style="color:#CC0000">issjut</span></a><br />	</div>

Seite <strong>1</strong> von <strong>1</strong>	<br><br>
    </td>
	<td class="panel">
		</td>
    <td class="panel">
	<div>

		<input type="text" value="20" name="show" class="inputbox medium"/>
		<input name="change_show" type="submit" class="input button2" id="change_show" value="Zeige" />
		</div>
  	<div id="user_search">
	<input name="user_search" type="text" class="inputbox medium" id="user_search" value="Finde ein Mitglied..." onFocus="this.select();" onBlur="if(this.value=='')this.value='Find a User...';" onClick="if(this.value=='Find a User...')this.value='';" />
  		<input type="submit" name="search" value="&nbsp;Los&nbsp;" class="input button2" />
	</div>
		<div class="clear">&nbsp;</div>
		<div class="panel"><br />

		Zeige:&nbsp;<br>
		<label>
			<input name="show_admin" type="checkbox" onClick="toggleGroup('admin');" checked />
			Administratoren</label><br>
		<label>
			<input name="show_moderator" type="checkbox" onClick="toggleGroup('moderator');" checked />
			Moderatoren</label><br>

		<label>
			<input name="show_user" type="checkbox" onClick="toggleGroup('user');" checked />
			Benutzer</label><br>
				</div>
		<div class="clear">&nbsp;</div>
		<!--<div><select name="group_select" id="group_select" onChange="location.href=this.value;">
						 <option selected="selected" disabled="disabled">Pick a Group</option><option value="./phoogle.php?mode=groups&group_id=2">Registered</option><option value="./phoogle.php?mode=groups&group_id=4">Global Moderators</option><option value="./phoogle.php?mode=groups&group_id=5">Administrators</option><option value="./phoogle.php?mode=groups&group_id=7">Forenmoderatoren</option><option value="./phoogle.php?mode=groups&group_id=8">Useradmins</option><option value="./phoogle.php?mode=groups&group_id=9">Fotografie</option><option value="./phoogle.php?mode=groups&group_id=10">Singles</option><option value="./phoogle.php?mode=groups&group_id=11">Nichtraucher</option><option value="./phoogle.php?mode=groups&group_id=12">Kraftsport</option><option value="./phoogle.php?mode=groups&group_id=13">Kampfkunst</option><option value="./phoogle.php?mode=groups&group_id=14">Radsport</option><option value="./phoogle.php?mode=groups&group_id=15">Laufsport</option><option value="./phoogle.php?mode=groups&group_id=16">Sport</option><option value="./phoogle.php?mode=groups&group_id=17">Computerecke</option><option value="./phoogle.php?mode=groups&group_id=18">Geprüfter User</option><option value="./phoogle.php?mode=groups&group_id=21">Musik</option><option value="./phoogle.php?mode=groups&group_id=23">Werbefrei</option><option value="./phoogle.php?mode=groups&group_id=24">Chatop</option><option value="./phoogle.php?mode=groups&group_id=26">Support</option></select>-->	
		</div>
		
		
	</td>
  </tr>

  <tr>
  	<td colspan="3" width="99%" rowspan="2" align="center" class="panel">
		<div id="message" style="color:#FF0000">&nbsp;</div>
		<!-- Phoogle Google Map -->      
	    <div id="map_canvas" style="width: 99%; height: 500px"></div>
		</td>
  </tr>	
  <tr>
	<td align="center" colspan="3">
		<fieldset>

			<input name="map_center" type="hidden" id="map_center" size="60" />
			<input name="init_zoom" type="hidden" id="message" size="60" />
		</fieldset>	</td>
  </tr>
  <tr>
    <td colspan="3" align="center"><br>
	  phpBB3 Phoogle Map MOD v0.1.0 by BassFace
	</td>
  </tr>

</table>
</form>

</div>
sorry for my bad English ;-)
User avatar
BassFace
Registered User
Posts: 783
Joined: Tue Dec 02, 2003 7:10 pm
Location: Aurora, CO

Re: [BETA] Phoogle (Google) Map

Post by BassFace »

issjut,
I'm not seeing anything in the code. Could you post a link or PM me a link so I could load the map and see it for myself? Thanks!
User avatar
BassFace
Registered User
Posts: 783
Joined: Tue Dec 02, 2003 7:10 pm
Location: Aurora, CO

Re: [BETA] Phoogle (Google) Map

Post by BassFace »

Jume wrote:Is it decided randomly which users are set on p. 1 and which on p. 2 (and so on) ... ?

Wouldn't it be cooler if the admin could set the way points are situated on the various pages? For example, filtering by country would be nice.

This definitely will become a great mod. Thanks!
Pagination is done alphabetically. I am trying to figure a way to do things based more on region e.g. show all users in a certain country. Stay tuned. :D
User avatar
BassFace
Registered User
Posts: 783
Joined: Tue Dec 02, 2003 7:10 pm
Location: Aurora, CO

Re: [BETA] Phoogle (Google) Map

Post by BassFace »

BassFace wrote:issjut,
I'm not seeing anything in the code. Could you post a link or PM me a link so I could load the map and see it for myself? Thanks!
Nevermind, I think I found it.
dienina's Interests entry have newlines in it which is breaking the javascript.

Change his Interessen from:

Code: Select all

unternehmungslustig,
    computer, männer
    familie (meine süßen neffen), im bett gammeln, meine haare :-P und fitness
to one line, like this:

Code: Select all

unternehmungslustig, computer, männer familie (meine süßen neffen), im bett gammeln, meine haare :-P und fitness
I'll change the code so this doesn't happen. :D
issjut
Registered User
Posts: 113
Joined: Tue Oct 09, 2007 5:02 am
Location: Berlin, Germany

Re: [BETA] Phoogle (Google) Map

Post by issjut »

BassFace wrote:
BassFace wrote:issjut,
I'm not seeing anything in the code. Could you post a link or PM me a link so I could load the map and see it for myself? Thanks!
Nevermind, I think I found it.
dienina's Interests entry have newlines in it which is breaking the javascript.
Yes, your right, that fixed it! Thx a lot

Waiting for new code ;-)
sorry for my bad English ;-)
Locked

Return to “[3.0.x] Abandoned MODs”