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"
(https://i62.servimg.com/u/f62/17/86/45/58/m11.png)
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 ...
(https://i62.servimg.com/u/f62/17/86/45/58/m111.png)
What we want is this!
(https://i62.servimg.com/u/f62/17/86/45/58/m211.png)
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
Do you want 'Last Online', as in Admin -> Members?
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(
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:
(https://i62.servimg.com/u/f62/17/86/45/58/m511.png)
However, we will try to use the codes posted in the previous topic, and then confirm if it resulted.
Extremely grateful
Hugs
Hello everyone
We already have the column as we wanted. It work's ;D
Here is the picture
(https://i62.servimg.com/u/f62/17/86/45/58/a12.png)
We are very grateful. Thanks
hug's