Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Member Google Map
Member Google Map
0
Comments
Find:
header("Location:account.php?PostBackAction=ManageLocation&u=$u");
Change to:
header("Location:".GetUrl($Context->Configuration, 'account.php', '', '', '', '', 'u=$u&PostBackAction=ManageLocation'));
Find:
<form id="frmAccountMyBlogs" method="post" action="account.php" enctype="multipart/form-data">
Change to:
<form id="frmAccountMyBlogs" method="post" action="'.GetUrl($this->Context->Configuration, 'account.php','', '', '', '', '').'" enctype="multipart/form-data">
In default.php
Find:
$GoogleMap = '<li class="MemberLocation"><h2>Member Location</h2></li><li><div id="GoogleMapLocation"> </div></li><li><a href="extension.php?PostBackAction=GoogleMap">View all members</a></li>';
Change to:
$GoogleMap = '<li class="MemberLocation"><h2>Member Location</h2></li><li><div id="GoogleMapLocation"> </div></li><li><a href="'.GetUrl($Account->Context->Configuration, 'extension.php', '', '', '', '', 'PostBackAction=GoogleMap').'">View all members</a></li>';
Around line 224, Find:
<a href="account.php?u='.$u.'" class="CancelButton">Cancel and go back</a>
Change to:
<a href="'.GetUrl($this->Context->Configuration, 'account.php','','u',$u).'" class="CancelButton">Cancel and go back</a>
Around line 287, Find:
var marker = createMarker(point, \'<div style="width:200px; height:auto; text-align:left; color:#333;"><a style="font-weight:bold; color:#333" href="account.php?u='.$row[4]).'">'.addslashes($row[2]).'<\/a>';
Change to:
var marker = createMarker(point, \'<div style="width:200px; height:auto; text-align:left; color:#333;"><a style="font-weight:bold; color:#333" href="'.GetUrl($this->Context->Configuration, 'account.php','','u',$row[4]).'">'.addslashes($row[2]).'<\/a>';
Around line 153, Find:
<select name='RoleFilter' class='LargeSelect' onchange=\"document.location='".$Context->Configuration['WEB_ROOT']."extension.php?PostBackAction=GoogleMap&'+(this.options[this.selectedIndex].value > 0 ? 'RoleID='+this.options[this.selectedIndex].value : '');\">
Change to:
<select name='RoleFilter' class='LargeSelect' onchange=\"document.location='".GetUrl($Context->Configuration,"extension.php",'', '', '', '', 'PostBackAction=GoogleMap')."'+(this.options[this.selectedIndex].value > 0 ? '&RoleID='+this.options[this.selectedIndex].value : '');\">
i modified the google map to show an inline map at the "Define your coordinates" page.
by clicking on the map a marker is positioned there and the coordinates are set in the input fields.
if someone is interested in the changes, i'll upload the new script
Email me at aaron at houseblogs dot net
i mailed you the new ManageLocation class.
also please add
"RoleID > 2" to the query in the googlemap class.
because banned users shouldn't be shown in the members map!
regards, J
Which page are you looking at that has the text for User Location?