vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Display Days Registered (https://vborg.vbsupport.ru/showthread.php?t=41754)

afterlab 07-31-2002 10:00 PM

Display Days Registered
 
Display Days Registered
Because we aren't all mathmaticians.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=
This hack will add a new way for displaying how long each member has been registered in their profile; in days.

Modifications
=-=-=-=-=-=-=-=-=-=-=-=
* 1 file alteration.
* 1 template alteration.

Add-On
=-=-=-=-=-=-=-=-=-=-=-=
* 1 file alteration.
* 1 template alteration.

The add-on can be found here.

More Information
=-=-=-=-=-=-=-=-=-=-=-=
Compatibility: This hack will work with vB 2.0.3 and higher.
Install Time: 1-3 Minutes.
Screenshot: Click Here
Download: Instructions are in attachment.

afterlab 08-01-2002 03:55 AM

Here's a goody ol' screenshot.

Scrub 08-01-2002 05:27 AM

Fun fun. :D.

SaintDog 08-01-2002 05:34 AM

Another nice little hack by Afterlab :); Good job, keep on hacking ;).

- SaintDog

afterlab 08-01-2002 05:37 AM

Thanks, SaintDog and Billy Cowen, it means a lot to me hearing it from you guys.

Aaow AnD wHiTe 08-01-2002 06:57 AM

Thanx buddy!! It will be nice to have this in our postbit instead of the month you registered. It would be cool if it could display the time registered in years and months, depending on how long you've been registered ;) Just a little sugestion :D

Floris 08-01-2002 08:54 AM

SD is right, another little tweak to our boards! I will try to install it this weekend.

Floris 08-01-2002 08:58 AM

In /member.php I can not find the line if ($userinfo[customtitle]==2) or any of the other two. You sure it is the right file?

Scrub 08-01-2002 09:46 AM

It should be located in this code below.
PHP Code:

// display user info

  
$userinfo=getuserinfo($userid);
  
$usergroupperms getpermissions(0$userinfo['userid'], $userinfo['usergroupid']);

  if (
$userinfo[customtitle]==2)
    
$userinfo[usertitle] = htmlspecialchars($userinfo[usertitle]);
  
$userinfo[datejoined]=vbdate($dateformat,$userinfo[joindate]);

  
$jointime = (time() - $userinfo[joindate]) / 86400// Days Joined
  
if ($jointime 1) { // User has been a member for less than one day.
    
$postsperday "$userinfo[posts]";
  } else {
    
$postsperday sprintf("%.2f",($userinfo[posts] / $jointime));
  }

  if (
$userinfo[homepage]!="http://" and $userinfo[homepage]!="") {
    
$userinfo[homepage]=$userinfo[homepage];
  } else {
    
$userinfo[homepage]="";
  } 


Boofo 08-01-2002 10:09 AM

I have 2 users that registered on the same day yet it shows their days one day apart. The both registered on May 5th and for one it says 88 days and the other says 87 days. Is this calculated by the time of day, too? If so, can it be calcualted by just the day so it makes more sense in a situation like the one I described? :) Thanks for a great little hack! It's the ones like these that make the real difference in a board. :)


All times are GMT. The time now is 09:57 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01137 seconds
  • Memory Usage 1,743KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete