VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me

Error in blog_item.php
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Error in blog_item.php

Error in blog_item.php 20 May 2012 19:41 #350

Hi to all,
in the file jf_texturia/html/com_content/category/blog_item.php
there is an error. If "show_author" is set to false the html generated is wrong because the tr and the td aren't open:

<?php if (($this->item->params->get('show_author')) && ($this->item->author != "")) : ?>
<tr>
<td width="70%" valign="top" colspan="2">
<span class="small">
<?php JText::printf( 'COM_CONTENT_WRITTEN_BY', ($this->escape($this->item->created_by_alias) ? $this->escape($this->item->created_by_alias) : $this->escape($this->item->author)) ); ?>
</span>
 
<?php endif; ?>
<?php if ($this->item->params->get('show_create_date')) : ?>
<span class="createdate"><?php echo JText::_( 'Scritto il').date("d.m.Y",strtotime($this->item->created)); ?></span>
<?php endif; ?>
</td>
</tr>
 


One possible solution is the follow:

<tr>
<td width="70%" valign="top" colspan="2">
<?php if (($this->item->params->get('show_author')) && ($this->item->author != "")) : ?>
 
 
<span class="small">
<?php JText::printf( 'COM_CONTENT_WRITTEN_BY', ($this->escape($this->item->created_by_alias) ? $this->escape($this->item->created_by_alias) : $this->escape($this->item->author)) ); ?>
</span>
 
<?php endif; ?>
<?php if ($this->item->params->get('show_create_date')) : ?>
<span class="createdate"><?php echo JText::_( 'Scritto il').date("d.m.Y",strtotime($this->item->created)); ?></span>
<?php endif; ?>
</td>
</tr>
 

  • Posts:2
  • Rossi
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: Error in blog_item.php 20 May 2012 19:43 #351

PS: sorry for 'Scritto il' in the code

  • Posts:2
  • Rossi
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: Error in blog_item.php 21 May 2012 02:40 #354

thank you, you are right!
  • mars
  • Page:
  • 1
Time to create page: 0.92 seconds
Tuesday 19 March 2019

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.