Help - Search - Members - Calendar
Full Version: Customize Print Results Appearance
User Forums > Ultimate Locator v1 - v2.5 Support > General Support
Mya
Greetings all,

Is there a way to customize printresult.htm so that appears like results_list_format.htm? I've tried altering the HTML in printresult.htm but it doesn't work the way I want.

What I would like to see on print results is:

Store Name (in bold)
Address 1
Address 2
City, State Zip
Phone Number

Thanks in advance for help!

Mya
Brian
The print results template, doesn't use the field placeholders in the same manner as the other templates. It uses a block to print all the address info at one time.

Like this:

Name
Address 1
Address 2
City State Country Zip

Telephone
Fax
Email
Website

User1
User2
User3
User4
User5

If wanted to change this format, you would have to edit he PHP code directly, which is printresult.php.

An example of making the Name print out in bold...

CODE
Find this line of code on line 43

$str1=str_replace("{nameonly}",mysql_result($data,0,"name"),$str1);


Then edit it to look like this...

CODE
        $str1=str_replace("{nameonly}","<strong>".mysql_result($data,0,"name")."</strong>",$str1);


Notice we added "<strong>". and ."</strong>" around the mysql_result(xxxx)
Mya
Okay. Thanks Brian!
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.