Erro Modulo LatestNewsPlusDate
Enviado: 30 Nov 2010, 08:17
Alguém já passou por esse erro, ao instalar o modulo LatestNewsPlusDate?
Sabem como corrigir?
Vlw
get( 'catid' ) ); $secid = trim( $params->get( 'secid' ) ); // $show_introtext = $params->get( 'show_introtext', 0 ); $show_introtext = ('yes'); $show_date = $params->get( 'show_date', 0 ); $show_date_type = $params->get( 'show_date_type', 0 ); $thumb_embed = intval( $params->get( 'thumb_embed', 0 ) ); $thumb_width = intval( $params->get( 'thumb_width', 32 ) ); $thumb_height = intval( $params->get( 'thumb_height', 32 ) ); $limit = intval( $params->get( 'limit', 200 ) ); $loadorder = intval( $params->get( 'loadorder', 1 ) ); $show_more_in = intval( $params->get( 'show_more_in', 0 ) ); $show_more_type = intval( $params->get( 'show_more_type', 0 ) ); $show_date_in_introtext = intval( $params->get( 'show_date_in_introtext', 0 ) ); $allowed_tags = ""; $image_path = $params->get( 'image_path', 'images/stories' ); $document=& JFactory::getDocument(); if($document->getType() == 'html') { global $mainframe; $document->addCustomTag(''); } if($show_introtext) { if ($thumb_embed) { /* Regex tool for finding image path on img tag - thx to Jerson Figueiredo */ preg_match_all("##", modLatestNewsHelperPlusDate::unhtmlentities(html_entity_decode(htmlentities($item->introtext))), $txtimg); if (!empty($txtimg[0])) { foreach ($txtimg[0] as $txtimgel) { $item->introtext = str_replace($txtimgel,"",$item->introtext); if ( strstr($txtimgel, $image_path) ) { if (strstr($txtimgel, 'src="/')) { preg_match_all("#src=\"\/" . addslashes($image_path) . "\/([\:\-\/\_A-Za-z0-9\.]+)\"#",$txtimgel,$txtimgelsr); } else { preg_match_all("#src=\"" . addslashes($image_path) . "\/([\:\-\/\_A-Za-z0-9\.]+)\"#",$txtimgel,$txtimgelsr); } if (!empty($item->images)) { $item->images = $txtimgelsr[1][0] . "\n" . $item->images; } else { $item->images = $txtimgelsr[1][0]; } }elseif (preg_match_all("#http#",$txtimgel,$txtimelsr,PREG_PATTERN_ORDER) > 0) { preg_match_all("#src=\"([\-\/\_A-Za-z0-9\.\:]+)\"#",$txtimgel,$txtimgelsr); if (!empty($item->images)) { $item->images = $txtimgelsr[1][0] . "\n" . $item->images; } else { $item->images = $txtimgelsr[1][0]; } } } } } // end of thumbnail processing $item->introtext= preg_replace("/{[^}]*}/","",$item->introtext); // stripped html by default $item->introtext = strip_tags(modLatestNewsHelperPlusDate::unhtmlentities($item->introtext),$allowed_tags); if($limit > 0) { $item->introtext = modLatestNewsHelperPlusDate::lnd_limittext($item->introtext,$limit); } echo '
'; if ($loadorder == 1) { echo modLatestNewsHelperPlusDate::lnd_showThumb($item->images,$item->image,$params,$item->itemid,$item->id); } echo ''.$item->text.''; echo '
'; if($show_date_in_introtext) { if($show_date==1) { switch($show_date_type) { case 1: echo ""; echo date("d F Y", strtotime($item->created)); echo "
"; break; case 2: echo ""; echo date("H:i", strtotime($item->created)); echo "
"; break; default: echo ""; echo date("d F Y H:i", strtotime($item->created)); echo "
"; break; } } } if ($loadorder == 0) { modLatestNewsHelperPlusDate::lnd_showThumb($item->images,$item->image,$params,$item->itemid,$item->id); } echo html_entity_decode(htmlentities($item->introtext)); echo '
'; echo '
'; } echo '
'; $show_date = $params->get( 'show_date', 0 ); $show_date_type = $params->get( 'show_date_type', 0 ); ?>
Notice: Undefined variable: show_introtext in C:\wamp\www\portal2\modules\mod_latestnewsplusdate\tmpl\default.php on line 123
created)); break; case 2: echo date("H:i", strtotime($item->created)); break; default: echo date("d F Y H:i", strtotime($item->created)); break; } } ?>
Notice: Undefined variable: item in C:\wamp\www\portal2\modules\mod_latestnewsplusdate\tmpl\default.php on line 148
Notice: Trying to get property of non-object in C:\wamp\www\portal2\modules\mod_latestnewsplusdate\tmpl\default.php on line 148
created)); break; case 2: echo date("H:i", strtotime($item->created)); break; default: echo date("d F Y H:i", strtotime($item->created)); break; } } ?>
Notice: Undefined variable: item in C:\wamp\www\portal2\modules\mod_latestnewsplusdate\tmpl\default.php on line 148
Sabem como corrigir?
Vlw
get( 'catid' ) ); $secid = trim( $params->get( 'secid' ) ); // $show_introtext = $params->get( 'show_introtext', 0 ); $show_introtext = ('yes'); $show_date = $params->get( 'show_date', 0 ); $show_date_type = $params->get( 'show_date_type', 0 ); $thumb_embed = intval( $params->get( 'thumb_embed', 0 ) ); $thumb_width = intval( $params->get( 'thumb_width', 32 ) ); $thumb_height = intval( $params->get( 'thumb_height', 32 ) ); $limit = intval( $params->get( 'limit', 200 ) ); $loadorder = intval( $params->get( 'loadorder', 1 ) ); $show_more_in = intval( $params->get( 'show_more_in', 0 ) ); $show_more_type = intval( $params->get( 'show_more_type', 0 ) ); $show_date_in_introtext = intval( $params->get( 'show_date_in_introtext', 0 ) ); $allowed_tags = ""; $image_path = $params->get( 'image_path', 'images/stories' ); $document=& JFactory::getDocument(); if($document->getType() == 'html') { global $mainframe; $document->addCustomTag(''); } if($show_introtext) { if ($thumb_embed) { /* Regex tool for finding image path on img tag - thx to Jerson Figueiredo */ preg_match_all("##", modLatestNewsHelperPlusDate::unhtmlentities(html_entity_decode(htmlentities($item->introtext))), $txtimg); if (!empty($txtimg[0])) { foreach ($txtimg[0] as $txtimgel) { $item->introtext = str_replace($txtimgel,"",$item->introtext); if ( strstr($txtimgel, $image_path) ) { if (strstr($txtimgel, 'src="/')) { preg_match_all("#src=\"\/" . addslashes($image_path) . "\/([\:\-\/\_A-Za-z0-9\.]+)\"#",$txtimgel,$txtimgelsr); } else { preg_match_all("#src=\"" . addslashes($image_path) . "\/([\:\-\/\_A-Za-z0-9\.]+)\"#",$txtimgel,$txtimgelsr); } if (!empty($item->images)) { $item->images = $txtimgelsr[1][0] . "\n" . $item->images; } else { $item->images = $txtimgelsr[1][0]; } }elseif (preg_match_all("#http#",$txtimgel,$txtimelsr,PREG_PATTERN_ORDER) > 0) { preg_match_all("#src=\"([\-\/\_A-Za-z0-9\.\:]+)\"#",$txtimgel,$txtimgelsr); if (!empty($item->images)) { $item->images = $txtimgelsr[1][0] . "\n" . $item->images; } else { $item->images = $txtimgelsr[1][0]; } } } } } // end of thumbnail processing $item->introtext= preg_replace("/{[^}]*}/","",$item->introtext); // stripped html by default $item->introtext = strip_tags(modLatestNewsHelperPlusDate::unhtmlentities($item->introtext),$allowed_tags); if($limit > 0) { $item->introtext = modLatestNewsHelperPlusDate::lnd_limittext($item->introtext,$limit); } echo '
'; if ($loadorder == 1) { echo modLatestNewsHelperPlusDate::lnd_showThumb($item->images,$item->image,$params,$item->itemid,$item->id); } echo ''.$item->text.''; echo '
'; if($show_date_in_introtext) { if($show_date==1) { switch($show_date_type) { case 1: echo ""; echo date("d F Y", strtotime($item->created)); echo "
"; break; case 2: echo ""; echo date("H:i", strtotime($item->created)); echo "
"; break; default: echo ""; echo date("d F Y H:i", strtotime($item->created)); echo "
"; break; } } } if ($loadorder == 0) { modLatestNewsHelperPlusDate::lnd_showThumb($item->images,$item->image,$params,$item->itemid,$item->id); } echo html_entity_decode(htmlentities($item->introtext)); echo '
'; echo '
'; } echo '
'; $show_date = $params->get( 'show_date', 0 ); $show_date_type = $params->get( 'show_date_type', 0 ); ?>
Notice: Undefined variable: show_introtext in C:\wamp\www\portal2\modules\mod_latestnewsplusdate\tmpl\default.php on line 123
created)); break; case 2: echo date("H:i", strtotime($item->created)); break; default: echo date("d F Y H:i", strtotime($item->created)); break; } } ?>
Notice: Undefined variable: item in C:\wamp\www\portal2\modules\mod_latestnewsplusdate\tmpl\default.php on line 148
Notice: Trying to get property of non-object in C:\wamp\www\portal2\modules\mod_latestnewsplusdate\tmpl\default.php on line 148
created)); break; case 2: echo date("H:i", strtotime($item->created)); break; default: echo date("d F Y H:i", strtotime($item->created)); break; } } ?>
Notice: Undefined variable: item in C:\wamp\www\portal2\modules\mod_latestnewsplusdate\tmpl\default.php on line 148