1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
|
<html>
<head>
<title>{$mybb->settings['bbname']} - {$foruminfo['name']} </title>
{$headerinclude}
{$rssdiscovery}
<script type="text/javascript">
lang.no_new_posts = "{$lang->no_new_posts}";
lang.click_mark_read = "{$lang->click_mark_read}";
</script>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/markerclusterer_packed.js"></script>
<script type="text/javascript">
var gmarkers = [];
var map = null;
var infowindow = new google.maps.InfoWindow();
var myLatlng = new google.maps.LatLng(0,0);
function createMarker(latlng,name,html,url) {
var contentString = html;
var marker = new google.maps.Marker({
position: latlng,
map: map,
title: name
});
marker.myname = name;
gmarkers.push(marker);
google.maps.event.addListener(marker, "click", function() {
window.location = url;
});
google.maps.event.addListener(marker, "rightclick", function() {
infowindow.setContent(contentString);
infowindow.open(map,marker);
});
}
function initialize() {
var myOptions = {
zoom: 2,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
map = new google.maps.Map(document.getElementById('map_threadlist'), myOptions);
google.maps.event.addListener(map, 'click', function() {
infowindow.close();
});
var markers = [{$threads}];
var mcOptions = {gridSize: 50, maxZoom: 15, title: 'Click to view all pins inside this cluster'};
for (i = 0; i < markers.length; i++) {
var point = new google.maps.LatLng(markers[i][0],markers[i][1]);
var name = markers[i][2];
var html = markers[i][3];
var url = markers[i][4];
var marker = createMarker(point,name,html,url);
}
var mc = new MarkerClusterer(map, gmarkers, mcOptions);
}
</script>
</head>
<body onload="initialize()">
{$header}
{$moderatedby}
{$usersbrowsing}
{$rules}
<br class="clear" />
<div class="float_left">
{$multipage}
</div>
<div class="float_right">
{$newthread}
</div>
<br class="clear" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead">
<div class="float_right"><strong>{$tplvars['mymarker']}</strong></div>
<strong>{$foruminfo['name']}</strong>
</td>
</tr>
<tr>
<td class="trow1">
<div id="map_threadlist" style="width:100%; height:500px"></div>
</td>
</tr>
</table>
<div class="float_left">
{$multipage}
</div>
<div class="float_right" style="margin-top: 4px;">
{$newthread}
</div>
<br style="clear: both;" />
<br />
<div class="float_right" style="text-align: right;">
{$inlinemod}
{$searchforum}
{$forumjump}
</div>
<br style="clear: both" />
<div class="smalltext" style="text-align: center;">
{$foruminfo['name']}<br />
Powered By <a href="http://mybbhacks.zingaburga.com/showthread.php?tid=288">XThreads</a> – <a href="http://mybbhacks.zingaburga.com">MyBB Hacks</a>
</div>
{$inline_edit_js}
{$footer}
</body>
</html>
|