This is my V-CARD please take a look and tell me if there is any error.
<?php
/**
* @version $Id: sobi2.vc.tmpl.php 4237 2008-07-27 10:18:09Z Sigrid Suski $
@package: Sigsiu Online Business Index 2
* ===================================================
* @author
* Name: Sigrid & Radek Suski, Sigsiu.NET
* Email:
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
* Url:
www.sigsiu.net
* ===================================================
* @copyright Copyright (C) 2007 Sigsiu.NET (
www.sigsiu.net). All rights reserved.
* @license see
www.gnu.org/licenses/lgpl.html GNU/LGPL.
* You can use, redistribute this file and/or modify
* it under the terms of the GNU Lesser 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 V-Card View
* ------------------------------------------------------------------------------
*/
/* Don't remove this line! */
function sobi2VCview($id, $style, $ico, $img, $title, $fieldsObjects, $fieldsFormatted, $plugins, $tdTrCounter, $editButton = null, $deleteButton = null)
{
// For advanced templating comment in the next line if you need to access other sobi2 object proporties
$mySobi = new sobi2( $id );
$config =& sobi2Config::getInstance();
$waySearchLink = HTML_SOBI::createWaySearchUrl( $id );
?>
<td <?php echo $style; ?>>
<?php HTML_SOBI::editButtons($config,$mySobi); ?>
<?php
if (isset($tdTrCounter)) {
$tdTrCounter++;
echo "<img src='/components/com_sobi2/GoogleMapsIcons/icong".$tdTrCounter.".png' />";
}
?>
<?php echo ' '.$ico; ?>
<?php echo $img; ?>
<?php echo $title; ?>
<?php //echo rs_showDistance ($id); ?><br>
<?php echo HTML_SOBI::customFieldsData($fieldsFormatted);?><br>
<?php //HTML_SOBI::waySearchUrl($waySearchLink); ?>
<!-- here ends the template -->
<?php
$gmmaPart1 = $fieldsObjects['field_street']->data;
$gmmaPart2 = $fieldsObjects['field_city']->data;
$gmmaPart3 = $fieldsObjects['field_federal_state']->data;
$gmmaPart4 = $fieldsObjects['field_postcode']->data;
$gmmaPart5 = $mySobi->title;
$gmmaSobi_id = $mySobi->id ;
$gmmaPart6 = '<b>'.$gmmaPart5.'</b><br/><a href="
wwww.mysite.com/index.php?option=com_sobi2&sobi2Task=sobi2Details&catid=0&sobi2Id='.$gmmaSobi_id.'&Itemid=53" target="_parent">View Profile</a>';
$gmmaPart7 = $fieldsObjects['field_latitude']->data;
$gmmaPart8 = $fieldsObjects['field_longitude']->data;
$mapCounter += 1;
$GoogleMapMarkerSt = $gmmaPart1.' '.$gmmaPart2.' '.$gmmaPart3.' '.$gmmaPart4;
$GoogleMapMarkerName = $gmmaPart5;
$GoogleMapMarkerHTML = $gmmaPart6;
$GoogleMapMarker = 'Address'.$GoogleMapMarkerSt.'Name'.$GoogleMapMarkerName.'HTML'.$GoogleMapMarkerHTML.'Latitude'.$gmmaPart7.'Longitude'.$gmmaPart8;
?>
<!-- Don't remove these lines! -->
</td>
<?php
return $GoogleMapMarker;
}
?>