Hi xendex,
the Read n comments is just appended to the article content, you can add some div around it and make float right in the language files, not in the comments files itself!😉
Regards
Max
the Read n comments is just appended to the article content, you can add some div around it and make float right in the language files, not in the comments files itself!😉
Regards
Max
Can you discribe more in more detail where to add the divs(in plugin ChronoComments.php?). I tried to realize how to do this by myself, but didn' get any result...
Some example, please!
P.S. And what about buttons?
Thanks in advance!
Some example, please!
P.S. And what about buttons?
Thanks in advance!
Hi xendex,
somewhere in the language file there is the Read {n} comments, replace it with <div class="someclass">Read {n} comments</div> then do you style!
buttons are in templates/comment-elements.html.php file, just edit them there!
Regards
Max
somewhere in the language file there is the Read {n} comments, replace it with <div class="someclass">Read {n} comments</div> then do you style!
buttons are in templates/comment-elements.html.php file, just edit them there!
Regards
Max
Max, I would ask how to get Read {n} comments to line with author name or written by for instance. I have looked to component's Chronocomments.php, where some lines with that Read {n} comments input are, but struggled hard to smuggle them into following code in related com_content's view files:
Your help'll be appreciated.
<?php if (($this->item->params->get('show_author')) && ($this->item->author != "")) : ?>
<tr>
<td width="100%" valign="top" colspan="2">
<span class="small"> |
<?php JText::printf( ($this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author) ); ?> |
<?php if ($this->item->params->get('show_create_date')) : ?><?php echo JHTML::_('date', $this->item->created, JText::_('DATE_FORMAT_LC2')); ?> |
</span>
</tr>
Your help'll be appreciated.
Hi DOM,
so you want the Read comments to be at the top of the article in blog view only ?
I think that you will need to comment this line at the plugin file :
add instead :
test it ?
so you want the Read comments to be at the top of the article in blog view only ?
I think that you will need to comment this line at the plugin file :
return str_replace("{n}", count($blogcomments), $language);
add instead :
$row->created_by .= str_replace("{n}", count($blogcomments), $language);
test it ?
Thanks for quick response. I tried that, but it was replacing date of content, so in that view file I added:
and in Chronocomments.php used ncomments instead of created_by.
I don't know how much is that "ncomments" row decorous or correct, but it works now. If this can be used like that, it's solved and then once again thank you.
<?php JText::printf( ($this->item->ncomments) ); ?>
and in Chronocomments.php used ncomments instead of created_by.
I don't know how much is that "ncomments" row decorous or correct, but it works now. If this can be used like that, it's solved and then once again thank you.
well, great its working for you, these things always need testing and I didn't test, but I guess that there is some other way to do it without editing the content view!😉
Regards
Max
Regards
Max
This topic is locked and no more replies can be posted.