Um - help?
"A fatal, non-recoverable error has occurred
Technical information (for support personel):
Error Message
The "ManageLocation" class referenced by "ManageLocation" does not appear to exist.
Affected Elements
ObjectFactory.NewObject();"
Ahh... that's the problem I was having weeks ago. No solution thus far. Mine would tick along for hours and then fall over (when attempting to access the Account page) with that error message.
Any work on getting this working properly with FriendlyURL? I just had to manually edit the code to get it to play nice, but would like a solution that works for both situations out of the box.
Edit, I think I fixed it.
The two changes I made so far was the following:
Edit again... found out how to use GetUrl(), lets do this properly!
They just keep popping up! Found 2 more links that needed to be updated...
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>';
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
@barbe - We'll acctually implement the approach jehul suggested above soon--it will be graphical directly in Vanilla. There are just a few bugs to troubleshoot before uploading the new version.
Looks to work great except for one minor thing, under the text "User Location" there is a big white space. Nothing else! No map in other words. Anyways i don't see a way to turn on or off friendly URLS, but I don't think I'm using them. Am I missing something?
Friendly URLs is used in conjunction with the GetUrl() function built into Vanilla, and then installing the Friendly URL extension. By using that function, an extension can be built where all the URL's generated will be normal, or SEO compliant.
Which page are you looking at that has the text for User Location?
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?