Announcement

Collapse
No announcement yet.

How to show Last online??

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to show Last online??

    Hi!

    How can i make it possible to show last online for users in the profile and in the postbit?? Havent find a way yet and cant find it on the search...

    Please help

  • #2
    In member.php look for:
    PHP Code:
      if ($userinfo[yahoo]!="") {
        eval(
    "\$userinfo[yahooicon] = \"".gettemplate("yahoo")."\";");
      } else {
        
    $userinfo[yahoo]=" ";
      } 
    After it add:

    PHP Code:
      $userinfo[lastvisit]=vbdate($dateformat,$userinfo[lastvisit]); 
    Then put $userinfo[lastvisit] where you want the information to show up in the getinfo template.

    In admin/functions.php find:
    PHP Code:
        if ($post[yahoo]!="") {
          eval(
    "\$post[yahooicon] = \"".gettemplate("yahoo")."\";");
        } else {
          
    $post[yahoo]="";
        } 
    After it add:
    PHP Code:
      $post[lastvisit]=vbdate($dateformat,$post[lastvisit]); 
    Then add $post[lastvisit] to the postbit template where you want it.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment


    • #3
      Thx alot for your help!

      Really appreciate it

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X