- Posts: 6
- Thank you received: 0
Cannot remove | from author_line
-
Mick Miller
Inactive member - Topic Author
- New Member
Less
More
13 years 11 months ago #4698
by Mick Miller
Cannot remove | from author_line was created by Mick Miller
Hi,
Another query. When I set the global or the individual article parameters to hide created date, author, modified date and icons I'm still left with a '|' in the author_line. Rather than the author_line closing up and nothing being displayed.
Is there any way of getting rid of the | completely? The site can be found at:
www.activepestcontrolsolutions.com/main_site
The | is evident on most of the articles (no comment on styling yet; it's still 'work in progress'!):blush:
Thanks again for your time.
Another query. When I set the global or the individual article parameters to hide created date, author, modified date and icons I'm still left with a '|' in the author_line. Rather than the author_line closing up and nothing being displayed.
Is there any way of getting rid of the | completely? The site can be found at:
www.activepestcontrolsolutions.com/main_site
The | is evident on most of the articles (no comment on styling yet; it's still 'work in progress'!):blush:
Thanks again for your time.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 11 months ago #4704
by ivan.milic
Replied by ivan.milic on topic Re: Cannot remove | from author_line
Hi,
Open file: templates\hot_cars\html\com_content\article\default.php
there starting form line 82 you will see:
<tr>
<td valign="top">
<div class="author_line"><span class="small"><?php if (($this->params->get('show_author')) && ($this->article->author != "")) : ?><?php JText::printf( 'Written by', ($this->escape($this->article->created_by_alias) ? $this->escape($this->article->created_by_alias) : $this->escape($this->article->author)) ); ?><?php endif; ?></span><?php if ($this->params->get('show_create_date')) : ?> | <span class="createdate"><?php echo JHTML::_('date', $this->article->created, JText::_('DATE_FORMAT_LC4')); endif; ?>
|
<?php if ($this->params->get('show_email_icon')) : echo JHTML::_('icon.email', $this->article, $this->params, $this->access); endif; ?>
<?php if ( $this->params->get( 'show_print_icon' )) : echo JHTML::_('icon.print_popup', $this->article, $this->params, $this->access); endif; ?>
<?php if ($this->params->get('show_pdf_icon')) : echo JHTML::_('icon.pdf', $this->article, $this->params, $this->access); endif; ?></span></div>
</td>
</tr>
You can change | to something else like or simply delete it.
REMEMBER TO MAKE BACKUP OF FILE BEFORE THAT!
Open file: templates\hot_cars\html\com_content\article\default.php
there starting form line 82 you will see:
<tr>
<td valign="top">
<div class="author_line"><span class="small"><?php if (($this->params->get('show_author')) && ($this->article->author != "")) : ?><?php JText::printf( 'Written by', ($this->escape($this->article->created_by_alias) ? $this->escape($this->article->created_by_alias) : $this->escape($this->article->author)) ); ?><?php endif; ?></span><?php if ($this->params->get('show_create_date')) : ?> | <span class="createdate"><?php echo JHTML::_('date', $this->article->created, JText::_('DATE_FORMAT_LC4')); endif; ?>
|
<?php if ($this->params->get('show_email_icon')) : echo JHTML::_('icon.email', $this->article, $this->params, $this->access); endif; ?>
<?php if ( $this->params->get( 'show_print_icon' )) : echo JHTML::_('icon.print_popup', $this->article, $this->params, $this->access); endif; ?>
<?php if ($this->params->get('show_pdf_icon')) : echo JHTML::_('icon.pdf', $this->article, $this->params, $this->access); endif; ?></span></div>
</td>
</tr>
You can change | to something else like or simply delete it.
REMEMBER TO MAKE BACKUP OF FILE BEFORE THAT!
Please Log in to join the conversation.
-
Mick Miller
Inactive member - Topic Author
- New Member
Less
More
- Posts: 6
- Thank you received: 0
13 years 11 months ago #4709
by Mick Miller
Replied by Mick Miller on topic Re: Cannot remove | from author_line
Thanks for your help again! (I'll be sure to backup first).
Please Log in to join the conversation.
-
Mick Miller
Inactive member - Topic Author
- New Member
Less
More
- Posts: 6
- Thank you received: 0
13 years 11 months ago #5085
by Mick Miller
Replied by Mick Miller on topic Re: Cannot remove | from author_line
Hi,
I'm sorry but that doesn't seem to work at all, the | is still there no matter what I change the character to in that file?
templates\hot_cars\html\com_content\article\default.php
Thanks.
I'm sorry but that doesn't seem to work at all, the | is still there no matter what I change the character to in that file?
templates\hot_cars\html\com_content\article\default.php
Thanks.
Please Log in to join the conversation.
-
Mick Miller
Inactive member - Topic Author
- New Member
Less
More
- Posts: 6
- Thank you received: 0
13 years 11 months ago #5086
by Mick Miller
Replied by Mick Miller on topic Re: Cannot remove | from author_line
Solved: (I think)
I had to find all files which feature author_line and remove the |, there's three of them!
Thanks,
David.
I had to find all files which feature author_line and remove the |, there's three of them!
Thanks,
David.
Please Log in to join the conversation.
Time to create page: 0.161 seconds