well thanks for the time and help but just cannot get this to show
here is the complete php file as I've modified it. Bit of a long post, sorry
. Hope you can sort this for me
<?php
/**
* @version $Id: sobi2.details.tmpl.php 4820 2009-01-05 11:46:25Z Radek Suski $
* @package: Sigsiu Online Business Index 2
* ===================================================
* @author
* Name: Sigrid & Radek Suski, Sigsiu.NET
* Email:
sobi@sigsiu.net* Url:
http://www.sigsiu.net* ===================================================
* @copyright Copyright (C) 2006 - 2009 Sigsiu.NET (
http://www.sigsiu.net). All rights reserved.
* @license see
http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU/GPL.
* You can use, redistribute this file and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation.
*/
/*please do not remove this line */
defined( '_SOBI2_' ) || ( trigger_error("Restricted access", E_USER_ERROR) && exit() );
/* ------------------------------------------------------------------------------
* This is the template for the Details View
* ------------------------------------------------------------------------------
*/
?>
<!-- Insert to display the number of published entries -->
<?php
$db =& JFactory::getDBO();
$query = 'SELECT COUNT(*) FROM `#__sobi2_item` WHERE published = 1';
$db->setQuery( $query );
$count = $db->loadResult();
echo "<h3>Total Listings: ".(int) $count."</h3>";
?>
<!-- End of insert -->
<?php HTML_SOBI::renewal( $config,$mySobi ); ?>
<table class="sobi2Details" <?php echo $style; ?> >
<tr>
<td><?php echo $ico; ?><h1><?php echo $mySobi->title; ?></h1></td>
</tr>
<tr>
<td><?php echo $img; ?></td>
</tr>
<tr>
<td><?php HTML_SOBI::showGoogleMaps($mySobi, $config); ?></td>
</tr>
<tr>
<td>
<div id="sobi2outer">
<?php HTML_SOBI::waySearchUrl( $waySearchLink,$config ); ?>
<?php echo HTML_SOBI::customFieldsData( $fieldsFormatted );?>
<br />
</div>
</td>
</tr>
</table>
<table class="sobi2DetailsFooter" width="100%">
<tr>
<td>
<?php HTML_SOBI::addedDate($config,$mySobi); ?>
<?php HTML_SOBI::showHits($config,$mySobi);?>
</td>
<td><?php HTML_SOBI::editButtons($config,$mySobi); ?></td>
</table>
</tr>
</table>
<br />
<table width="849" border="0">
<tr>
<th width="839" scope="col"><div align="center"><strong>Please mention RadioQFM Business Directory
when responding to our adverts!</strong></div></th>
</tr>
</table>