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 14766 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: 188
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: 188
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
ali11081
Jr. Member
**

Karma: 0
Offline Offline

Posts: 11


:D


WWW
« Reply #4 on: January 24, 2018, 04:16:05 »

very good  Cheesy
thanks

فیلم
telegraph
telegraph
Logged

shopintex
Jr. Member
**

Karma: 0
Offline Offline

Posts: 17


WWW
« Reply #5 on: January 25, 2018, 16:20:14 »

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:

            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
            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.



Good WORKS thank you

استخر پیش ساخته
Logged

azarazad
Jr. Member
**

Karma: 0
Offline Offline

Posts: 12


WWW
« Reply #6 on: May 27, 2018, 02:36:34 »

hi
yes..its true
Logged

Sarah900
Newbie
*

Karma: 0
Offline Offline

Posts: 5


Email
« Reply #7 on: July 12, 2018, 11:33:38 »

Each format cmdlet has default properties that will be used if you do not specify specific properties to display. Each cmdlet also uses the same parameter name, Property, to specify which properties you want to display. Because Format-Wide only shows a single property, its Property parameter only takes a single value, but the property parameters of Format-List and Format-Table will accept a list of property names.
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    Other extensions    Modules    Topic: Username and Date in the same line
 
Jump to: