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

Akay
We are!
Level:
0
Reputation:
28
Posts:
946
Likes:
109
Credits:
2.05K
19-04-2015, 11:05 AM
#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

Mr_Joker
YouR JuSt G4Y
Level:
0
Reputation:
3
Posts:
795
Likes:
51
Credits:
493
19-04-2015, 11:15 AM
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

Akay
We are!
Level:
0
Reputation:
28
Posts:
946
Likes:
109
Credits:
2.05K
19-04-2015, 11:23 AM
#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

Mr_Joker
YouR JuSt G4Y
Level:
0
Reputation:
3
Posts:
795
Likes:
51
Credits:
493
19-04-2015, 11:29 AM
#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

20-04-2015, 01:28 AM
#15
How can we make it override the others one if users have multiple?

RE: Tutorial Years of Service using template conditionals

AndresXZ09
Closed Account
Level:
0
Reputation:
30
Posts:
1.22K
Likes:
139
Credits:
1.51K
OP
20-04-2015, 01:30 AM
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

Nasyr
Forum Janitor
Administrators
Level:
54
Reputation:
284
Posts:
8.05K
Likes:
959
Credits:
80
20-04-2015, 02:14 AM
#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

12-06-2015, 08:39 PM
#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

Akay
We are!
Level:
0
Reputation:
28
Posts:
946
Likes:
109
Credits:
2.05K
12-06-2015, 08:48 PM
#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

AndresXZ09
Closed Account
Level:
0
Reputation:
30
Posts:
1.22K
Likes:
139
Credits:
1.51K
OP
12-06-2015, 10:59 PM
#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: 1 Guest(s)