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)

Esdee 11-01-2002 10:04 PM

I was wondering about that as well :(

I tried adding $post[daydays] but that didn't do it -_-

Anyone ??

squawell 11-01-2002 10:20 PM

Quote:

Originally posted by \ \ - Speedy - / /
is this hack possible to add just to the postbits? like have it say

Dates Registared: 182 (and that would be it?)


can someone figure that out?

u can do this

open function.php(in admin folder)

find
PHP Code:

$jointime = (time() - $post[joindate]) / 86400// Days Joined 

above that add

PHP Code:

 // Display Days Registered
  // By: afterlab

  
$regdays round((time() - $post[joindate]) / 86400); // Days Joined
  
if ($regdays 1) { // Must be registered Today
    
$regdays "1";
    
$daydays "Day";
  }
  if (
$regdays == 1) {
    
$daydays "Day";
  } else {
    
$daydays "Days";
  } 

and put ($regdays $daydays) in ur postbit template

i think it should be work....try it :)

\ \ - Speedy - / / 11-01-2002 10:40 PM

worked like a charm, thankx a million! ;)



The Legend of Speedy

Esdee 11-02-2002 02:32 PM

great man, Thanks :D

Dynamic One 11-11-2002 09:08 AM

Thanks afterlab. For this nice hack.

isoman2kx 11-11-2002 08:43 PM

hey can anyone help me here?

// ###############################
// Open the template: #
// getinfo #
// ###############################
// FIND THIS: #
// ###############################

<tr>
<td bgcolor="{secondaltcolor}"><normalfont><b>Date Registered:</b></normalfont></td>
<td bgcolor="{secondaltcolor}"><normalfont>$userinfo[datejoined]</normalfont></td>
</tr>

i can't seem to find get info template at ALL

not on the server ftp of my board, or in the admin cp?

does it go by another name or do i not have it?

board version is vb 2.27 btw :?

-ISO

isoman2kx 11-11-2002 08:44 PM

i found member.php btw, but not get info, so i have one at least lol

Bison 11-12-2002 01:24 AM

Looks like a keeper ...

Mr. X 12-04-2002 05:14 AM

Excellent stuff Afterlab. Works like a charm on my local 2.2.9 forum, Im installing this now on my real forums.

/clicks install

Shadow-Sin 12-19-2002 07:35 AM

Good job I think i'll use it :)


All times are GMT. The time now is 09:29 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.01143 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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