1

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)

2

Re: Last Logged in Date

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)

3

Re: Last Logged in Date

Thanks Seeme - and extra thanks for the other big help too smile

4

Re: Last Logged in Date

Awesome! Finally a modification that I was able to do!

5

Re: Last Logged in Date

Anyone any idea about this mod in 2.5.5? Doesn't seem to be a member_section.card.tpl

6

Re: Last Logged in Date

Bump smile

7

Re: Last Logged in Date

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}&nbsp;</dd>
<!-- ENDIF -->
<!-- IF profile_field_gender1_name -->
<dt>{lang:"core","userinfo_gender"}:</dt>
<dd>{profile_field_gender1_value}&nbsp;</dd>
<!-- ENDIF -->
<!-- IF profile_field_gender2_name -->
<dt>{lang:"core","userinfo_seeking"}:</dt>
<dd>{profile_field_gender2_value}&nbsp;</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 -->&nbsp;</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)

8

Re: Last Logged in Date

Thanks, I'll take another look smile

9

Re: Last Logged in Date

Yes, works fine n 2.5.5 - thanks again gugu!

10

Re: Last Logged in Date

where do you change the date format instead of being month/date/year want it to be date/month/year

thanks

11

Re: Last Logged in Date

maybee this

12

Re: Last Logged in Date

I tried and its not working for me in 2.5.5

13

Re: Last Logged in Date

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 smile

14

Re: Last Logged in Date

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.

15

Re: Last Logged in Date

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)

16

Re: Last Logged in Date

Sadat, per your request, hopefully the following helps you.

This is for version 2.5.5

[img]http://www.filipina-lady.net/test253/sad01.jpg[/img]

[img]http://www.filipina-lady.net/test253/sad02.jpg[/img]

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

17

Re: Last Logged in Date

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.

18

Re: Last Logged in Date

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.

19

Re: Last Logged in Date

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

20

Re: Last Logged in Date

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?

21

Re: Last Logged in Date

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.

22

Re: Last Logged in Date

Works for 6.0 version also thanks for the mod

23

Re: Last Logged in Date

Hi where can i find and do this on the latest version?

24

Re: Last Logged in Date

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.

25

Re: Last Logged in Date

radioact wrote

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!