Help - Search - Members - Calendar
Full Version: Results_Details not working
User Forums > Ultimate Locator v1 - v2.5 Support > General Support
jrstratton
When you click on the name link for more details it's just not working. Please look at my page here www.fillcentersusa.com/locator use 85937 then click on a name link. I've tried fixing but to no aveil. Please any help would be great. Also while your there can you tell me how to fix the white on each side?

Thanks in advance!
Brian
I'm not 100% sure, but your templates (results_list_format.htm) seem to be in order. That file houses the code for the link on the Name field.

It is supposed to look like this in your template:

CODE
results_list.php?id={id}&dist={distance}


and it does.

What the locator will do, is find this {id} and {distance} placeholders and replace them will actual data of each location.

The name links on your output list of matches should look similar to this when done correctly:

CODE
http://fillcentersusa.com/locator/results_details.php?id=8&dist=3 miles


This tells me that the results_list.php is not properly finding the placeholders on the templates and replacing the data.

Have you modified anything inside the results_list.php file at all?

The code that controls this action looks like this and can be found in 3 different spots of the file. One time under the Zip Code Exact, one time under the Zip Code w/ Surrounding and one time under the City, Name, State, Country sections of the file.


$st[1]=str_replace("{id}",$recordset['id'],$st[1]);

Same goes for the distance placeholder:

$st[1]=str_replace("{distance}",$resultmiles." miles",$st[1]);

If this seems a little to overwhelming, just email your active results_list.php file to support and we will have a look at it.

Also, if you find this code in your file, then there is also the chance that your template has the wrong code. Make sure your results_list_format.htm template has the actual { } characters in them around the ID and DISTANCE placeholders, and not it's ASCII code, which would be %7B and %7D. If you see these characters wrapped around your placeholders instead of the actual { } characters, you need to change it back. (I suspect this to be the cause of your issue). Make sure you upload all your template files in ASCII format via FTP. Never use Dreamweaver of FrontPage to upload these files.
jrstratton
Thank you, you were right it just had the wrong code %7B etc.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.