ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

Design question

xendex 10 Sep, 2008
I can't find the right file to change the position of the link "Read {n} comments" from left to right and also where to change the BBcode view from buttons to images like http://img355.imageshack.us/img355/4298/rteboldyl7.png.
Thanks in advance!
Max_admin 10 Sep, 2008
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
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
xendex 11 Sep, 2008
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!
Max_admin 11 Sep, 2008
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
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
xendex 11 Sep, 2008
Thanks a lot, Max! Now I just got what I needed!
D-O-M 11 Sep, 2008
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:

<?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.
Max_admin 12 Sep, 2008
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 :

return str_replace("{n}", count($blogcomments), $language);

add instead :

$row->created_by .= str_replace("{n}", count($blogcomments), $language);

test it ?
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
D-O-M 12 Sep, 2008
Thanks for quick response. I tried that, but it was replacing date of content, so in that view file I added:
<?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.
Max_admin 12 Sep, 2008
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
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com