Sinisterly
REGDATE - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Design (https://sinister.ly/Forum-Design)
+--- Forum: Web Design (https://sinister.ly/Forum-Web-Design)
+--- Thread: REGDATE (/Thread-REGDATE)

Pages: 1 2


REGDATE - Midnight - 08-04-2015

Learning the hard way since this involves some math :noh: :noh: :noh:

So this:
Code:
<if $post['regdate']+(60*60*24) <= TIME_NOW then><span style="color: gold;">One Day of Service</span></if>

IIRC,
60*60*24 is one day?

Help me understand, please :yus: :yus:


RE: REGDATE - Choopie - 08-04-2015

Isn't it 3 months then 2 years ?


RE: REGDATE - Midnight - 08-04-2015

(08-04-2015, 03:05 AM)Choopie Wrote: Isn't it 3 months then 2 years ?

I dunno.
That is why meh is trying to learn the REGDATE codes (60*60*24*365 and etc) :noh:


RE: REGDATE - Choopie - 08-04-2015

(08-04-2015, 03:07 AM)Paradise Wrote:
(08-04-2015, 03:05 AM)Choopie Wrote: Isn't it 3 months then 2 years ?

I dunno.
That is why meh is trying to learn the REGDATE codes (60*60*24*365 and etc) :noh:

well i know 60= 60 days= 3 months 24 months = years 365= 1 year i think that is how it works


RE: REGDATE - Midnight - 08-04-2015

(08-04-2015, 03:13 AM)Choopie Wrote:
(08-04-2015, 03:07 AM)Paradise Wrote:
(08-04-2015, 03:05 AM)Choopie Wrote: Isn't it 3 months then 2 years ?

I dunno.
That is why meh is trying to learn the REGDATE codes (60*60*24*365 and etc) :noh:

well i know 60= 60 days= 3 months 24 months = years 365= 1 year i think that is how it works

So. urrrm
I need a way to do it live.

Like constantly updates each day


RE: REGDATE - Choopie - 08-04-2015

(08-04-2015, 03:21 AM)Paradise Wrote:
(08-04-2015, 03:13 AM)Choopie Wrote:
(08-04-2015, 03:07 AM)Paradise Wrote:
(08-04-2015, 03:05 AM)Choopie Wrote: Isn't it 3 months then 2 years ?

I dunno.
That is why meh is trying to learn the REGDATE codes (60*60*24*365 and etc) :noh:

well i know 60= 60 days= 3 months 24 months = years 365= 1 year i think that is how it works

So. urrrm
I need a way to do it live.

Like constantly updates each day

That i don't know @Sazama will know


RE: REGDATE - Jasper - 08-04-2015

60 = seconds
60 = minutes
24 = hours

=

1 day.


RE: REGDATE - Midnight - 08-04-2015

(08-04-2015, 11:22 AM)Sazama Wrote: 60 = seconds
60 = minutes
24 = hours

=

1 day.

Ahh, seems easy now.
Thank you.

How would you do it so it updates each day with a new color and new day, months, week lol? :noh:


RE: REGDATE - Quanity - 08-04-2015

(08-04-2015, 12:51 PM)Paradise Wrote:
(08-04-2015, 11:22 AM)Sazama Wrote: 60 = seconds
60 = minutes
24 = hours

=

1 day.

Ahh, seems easy now.
Thank you.

How would you do it so it updates each day with a new color and new day, months, week lol? :noh:

Use elseif tags and different css or else go to advance php lol Tongue


RE: REGDATE - Kotomi - 08-11-2015

(08-04-2015, 03:29 PM)Believer Wrote:
(08-04-2015, 12:51 PM)Paradise Wrote:
(08-04-2015, 11:22 AM)Sazama Wrote: 60 = seconds
60 = minutes
24 = hours

=

1 day.

Ahh, seems easy now.
Thank you.

How would you do it so it updates each day with a new color and new day, months, week lol? :noh:

Use elseif tags and different css or else go to advance php lol Tongue

To make a "service" badge shouldn't be that hard lol