3.1.x Extensions Database 3.1 / 3.2[DEV] Live time clock

<span class="qte-attr qte_31_32-qte">3.1.x &amp; 3.2.x</span>
User avatar

Topic Author
all4phone
Donator
Donator
Posts: 75
Joined: 29 May 2016, 13:33
    Windows 10 Chrome

[DEV] Live time clock

Post by all4phone »

Extension Name: Live time clock
Author: all4phone

Extension Description: This extension allows full configuration of format the day, date, year, and clock on index page and replaces static clock with live time clock.

IMPORTANT
This extension is't validated, so as always do not install on a live board!
Added for testing only.

../..

Screens:
none

Demo: demo board

Extension Download:
ltc_v_0.1.5.zip
Installation:
  1. Download the latest release and unzip the content.
  2. Copy the all4phone folder to your server, into the (forum root)/ext/ directory.
    (If done correctly, you will see the main extension class at (forum root)/ext/all4phone/ltc/composer.json)
  3. Navigate in the ACP to `Customise -> Manage extensions`
  4. Look for Live Time Clock under the Disabled Extensions list, and click its Enable link.
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.
Last edited by all4phone on 03 Jul 2016, 22:44, edited 9 times in total.

User avatar

dmzx
Founder
Founder
Posts: 6466
Joined: 13 Jan 2014, 21:45
    Windows 10 Firefox

Re: Live time clock

Post by dmzx »

Thanks for sharing this, nice to see some other extensions posted :thumbup:

User avatar

Topic Author
all4phone
Donator
Donator
Posts: 75
Joined: 29 May 2016, 13:33
    Windows 7 Firefox

Re: Live time clock

Post by all4phone »

My pleasure :thumbup:
all4phone wrote:IMPORTANT
This extension is't validated, so as always do not install on a live board!
Added for testing only.
...because of denied revision 1.0.0 on phpbb.com
I submitted this extension to CDB but:
Extensions Team wrote: styles/prosilver/template/js/en/ltc_clock_12.js

Code: Select all

 var format ="am";
      if(hours > 11) { format="pm"; }
      if (hours > 12) { hours = hours - 12; }
      if (hours == 0) { hours = 12; }

   document.getElementById('clock').innerHTML =(" " + hours + ":" + minutes + ":" + seconds + " " + format);
Please detect if the current logged in user is using either AM/PM or the 24h time format.

styles/prosilver/template/js/en/ltc_short_days_short_month.js

Code: Select all

    var days = new Array("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat");
    var month = new Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
Even though you've placed this into a folder called "en", it's still in /template/ and therefore considered hardcoded language. You can fill this array in the template file instead and use phpBB's default language strings for days and months located in phpBB's language/en/common.php.
No idea how to solve this.
I have no big experience, any help realy appreciated :sad:

User avatar

dmzx
Founder
Founder
Posts: 6466
Joined: 13 Jan 2014, 21:45
    Windows 10 Firefox

Re: Live time clock

Post by dmzx »

Need to check on this.

User avatar

Topic Author
all4phone
Donator
Donator
Posts: 75
Joined: 29 May 2016, 13:33
    Windows 7 Firefox

Re: Live time clock

Post by all4phone »

Yes, please :tumbsyes:

User avatar

Topic Author
all4phone
Donator
Donator
Posts: 75
Joined: 29 May 2016, 13:33
    Windows 7 Firefox

Re: Live time clock

Post by all4phone »

I change version to 0.1.0, I'll add a few more options soon.

Now new download availables:
- ACP added
- possibility change color of day, date and clock
- two options of clock (12/24)

User avatar

Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01
    Windows 10 Firefox

Re: [DEV] Live time clock

Post by Sniper_E »

I threw a little throb from one of dmzx's extension in your css.

Code: Select all

@-webkit-keyframes throb {
from { text-shadow: 0 0 7px; }
50% { text-shadow: 0 0 2px; }
to { text-shadow: 0 0 7px; }
}

@-moz-keyframes throb {
from { text-shadow: 0 0 7px; }
50% { text-shadow: 0 0 2px; }
to { text-shadow: 0 0 7px; }
} 

.live-time-clock {
	font-size: 1.1em;
	font-family: Verdana;
	float: left;
	margin-top:4px
	-webkit-animation: throb 4s infinite;
	animation: throb 1s infinite; 
}

p.responsive-center {
	display: none;
	text-align: center;
	margin: 0;
}

@media only screen and (max-width: 500px), only screen and (max-device-width: 500px)
{
p.responsive-last-visit-date {
	text-align: center;
	float: none;
}
It is really standing out now... Your live time clock is much nicer than the normal. :tumbsyes:
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar

Topic Author
all4phone
Donator
Donator
Posts: 75
Joined: 29 May 2016, 13:33
    Windows 10 Firefox

Re: [DEV] Live time clock

Post by all4phone »

Thank you very much for this improvement. I think I can adopt it to the next release :tumbsyes:

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12
    Windows 10 Chrome

Re: [DEV] Live time clock

Post by martin »

There must be 3 or 4 versions of the clock now :eusa_dance:
Image

User avatar

Topic Author
all4phone
Donator
Donator
Posts: 75
Joined: 29 May 2016, 13:33
    Windows 10 Firefox

Re: [DEV] Live time clock

Post by all4phone »

Hmm, why?

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12
    Windows 10 Chrome

Re: [DEV] Live time clock

Post by martin »

A few ppl have made an ext for a live clock but dont think they have posted it on phpbb,com

User avatar

Topic Author
all4phone
Donator
Donator
Posts: 75
Joined: 29 May 2016, 13:33
    Windows 8 Internet Explorer

Re: [DEV] Live time clock

Post by all4phone »

Oh yes, I saw :D
So, I'm posted, w'll see :wink:

But all live clocs are different I hope :lol:

User avatar

zardos
Users
Users
Posts: 175
Joined: 26 Feb 2016, 23:20
    Windows 10 Firefox

Re: [DEV] Live time clock

Post by zardos »

Nice work all4phone, thankyou. :tumbsyes:
Image

User avatar

Topic Author
all4phone
Donator
Donator
Posts: 75
Joined: 29 May 2016, 13:33
    Windows 7 Firefox

Re: [DEV] Live time clock

Post by all4phone »

zardos wrote: 16 Jun 2016, 22:44 Nice work all4phone, thankyou. :tumbsyes:
thanks

First post updated:
- fixed known bugs
- added new download
- new screen
- Added changes suggested by
Sniper_E, (thanks :wink: )
Last edited by all4phone on 17 Jun 2016, 01:28, edited 2 times in total.

User avatar

zardos
Users
Users
Posts: 175
Joined: 26 Feb 2016, 23:20
    Windows 10 Firefox

Re: [DEV] Live time clock

Post by zardos »

:tumbsyes:

Post Reply Previous topicNext topic