
Originally Posted by
gbengoose
my error, I neglected to include a line of code.
The following is the correct section of code place it immediately above the closing </blockquote>
PHP Code:
<?php
$testimonial_info = '';
if ( (!empty($page_check->fields[testimonials_city])) and (!empty($page_check->fields[testimonials_country])) ) {
$testimonial_info .= NAME_SEPARATOR . $page_check->fields[testimonials_city] . CITY_STATE_SEPARATOR . $page_check->fields[testimonials_country];
}
if ( (!empty($page_check->fields[testimonials_city])) and (empty($page_check->fields[testimonials_country])) ) {
$testimonial_info .= NAME_SEPARATOR . $page_check->fields[testimonials_city];
}
if ( (empty($page_check->fields[testimonials_city])) and (!empty($page_check->fields[testimonials_country])) ) {
$testimonial_info .= NAME_SEPARATOR . $page_check->fields[testimonials_country];
}
if (!empty($page_check->fields[testimonials_company])) {
$testimonial_info .= NAME_SEPARATOR . $page_check->fields[testimonials_company];
}
?>
<div class="buttonRow back"><?php echo TESTIMONIALS_BY; ?> <?php echo $page_check->fields[testimonials_name] . $testimonial_info; ?>
</div>
Bookmarks