Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    Other extensions    Modules    Topic: Username and Date in the same line
Pages: [1]   Go Down
  Print  
Author Topic: Username and Date in the same line  (Read 13595 times)
0 Members and 1 Guest are viewing this topic.
harisg7
Newbie
*

Karma: 0
Offline Offline

Posts: 4


Email
« on: December 06, 2010, 22:49:31 »

Hello there!

How can I have module's Username and Date in the same line?
Logged
smart
Administrator
Hero Member
*****

Karma: 186
Offline Offline

Gender: Male
Posts: 1883



WWW
« Reply #1 on: December 07, 2010, 15:34:00 »

You need to edit file /components/com_jcomments/tpl/default/tpl_comment.php
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
harisg7
Newbie
*

Karma: 0
Offline Offline

Posts: 4


Email
« Reply #2 on: December 08, 2010, 00:31:55 »

Can you tell me what to change in the code?

Thank you!
Logged
smart
Administrator
Hero Member
*****

Karma: 186
Offline Offline

Gender: Male
Posts: 1883



WWW
« Reply #3 on: December 08, 2010, 02:23:18 »

Oh, sorry. I didn't notice that you've ask about module.

You have to open /modules/mod_jcomments/mod_jcomments.php file and replace:

Code: (php)
switch( $show_author ) {
case 0:
break;
case 1:
echo '<br />' . ($label4author != '' ?  $label4author . ' ' : '') . $row->name;
break;
case 2:
echo '<br />' . ($label4author != '' ?  $label4author . ' ' : '') . ($row->username ? $row->username : $row->name);
break;
}
with
Code: (php)
switch( $show_author ) {
case 0:
break;
case 1:
echo ' ' . ($label4author != '' ?  $label4author . ' ' : '') . $row->name;
break;
case 2:
echo ' ' . ($label4author != '' ?  $label4author . ' ' : '') . ($row->username ? $row->username : $row->name);
break;
}

After this the comment's author name will be shown in same line as comment's date.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    Other extensions    Modules    Topic: Username and Date in the same line
 
Jump to: