Ненадо писать типм гдето в середине ошибка, или тому подобное. если не знаете не засоряйте эфир!!! В логе ошибка синтаксиса. PHP Parse error: syntax error, unexpected '>' in /home/vhosts/izvdgpu.ru /httpdocs/libraries/joomla/database/table/content.php on line 199. Вот код: <?php /** * @version $Id: content.php 14401 2010-01-26 14:10:00Z louis $ * @package Joomla.Framework * @subpackage Table * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. * @license GNU/GPL, see LICENSE.php * Joomla! is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ // Check to ensure this file is within the rest of the framework defined('JPATH_BASE') or die(); /** * Content table * * @package Joomla.Framework * @subpackage Table * @since 1.0 */ class JTableContent extends JTable { /** @var string This is our number release */ var $number_release = null; /** @var int Primary key */ var $id = null; /** @var string */ var $title = null; /** @var string */ var $alias = null; /** @var string */ var $title_alias = null; /** @var string */ var $introtext = null; /** @var string */ var $fulltext = null; /** @var int */ var $state = null; /** @var int The id of the category section*/ var $sectionid = null; /** @var int DEPRECATED */ var $mask = null; /** @var int */ var $catid = null; /** @var datetime */ var $created = null; /** @var int User id*/ var $created_by = null; /** @var string An alias for the author*/ var $created_by_alias = null; /** @var datetime */ var $modified = null; /** @var int User id*/ var $modified_by = null; /** @var boolean */ var $checked_out = 0; /** @var time */ var $checked_out_time = 0; /** @var datetime */ var $publish_up = null; /** @var datetime */ var $publish_down = null; /** @var string */ var $images = null; /** @var string */ var $urls = null; /** @var string */ var $attribs = null; /** @var int */ var $version = null; /** @var int */ var $parentid = null; /** @var int */ var $ordering = null; /** @var string */ var $metakey = null; /** @var string */ var $metadesc = null; /** @var string */ var $metadata = null; /** @var int */ var $access = null; /** @var int */ var $hits = null; /** * @param database A database connector object */ function __construct( &$db ) { parent::__construct( '#__content', 'id', $db ); } /** * Overloaded check function * * @access public * @return boolean * @see JTable::check * @since 1.5 */ function check() { /* TODO: This filter is too rigorous,need to implement more configurable solution // specific filters $filter = & JFilterInput::getInstance( null, null, 1, 1 ); $this->introtext = trim( $filter->clean( $this->introtext ) ); $this->fulltext = trim( $filter->clean( $this->fulltext ) ); */ if(empty($this->title)) { $this->setError(JText::_('Article must have a title')); return false; } if(empty($this->alias)) { $this->alias = $this->title; } $this->alias = JFilterOutput::stringURLSafe($this->alias); if(trim(str_replace('-','',$this->alias)) == '') { $datenow =& JFactory::getDate(); $this->alias = $datenow->toFormat("%Y-%m-%d-%H-%M-%S"); } if (trim( str_replace( ' ', '', $this->fulltext ) ) == '') { $this->fulltext = ''; } if(empty($this->introtext) && empty($this->fulltext)) { $this->setError(JText::_('Article must have some text')); return false; } // clean up keywords -- eliminate extra spaces between phrases // and cr (\r) and lf (\n) characters from string if(!empty($this->metakey)) { // only process if not empty $bad_characters = array("\n", "\r", "\"", "<", ">"); // array of characters to remove $after_clean = JString::str_ireplace($bad_characters, "", $this->metakey); // remove bad characters $keys = explode(',', $after_clean); // create array using commas as delimiter $clean_keys = array(); foreach($keys as $key) { if(trim($key)) { // ignore blank keywords $clean_keys[] = trim($key); } } $this->metakey = implode(", ", $clean_keys); // put array back together delimited by ", " } // clean up description -- eliminate quotes and <> brackets if(!empty($this->metadesc)) { // only process if not empty $bad_characters = array("\"", "<", ">"); $this->metadesc = JString::str_ireplace($bad_characters, "", $this->metadesc); } return true; } /** * Converts record to XML * @param boolean Map foreign keys to text values */ function toXML( $mapKeysToText=false ) { $db =& JFactory::getDBO(); if ($mapKeysToText) { $query = 'SELECT name' . ' FROM #__sections' . ' WHERE id = '. (int) $this->sectionid ; $db->setQuery( $query ); $this->sectionid = $db->loadResult(); $query = 'SELECT name' . ' FROM #__categories' . ' WHERE id = '. (int) $this->catid ; $db->setQuery( $query ); $this->catid = $db->loadResult(); $query = 'SELECT name' . ' FROM #__users' . ' WHERE id = ' . (int) $this->created_by ; $db->setQuery( $query ); $this->created_by = $db->loadResult(); } return parent::toXML( $mapKeysToText ); } } > Где может быть ошибка здесь???
Спасибо друг нашел с твоей помощью. а здесь глянь пожалуста, здесь я выделю ошибку. в логе строка ошибки прописана: <?php // no direct access defined('_JEXEC') or die('Restricted access'); ?> <script language="javascript" type="text/javascript"> function tableOrdering( order, dir, task ) { var form = document.adminForm; form.filter_order.value = order; form.filter_order_Dir.value = dir; document.adminForm.submit( task ); } </script> <form action="<?php echo $this->action; ?>" method="post" name="adminForm"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <?php if ($this->params->get('filter') || $this->params->get('show_pagination_limit')) : ?> <tr> <td colspan="5"> <table> <tr> <?php if ($this->params->get('filter')) : ?> <td align="left" width="60%" nowrap="nowrap"> <?php echo JText::_($this->params->get('filter_type') . ' Filter').' '; ?> <input type="text" name="filter" value="<?php echo $this->escape($this->lists['filter']);?>" class="inputbox" onchange="document.adminForm.submit();" /> </td> <?php endif; ?> <?php if ($this->params->get('show_pagination_limit')) : ?> <td align="right" width="40%" nowrap="nowrap"> <?php echo ' '.JText::_('Display Num').' '; echo $this->pagination->getLimitBox(); ?> </td> <?php endif; ?> </tr> </table> </td> </tr> <?php endif; ?> <?php if ($this->params->get('show_headings')) : ?> <tr> <td class="sectiontableheader<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>" align="right" width="5%"> <?php echo JText::_('Num'); ?> </td> <?php if ($this->params->get('show_title')) : ?> <td class="sectiontableheader<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>"> <?php echo JHTML::_('grid.sort', 'Item Title', 'a.title', $this->lists['order_Dir'], $this->lists['order'] ); ?> </td> <?php endif; ?> <?php if ($this->params->get('show_date')) : ?> <td class="sectiontableheader<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>" width="25%"> <?php echo JHTML::_('grid.sort', 'Date', 'a.created', $this->lists['order_Dir'], $this->lists['order'] ); ?> </td> <?php endif; ?> <?php if ($this->params->get('show_author')) : ?> <td class="sectiontableheader<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>" width="20%"> <?php echo JHTML::_('grid.sort', 'Author', 'author', $this->lists['order_Dir'], $this->lists['order'] ); ?> </td> <?php endif; ?> <?php if ($this->params->get('show_hits')) : ?> <td align="center" class="sectiontableheader<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>" width="5%" nowrap="nowrap"> <?php echo JHTML::_('grid.sort', 'Hits', 'a.hits', $this->lists['order_Dir'], $this->lists['order'] ); ?> </td> <?php endif; ?> </tr> <?php endif; ?> <?php foreach ($this->items as $item) : ?> <tr class="sectiontableentry<?php echo ($item->odd +1 ) . $this->escape($this->params->get('pageclass_sfx')); ?>"> <td align="right"> <?php echo $this->pagination->getRowOffset( $item->count ); ?> </td> <?php if ($this->params->get('show_title')) : ?> <?php if ($item->access <= $this->user->get('aid', 0)) : ?> <td> <a href="<?php echo $item->link; ?>"> <?php echo $this->escape($item->title); ?></a> <?php $this->item = $item; echo JHTML::_('icon.edit', $item, $this->params, $this->access) ?> </td> <?php else : ?> <td> <?php echo $this->escape($item->title).' : '; $link = JRoute::_('index.php?option=com_user&view=login'); $returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($item->slug, $item->catslug, $item->sectionid), false); $fullURL = new JURI($link); $fullURL->setVar('return', base64_encode($returnURL)); $link = $fullURL->toString(); ?> <a href="<?php echo $link; ?>"> <?php echo JText::_( 'Register to read more...' ); ?></a> </td> <?php endif; ?> <?php endif; ?> <?php if ($this->params->get('show_date')) : ?> <td> <?php echo $item->created; ?> </td> <?php endif; ?> <?php if ($this->params->get('show_author')) : ?> <td> <?php echo $this->escape($item->created_by_alias) ? $this->escape($item->created_by_alias) : $this->escape($item->author); ?> </td> <?php endif; ?> <?php echo $this->item->number_release; ?> <td> <?php echo $this->escape($item->created_by_alias) ? $this->escape($item->created_by_alias) : $this->escape($item->number_release); ?> </td> <?php endif; ?> <?php if ($this->params->get('show_hits')) : ?> <td align="center"> <?php echo $this->escape($item->hits) ? $this->escape($item->hits) : '-'; ?> </td> <?php endif; ?> <?php endforeach; ?> <?php if ($this->params->get('show_pagination')) : ?> <tr> <td colspan="5"> </td> </tr> <tr> <td align="center" colspan="4" class="sectiontablefooter<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>"> <?php echo $this->pagination->getPagesLinks(); ?> </td> </tr> <tr> <td colspan="5" align="right"> <?php echo $this->pagination->getPagesCounter(); ?> </td> </tr> <?php endif; ?> </table> <input type="hidden" name="id" value="<?php echo $this->category->id; ?>" /> <input type="hidden" name="sectionid" value="<?php echo $this->category->sectionid; ?>" /> <input type="hidden" name="task" value="<?php echo $this->lists['task']; ?>" /> <input type="hidden" name="filter_order" value="" /> <input type="hidden" name="filter_order_Dir" value="" /> <input type="hidden" name="limitstart" value="0" /> <input type="hidden" name="viewcache" value="0" /> </form> как правильно написать??
Ну судя по всему заменить нужно: <?php echo $this->item->number_release; ?> на <?php if ($this->escape($item->created_by_alias)); ?> я условие не совсем понял, без подсветки тяжело если нет то просто убери выделенную тобой строку и <?php echo $this->item->number_release; ?>