Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2016-09-15 04:27:34, last edited by STD (2016-09-15 04:27:56)

STD
Formerly BenWanted
From: Binary by 0 and 1
Joined: 2015-08-19
Posts: 1,113

Years of Service?

Why not?

<setvar years>floor((TIME_NOW-$post['regdate'])/(60*60*24*365))</setvar>
<span class="service-{$GLOBALS['tplvars']['years']}">{$GLOBALS['tplvars']['years']} years of service</span>
.service-1 {
color: pink;
}

.service-2 {
color: yellow;
}

.service-3 {
color: red;
}

random-pictures-316.jpg

Offline

#2 2016-09-15 14:12:05

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: Years of Service?

Registration date isn't accurate


Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

Wooted by:

#3 2016-09-15 15:26:47

Ratburntro44
Member
Joined: 1970-01-01
Posts: 1,383
Website

Re: Years of Service?

Koya wrote:

Registration date isn't accurate

Really?

Offline

Wooted by:

#4 2016-09-15 17:07:13

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: Years of Service?

Ratburntro44 wrote:
Koya wrote:

Registration date isn't accurate

Really?

wow it's a unix system (idk)

Yeah but you bring up a good point. The registered data is basically as useful as "years of service" and can be calculated similarly. Not to mention, there's plenty more precision than if you lump the registered date into years.

Offline

#5 2016-09-15 23:02:20

STD
Formerly BenWanted
From: Binary by 0 and 1
Joined: 2015-08-19
Posts: 1,113

Re: Years of Service?

oh I didnt know there was a registration date thing under your name


random-pictures-316.jpg

Offline

#6 2016-09-16 06:30:31

N1KF
Wiki Mod
From: ဪဪဪဪဪ From: ဪဪဪဪဪ From: ဪဪဪဪဪ
Joined: 2015-02-15
Posts: 11,123
Website

Re: Years of Service?

STD wrote:

oh I didnt know there was a registration date thing under your name

Really? Does that mean most of the users registered during Member?

Offline

N1KF1474003831623207

Board footer

Powered by FluxBB

[ Started around 1735289970.5344 - Generated in 0.032 seconds, 12 queries executed - Memory usage: 1.45 MiB (Peak: 1.57 MiB) ]