FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » "Last visit" in "members"
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: "Last visit" in "members" [message #31066 is a reply to message #29033] Thu, 30 March 2006 08:25 Go to previous messageGo to previous message
confridín is currently offline  confridín   France
Messages: 11
Registered: November 2005
Karma:
Junior Member
Hello.

I tried to add the information "last_visit" in the "finduser" file.

But i've got a small problem. I'm a novice in php and i tried to understand how it works but i made a mistake.


Here is my problem:

- If i "clic" on "s'est connecté la dernière fois" (last time connected on the forum), it doesn't sort the last_visit date and i don't know why.


In finduser.tmpl, i added:
<th nowrap><div align="center"><a href="{TEMPLATE: FINDUSER_PAGE_lnk2}" class="thLnk">{MSG: finduser_lastvisit}</a></div></th>

after
<th nowrap><div align="center"><a href="{TEMPLATE: FINDUSER_PAGE_lnk2}" class="thLnk">{MSG: finduser_joindate}</a></div></th>


and

<td class="DateText nw">{TEMPLATE: finduser_last_visit}</td>

after
<td class="DateText nw">{TEMPLATE: finduser_join_date}</td>





In finduser.php, i added:
<td class="DateText nw">'.strftime("%a, %d %B %Y", $r->last_visit).'</td>

after
<td class="DateText nw">'.strftime("%a, %d %B %Y", $r->join_date).'</td>


<th nowrap><div align="center"><a href="index.php?t=finduser&amp;usr_login=<?php echo urlencode($usr_login); ?>&amp;<?php echo _rsid; ?>&amp;btn_submit=Find&amp" class="thLnk">s'est connecté la dernière fois le</a></div></th>

after
<th nowrap><div align="center"><a href="index.php?t=finduser&amp;usr_login=<?php echo urlencode($usr_login); ?>&amp;<?php echo _rsid; ?>&amp;btn_submit=Find&amp" class="thLnk">s'est inscrit le</a></div></th>




Thanks for your help.
  • Attachment: myfiles.zip
    (Size: 7.37KB, Downloaded 1488 times)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Fetch search-results via API ?
Next Topic: Viewing the same message from different threads
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 16:42:16 GMT 2024

Total time taken to generate the page: 0.04174 seconds