Logo

Upgrade from v2.2.1 or below to v2.2.2 or above


Manually change templates


If you upgrade from Swap Factory v2.2.1 or below to version v2.2.2 or above and choose to NOT overwrite templates, then you will have to do the following precise modifications for compatibility reasons.

  • File components/com_swapfactory/templates/default/t_googlemap.tpl at line 10

replace:

{include file="js/t_javascript_maps.tpl" googleMapX=`$googleMapX` googleMapY=`$googleMapY`}


with:

{include file="js/t_javascript_maps.tpl" googleMapX="`$googleMapX`" googleMapY="`$googleMapY`"}


  • File components/com_swapfactory/templates/default/elements/details/t_tab_maps.tpl, at line 8

replace:

{include file='js/t_javascript_maps.tpl' googleMapX=`$ad->googlex` googleMapY=`$ad->googley`}


with:

{include file='js/t_javascript_maps.tpl' googleMapX="`$ad->googlex`" googleMapY="`$ad->googley`"}


  • Same file components/com_swapfactory/templates/default/elements/details/t_tab_maps.tpl, at line 10

replace:

{include file='js/t_javascript_maps.tpl' googleMapX=`$user->googleMaps_x` googleMapY=`$user->googleMaps_x`}


with:

{include file='js/t_javascript_maps.tpl' googleMapX="`$user->googleMaps_x`" googleMapY="`$user->googleMaps_y`"}


  • File components/com_swapfactory/templates/default/t_userdetails.tpl, at lines 55-56

replace:

{if ($user->googleMaps_x && $user->googleMaps_y)}
    {include file='js/t_javascript_maps.tpl' googleMapX=`$user->googleMaps_x` googleMapY=`$user->googleMaps_x`}


with:

{if (!empty($user->googleMaps_x) && !empty($user->googleMaps_y))}
    {include file='js/t_javascript_maps.tpl' googleMapX=$user->googleMaps_x googleMapY=$user->googleMaps_x}


  • File components/com_swapfactory/templates/default/t_listads_grid.tpl, at line 170

replace:

{assign var=nrt value=`$nr_columns-$smarty.foreach.item_loop.index%$nr_columns-1`}


with:

{assign var=nrt value=$nr_columns-$smarty.foreach.item_loop.index%$nr_columns-1}