PHP Real Estate Script Member Forums: Classifieds, FSBO, Agents

Welcome, Guest. Please login or register.

News: PHP REC Member Forums are now live (06/15/08)!
+  PHP Real Estate Script Forums: Classifieds, FSBO, Agents
|-+  PHP REC Version 7
| |-+  General Support (Version 7)
| | |-+  Google Map fails to load when selecting Property Type in advanced search
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Google Map fails to load when selecting Property Type in advanced search  (Read 294 times)
PHP Sales
PHP REC Developer
Jr. Member
********
Posts: 71


View Profile
« on: June 20, 2008, 04:53:38 PM »

The following bug has been reported:

Bug Status: Accepted
Versions: 7.1.x - 7.2.16

Issue
  • Google Map fails to load when performing an advanced search   with one or more Property Types or Property Styles are selected.

Cause
  • PHP GET array ptype not flatten before base 64 encoding.

Solution
  • Update /content/storyboxes/propertyresults.php to flatten array before base 64 encoding (see below).

How to flatten PHP GET array ptype

Please note: This update will be included in the next version release. For updated copy of /content/storyboxes/propertyresults.php please send an email to phpsales@gmail.com with your order number.

1. Open /content/storyboxes/propertyresults.php in any simple editor (e.g. Notepad)
2. Find the following around line 253:
Code:
//Build Alt Output Query String
$altOutputQueryStr = "";
if(sizeof($_GET)>0){
foreach($_GET as $key => $value){
if($value != ""){
if(is_array($value) && sizeof($value) > 0){
$altOutputQueryStr = sprintf("&ptype[]=%s",implode("&ptype[]=", $value));
}else{
$altOutputQueryStr .= sprintf("&%s=%s", $key, $value);
}
}
}
}
3. Replace with:
Code:
//Build Alt Output Query String
$altOutputQueryStr = "";
if(sizeof($_GET)>0){
foreach($_GET as $key => $value){
if($value != ""){
if(is_array($value) && sizeof($value) > 0){
$altOutputQueryStr .= sprintf("&%s[]=%s",$key, implode(sprintf("&%s[]=", $key), $value));
}else{
$altOutputQueryStr .= sprintf("&%s=%s", $key, $value);
}
}
}
}
4. Save file and upload over older version via FTP
« Last Edit: July 21, 2008, 12:16:57 PM by PHP Sales » Logged
Pages: [1] Print 
« previous next »
Jump to: