1

Topic: Not showing {member_last_visit} ?

I'm trying to add a Last Login field under the General tab in the profile pages. I've almost got there but rather than post the last login, it simply shows the code instead: {member_last_visit}

           

<div class="datainfo profile" id="profile_data_{rowcnt}_content" style="display: none">
                                    <dl class="datainfo">
                                        <!-- BEGIN profile_fields -->
                                            <dt>{field_name}:</dt>
                                            <dd>
                                                <!-- IF field_value -->
                                                    <!-- IF field_type == "checkbox" -->
                                                        {break:field_value}
                                                    <!-- ELSEIF field_type == "birthday" -->
                                                        {field_value_years}
                                                    <!-- ELSE -->
                                                        {field_value}
                                                    <!-- ENDIF -->
                                                <!-- ELSE -->
                                                    {lang:"core","user_field_none"}
                                                <!-- ENDIF -->
                                            </dd>
                                        <!-- END profile_fields -->
                                        
                                          <!-- IF group_label == "general" -->
                                                  <dt>Last login: </dt>
<dd> {member_last_visit} </dd>
                                                <!-- ENDIF -->
                                    </dl>

Last edited by mark7144 (2011-08-07 21:49:16)

2

Re: Not showing {member_last_visit} ?

Bump?

3

Re: Not showing {member_last_visit} ?

profile type bug ;-)

4

Re: Not showing {member_last_visit} ?

When you use global tags inside the loops (such as begin/end), you must prefix those tags with {top.}, for example {top.member_last_visit}

Developer