MyBB Tutorials

Tutorial Years of Service using template conditionals

Submitted by AndresXZ09, , Thread ID: 2820

Thread Closed

RE: Tutorial Years of Service using template conditionals

#11
19-04-2015, 11:01 AM
Mr_Joker Wrote:
How do i do 5 years? I want it to say 5 years

365 days is 1 Year.

RE: Tutorial Years of Service using template conditionals

This post was last modified: 19-04-2015, 11:18 AM by Mr_Joker
#12
19-04-2015, 11:05 AM
Kewl Wrote:
19-04-2015, 11:01 AM
Mr_Joker Wrote:
How do i do 5 years? I want it to say 5 years

365 days is 1 Year.


How do i make it say 5 years ?

Or instead of making it default how do i do it for example USERID 1 ?

RE: Tutorial Years of Service using template conditionals

#13
19-04-2015, 11:15 AM
Mr_Joker Wrote:
19-04-2015, 11:05 AM
Kewl Wrote:
19-04-2015, 11:01 AM
Mr_Joker Wrote:
How do i do 5 years? I want it to say 5 years

365 days is 1 Year.


How do i make it say 5 years ?

Or instead of making it default how do i do it for example USERID 1 ?

Replace

(60*60*24*365)

with

(60*60*24*1825)

RE: Tutorial Years of Service using template conditionals

#14
19-04-2015, 11:23 AM
Kewl Wrote:
19-04-2015, 11:15 AM
Mr_Joker Wrote:
19-04-2015, 11:05 AM
Kewl Wrote:
19-04-2015, 11:01 AM
Mr_Joker Wrote:
How do i do 5 years? I want it to say 5 years

365 days is 1 Year.


How do i make it say 5 years ?

Or instead of making it default how do i do it for example USERID 1 ?

Replace

(60*60*24*365)

with

(60*60*24*1825)

Thanks Dude! Smile

RE: Tutorial Years of Service using template conditionals

#15
How can we make it override the others one if users have multiple?

RE: Tutorial Years of Service using template conditionals

OP
This post was last modified: 20-04-2015, 01:35 AM by AndresXZ09
#16
20-04-2015, 01:28 AM
Pirate Wrote:
How can we make it override the others one if users have multiple?

Haven't tested yet but maybe with elseif, idk.

Edit: yup, it does works with elseif

RE: Tutorial Years of Service using template conditionals

#17
It's a good release and an easy to follow tutorial.
Please read the award requirements here before applying for them.
Rules and Regulations | Support Section | How to use Hide Tags
Don't message me to join a group, simply request to join one here.

RE: Tutorial Years of Service using template conditionals

#18
This does not overwrite the last one after you pass a new timestamp.

[Image: ARZfjrv.png]

RE: Tutorial Years of Service using template conditionals

#19
12-06-2015, 08:39 PM
Pirate Wrote:
This does not overwrite the last one after you pass a new timestamp.

[Image: ARZfjrv.png]

elseif will work.

RE: Tutorial Years of Service using template conditionals

OP
#20
Holy shit, many spoonfeeding

Content locked
This content has been locked. Please login or register in order to unlock it.

Users browsing this thread: 3 Guest(s)