Topic: Last Logged in Date
Anyone help me with placing {member_last_visit} in the right template? Want it to show up on member profiles.
Last edited by dragon (2009-04-23 22:07:52)
You are not logged in.
Anyone help me with placing {member_last_visit} in the right template? Want it to show up on member profiles.
Last edited by dragon (2009-04-23 22:07:52)
place it in the member_section.card.tpl
<dt>Last login: </dt>
<dd>{member_last_visit}</dd>Last edited by seeme101 (2009-06-14 17:35:47)
Thanks Seeme - and extra thanks for the other big help too ![]()
Awesome! Finally a modification that I was able to do!
Anyone any idea about this mod in 2.5.5? Doesn't seem to be a member_section.card.tpl
it is member_section.card.tpl on 2.5.5
and it should work with 2.5.5 to ...
<!-- IF member_type_label == "members" -->
<!-- IF profile_field_age_name -->
<dt>{lang:"core","userinfo_age"}:</dt>
<dd>{profile_field_age_value_years} </dd>
<!-- ENDIF -->
<!-- IF profile_field_gender1_name -->
<dt>{lang:"core","userinfo_gender"}:</dt>
<dd>{profile_field_gender1_value} </dd>
<!-- ENDIF -->
<!-- IF profile_field_gender2_name -->
<dt>{lang:"core","userinfo_seeking"}:</dt>
<dd>{profile_field_gender2_value} </dd>
<!-- ENDIF -->
<!-- IF profile_field_country_name OR profile_field_city_name -->
<dt>{lang:"core","userinfo_location"}:</dt>
<dd>{profile_field_country_value}<!-- IF profile_field_city_value -->, {profile_field_city_value}<!-- ENDIF --> </dd>
<!-- ENDIF -->
<dt>Last login: </dt>
<dd>{member_last_visit}</dd>Now it show beside the members profile:
Age:
Gender:
Seeking:
Location:
Last login:
Last edited by gugu (2010-11-08 13:54:20)
where do you change the date format instead of being month/date/year want it to be date/month/year
thanks
I tried and its not working for me in 2.5.5
this mod is not working for me, I can see my own last time active, but not of other members. when I log in as other member too, I can only see my last time active, and nobody else`s ![]()
Hi Emir, that's because 2.5.5 member_profile.tpl DOESN'T use member_sections_card.tpl in it. You have to put in file directly.
Where to put exactly and what?please be more specific.thanks.Do i have to create a field in Cp for members and label it member_last_visit?
Last edited by sadat (2010-01-06 10:28:01)
Sadat, per your request, hopefully the following helps you.
This is for version 2.5.5


If you want to copy and paste the coding I used in member_profile.tpl here it is:
Last Visit: {member_last_visit}<br>
Join Date: {member_join_date}<br>
cheers
dan
Its working but it displays like that
Join Date: 06/Jan/2010
Last Visit: 6 hours ago
last visit not with date
and i have a member Last Visit: 0
so its working but last visit its not displaying like yours.
hmmmm, not sure what to say. It must be a php thing, but I have no php skills to know why they are different. Maybe someone else will chime in and help.
I would also like to know that. At my site i see fx 02/01/2010 (d/m/y) .. I want: 2 january 2010 but don't know where to look either.
Thanks
any update on how to do this in 2.5.7?
I'm confused by:
member_profile_or.tpl
member_profile_opn.tpl
member_profile_alt.tpl
Which one to add the code to?
It's because you are using luvpoint's template.
Your actual file depends on your settings.tpl values.
Just try to modify your files one by one, change/test, and you'll see the file that's right for you.
Works for 6.0 version also thanks for the mod
Hi where can i find and do this on the latest version?
It works fine with VLD 2.7
You have to open your "member_profile.tpl". You find it in "templates"
Than copy the code in that place you want it.
It's because you are using luvpoint's template.
Your actual file depends on your settings.tpl values.Just try to modify your files one by one, change/test, and you'll see the file that's right for you.
I also have a luvpoint template, and cannot find the appropriate file. Any help would be appreciated!