HELP - how we can add that column - "last login" of the members

Started by Espirito Vadio, January 16, 2018, 07:09:49 AM

Previous topic - Next topic

Espirito Vadio


Hello everyone

The theme is Aluminium (2.0), and the SMF: SMF 2.0.15


We already read many board's from the forum, but we cant do that widout your help.

We would like to have a column as exemplified in the next images ...


Now it's like this, without the "column"



This is how we want it.
This is another Forum, but I know that in Simple Portal there is also what is in the next image ...




What we want is this!



Everything is in Portuguese, sorry  :( ,  but it does not matter, we want to know, how we can add that column?
We want some, wo tell us, when it was the "last login" of the members.


Thank you for all the help you can give us.

Best Regards


Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Sir Osis of Liver

Ok, here's how to add the column and make it sortable.  You should remove at least one column (website would be best, if you don't need it), or table will be too wide.

Memberlist.template.php



/// Group and date.
echo '
<td class="windowbg lefttext">', empty($member['group']) ? $member['post_group'] : $member['group'], '</td>
<td class="windowbg lefttext">', $member['registered_date'], '</td>
<td class="windowbg lefttext">', $member['last_login'], '</td>';

if (!isset($context['disabled_fields']['posts']))



Memberlist.php



'registered' => array(
'label' => $txt['date_registered']
),

'last_login' => array(
'label' => 'Last visit'
),

'posts' => array(





'registered' => array(
'down' => 'mem.date_registered DESC',
'up' => 'mem.date_registered ASC'
),

'last_login' => array(
'down' => 'mem.last_login DESC',
'up' => 'mem.last_login ASC'
),

'id_group' => array(



Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Espirito Vadio

#3
First of all we want to thank you for your help.

Yes, we can remove the column from the email, it was convenient.
The goal is to take out the Email's column and insert "last time online / visit or last online". anything within that information.

example image:





However, we will try to use the codes posted in the previous topic, and then confirm if it resulted.



Extremely grateful

Hugs

Espirito Vadio


Hello everyone


We already have the column as we wanted. It work's  ;D


Here is the picture




We are very grateful. Thanks


hug's

Advertisement: