The Arcive of vBulletin Modifications Site. |
|
Days Registered In Post Details »»
|
|||||||||||||||||||||||||
This hack will add the number of days a user has been registered in posts.
Demo: http://www.extremechatforums.com/for...?threadid=1344 Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
i think that afterlab created a hack like this but i could be wrong?
regards... g-force2k2 |
|
#3
|
||||
|
||||
|
<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.
|
|
#4
|
|||
|
|||
|
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.
|
|
#5
|
||||
|
||||
|
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. |
|
#6
|
|||
|
|||
|
First off i never knew you did something like this second I did make this code up.
|
|
#7
|
||||
|
||||
|
cool.....i wanted this....I'll install it later
|
|
#8
|
||||
|
||||
|
Quote:
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
|
|
#9
|
|||
|
|||
|
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. |
|
#10
|
||||
|
||||
|
Quote:
|
![]() |
|
|