Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Display Days Registered Details »»
Display Days Registered
Version: 1.00, by afterlab afterlab is offline
Developer Last Online: Jul 2022 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-31-2002 Last Update: Never Installs: 49
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-01-2002, 03:55 AM
afterlab's Avatar
afterlab afterlab is offline
 
Join Date: Oct 2001
Location: Dallas, TX
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's a goody ol' screenshot.
Reply With Quote
  #3  
Old 08-01-2002, 05:27 AM
Scrub's Avatar
Scrub Scrub is offline
 
Join Date: Oct 2001
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fun fun. .
Reply With Quote
  #4  
Old 08-01-2002, 05:34 AM
SaintDog SaintDog is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 1,975
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

- SaintDog
Reply With Quote
  #5  
Old 08-01-2002, 05:37 AM
afterlab's Avatar
afterlab afterlab is offline
 
Join Date: Oct 2001
Location: Dallas, TX
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, SaintDog and Billy Cowen, it means a lot to me hearing it from you guys.
Reply With Quote
  #6  
Old 08-01-2002, 06:57 AM
Aaow AnD wHiTe's Avatar
Aaow AnD wHiTe Aaow AnD wHiTe is offline
 
Join Date: Dec 2001
Location: Barcelona, Spain
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 08-01-2002, 08:54 AM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

SD is right, another little tweak to our boards! I will try to install it this weekend.
Reply With Quote
  #8  
Old 08-01-2002, 08:58 AM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #9  
Old 08-01-2002, 09:46 AM
Scrub's Avatar
Scrub Scrub is offline
 
Join Date: Oct 2001
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]="";
  } 
Reply With Quote
  #10  
Old 08-01-2002, 10:09 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04651 seconds
  • Memory Usage 2,303KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete