vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - Days Registered In Post (https://vborg.vbsupport.ru/showthread.php?t=42791)

eXtremeTim 08-26-2002 10:00 PM

Days Registered In Post
 
This hack will add the number of days a user has been registered in posts.

Demo: http://www.extremechatforums.com/for...?threadid=1344

g-force2k2 08-27-2002 01:19 AM

i think that afterlab created a hack like this but i could be wrong?

regards...

g-force2k2

[D]Vincent 08-27-2002 01:26 AM

<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=41754&highlight=days+re gistered" target="_blank">https://vborg.vbsupport.ru/showt...ays+registered</a> afterlab did but his says days registered in profile, this is in post so they are different.

eXtremeTim 08-27-2002 01:44 AM

Hmm never knew afterlab even did anythign similar to this. Oh well his is for profile and mines for posts so there both still different. :)

afterlab 08-27-2002 09:32 AM

That's the exact code of mine! And this is hardly a hack too.. Apart from mine, if you wanted it in the post, all you had to do was carry over my code to functions.php, rather than member.php

If you're going to take credit for something, make sure it's yours first.

eXtremeTim 08-27-2002 10:27 AM

First off i never knew you did something like this second I did make this code up.

ZiRu$ 08-27-2002 09:36 PM

cool.....i wanted this....I'll install it later

Link14716 08-27-2002 09:55 PM

Quote:

Originally posted by afterlab
That's the exact code of mine! And this is hardly a hack too.. Apart from mine, if you wanted it in the post, all you had to do was carry over my code to functions.php, rather than member.php

If you're going to take credit for something, make sure it's yours first.

Code:

Afterlab's:

  // 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";
  }

Code:

eXtremeTim's:

    // Display Days Registered In Post
        //By: eXtremeT1m

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

Looks identical to me.

eXtremeTim 08-27-2002 10:16 PM

Dude the variables are the only thing that really could have been different.
The rest was required to make it work right. But what ever.

Link14716 08-28-2002 12:04 AM

Quote:

Originally posted by eXtremeTim
Dude the variables are the only thing that really could have been different.
The rest was required to make it work right. But what ever.

not always. there are many different ways one can make a hack. but the fact you said that you never knew ythat he made a hack and the fact that the code is identical turned me off from the start.

eXtremeTim 08-28-2002 12:23 AM

Dude on this you had to do it pretty much this way and the codes not the same its just close.

bonnmac 08-28-2002 02:40 AM

I can't get it to work? All I get is () nothing in it?

ExcErr 08-28-2002 12:20 PM

hm...i have one request...
if the user is guest, than number of days is 0.
can you make it for me?

eXtremeTim 08-29-2002 10:17 AM

Sure thing ill work on that when i get home tonight.

[D]Vincent 08-29-2002 12:01 PM

What's up with this?
Look at the attached image.
-Edit-
Errr... damn thing won't attach. Anyways it says I have been registered 11920 days or something like that.

eXtremeTim 08-29-2002 07:23 PM

Then you have a problem with your server date and time or else your registeration date for your profile is messed up.

eXtremeTim 08-29-2002 08:13 PM

Heres the requested code for guest show up with days registered = 0

Find
$post[joindate]="Not Yet";

After add

$regdays = "0";
$daytext = "Days";

That should do it.

mx3 12-07-2002 11:56 PM

mine shows () too

:::Then you have a problem with your server date and time or else your registeration date for your profile is messed up.

is that your response to it? or to something else?


All times are GMT. The time now is 04:49 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.01132 seconds
  • Memory Usage 1,748KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete