* News broken and User Defined Tags broken, Tags being displayed twice.
Put the following logic in the file modifier.cms_date_format.php under \Plugins
Clear the CACHE as well after putting in the changed file.
Code: Select all
<?php
function smarty_cms_modifier_cms_date_format($string, $format = '',
$default_date = '')
{
if( $format == '' )
{
$format = get_site_preference('defaultdateformat');
if( $format == '' )
{
$format = '%b %e, %Y';
}
$uid = get_userid(false);
if( $uid )
{
$tmp = get_preference($uid,'date_format_string');
if( $tmp != '' )
{
$format = $tmp;
}
}
}
global $gCms;
$smarty =& $gCms->GetSmarty();
$config =& $gCms->GetConfig();
$fn = cms_join_path($config['root_path'],'lib','smarty','plugins','modifier.date_format.php');
if( !file_exists($fn) ) die();
require_once( $fn );
return smarty_modifier_date_format($string,$format,$default_date);
}
// EOF
?>



