Number of problems after upgrading to latest ver

Apocalypso
Apocalypso
  • Apocalypso
  • 11 months ago
Hi,

I just made following changes:

16.03.2013 GPS Tools Updated
  • GPS tools updated from 3.0.1 to 3.5.7
  • GPS tools Content Plugin updated to version v2.0.0
  • GPS tools Editor button plugin to insert GPX tracks into Joomla!™ articles INSTALLED v1.0.0
  • CjLib Component - CoreJoomla Framework Library for Joomla 2.5+ Version: v1.5.8


and now I have couple of problems with the Content Plugin but let's start with the crucial one. You see I'm using custom icons and after upgrade i made all necessary code changes but it simply doesn't works with this version no matter what I try.

here are the changes that previously worked just fine:

06.10.2012 Custom placemarkers icon code chnages in gps_loader.php

/public_html/components/com_gpstools/lib/gps_loader.php

/*Add markers and polylines from chart data*/
foreach($points['wpts'] as $wpt){

$map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc']);
}

REPLACE WITH

/*Add markers and polylines from chart data*/
foreach($points['wpts'] as $wpt){
if(!empty($wpt['sym'])){
switch($wpt['sym']) {
case 'Custom 1': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '01.png'); break;

case 'Custom 2': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '02.png'); break;

case 'Custom 3': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '03.png'); break;

case 'Custom 4': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '04.png'); break;

case 'Custom 5': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '05.png'); break;

case 'Custom 6': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '06.png'); break;

case 'Custom 7': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '07.png'); break;

case 'Custom 8': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '08.png'); break;

case 'Custom 9': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '09.png'); break;

case 'Custom 10': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '10.png'); break;

case 'Custom 11': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '11.png'); break;

case 'Custom 12': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '12.png'); break;

case 'Custom 13': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '13.png'); break;

case 'Custom 14': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '14.png'); break;

case 'Custom 15': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '15.png'); break;

case 'Custom 16': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '16.png'); break;

case 'Custom 17': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '17.png'); break;

case 'Custom 18': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '18.png'); break;

case 'Custom 19': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '19.png'); break;

case 'Custom 20': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '20.png'); break;

case 'Custom 21': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '21.png'); break;

case 'Custom 22': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '22.png'); break;

case 'Custom 23': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '23.png'); break;

case 'Custom 24': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '24.png'); break;

case 'Custom 25': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '25.png'); break;

case 'Custom 26': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '26.png'); break;

case 'Custom 27': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '27.png'); break;

case 'Custom 28': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '28.png'); break;

case 'Custom 29': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '29.png'); break;

case 'Custom 30': $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc'], '30.png'); break;

default: $map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc']); break;
}
}else{
$map_api->add_marker($wpt['lat'], $wpt['lon'], $wpt['name'], $wpt['desc']);
}
}


Any hint is more than welcome?

Access to viewing replies is restricted.
Showing 20 of 20 replies
You do not have permissions for replying to this topic.
Loading...
Confirm delete? This action is irreversible and the data will be deleted permanently. Do you want to continue? Confirm Add New Delete Unpublish Cancel Import Uninstall The selected item successfully deleted.
Shondalai