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
  #12  
Old 08-01-2002, 02:28 PM
afterlab's Avatar
afterlab afterlab is offline
 
Join Date: Oct 2001
Location: Dallas, TX
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Xiphoid: I rechecked my member.php file, as well a new install of member.php from v2.2.6 and those 3 lines are easily found within there. Maybe you modifying those 3 lines due to a hack.

Boofo: That's because it rounds everything to the nearest full day -- By seconds, minutes, and hours. If that wasn't there, you would get results like "43.715318 Days".
Reply With Quote
  #13  
Old 08-01-2002, 02:43 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by afterlab
Boofo: That's because it rounds everything to the nearest full day -- By seconds, minutes, and hours. If that wasn't there, you would get results like "43.715318 Days".
Oh, ok, I see. that makes sense now.

Is there any way to put the actual time the person registered behind the date registered then so it will make more sense to the newbies out there?
Reply With Quote
  #14  
Old 08-01-2002, 02:45 PM
afterlab's Avatar
afterlab afterlab is offline
 
Join Date: Oct 2001
Location: Dallas, TX
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, i'm working on it. It's my first time using the date() function, so..
Reply With Quote
  #15  
Old 08-01-2002, 02:45 PM
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Posts: 1,926
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice, these are very useful thing you are coming out with!
Keep it up

Drk
Reply With Quote
  #16  
Old 08-01-2002, 02:56 PM
ZiRu$'s Avatar
ZiRu$ ZiRu$ is offline
 
Join Date: Jan 2002
Location: Manitoba, Canada
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that is dope!!!!
Reply With Quote
  #17  
Old 08-01-2002, 03:02 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great job
Reply With Quote
  #18  
Old 08-01-2002, 10:45 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It looks quite nice in the memberslist also

In memberslist.php, find:
PHP Code:
$userinfo[datejoined]=vbdate($dateformat,$userinfo[joindate]); 
Below add:
PHP Code:
// Display Days Registered
  // By: afterlab

  
$regdays round((time() - $userinfo[joindate]) / 86400); // Days Joined
  
if ($regdays 1) { // Must be registered Today
    
$regdays "1";
    
$daydays "Day";
  }
  if (
$regdays == 1) {
    
$daydays "Day";
  } else {
    
$daydays "Days";
  } 
In template memberlistbit, find:
Code:
<normalfont>$userinfo[datejoined]</normalfont>
Replace it with:
Code:
<normalfont>$userinfo[datejoined]</normalfont> <smallfont>($regdays $daydays)</smallfont>
Here's a pic:
Reply With Quote
  #19  
Old 08-01-2002, 10:48 PM
afterlab's Avatar
afterlab afterlab is offline
 
Join Date: Oct 2001
Location: Dallas, TX
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good job, looks cool. I'll add a link to your post in the first post for this hack.
Reply With Quote
  #20  
Old 08-02-2002, 02:51 AM
Schorsch's Avatar
Schorsch Schorsch is offline
 
Join Date: Jul 2002
Location: Germany
Posts: 345
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works fine so far, thank you, but I have a question:

how can I change the word "days" into german "Tage" ?

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

Ah, quite easily. Search for this:

Code:
    $daydays = "Days";
Replace it with this:

Code:
    $daydays = "Tage";
You should also make this German too -- Find this (2 instances, find both):

Code:
    $daydays = "Day";
Replace both instances with this:

Code:
    $daydays = "Tag";
Enjoy.
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:59 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.05100 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
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
  • (6)bbcode_code
  • (2)bbcode_php
  • (1)bbcode_quote
  • (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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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