FM Design
Would you like to react to this message? Create an account in a few clicks or log in to continue.

IMPORTANT

FM Design is in read-only mode, please click here for more information.

Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49

» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21

» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28

» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15

» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11

» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24

» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58

» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50

» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22

» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12

» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10

» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51

» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11

» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19

» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34

Recent Tutorials
Top posting users this month

Who is online?
In total there are 24 users online :: 0 Registered, 0 Hidden and 24 Guests :: 1 Bot

None

[ View the whole list ]


Most users ever online was 515 on Tue 14 Sep 2021, 15:24

Need a clock

View previous topic View next topic Go down

FiB
FiB

Gender : Male
Posts : 185
Points : 3626
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Wed 08 Feb 2017, 14:29

Can anyone tell me where I can get a clock for my forum, I need it to show the local time no matter where you are in the world, ie as I am in the uk I want to see the local time for the uk but for some one on Bulgaria they would need to see their local time, so I assume it would get the time from the users Ip ?



This is what I have been using for the last 5 year but the site seems to have stopped working over the last 2 weeks


Code:
<iframe style="width: 170px; height: 170px;" src="http://onlinehtmltools.com/clocks/analog-clock/clock2/" name="iframe985426" scrolling="No" frameborder="0" align="middle"></iframe><br />
Valoish
Valoish
Graphic Designer
Gender : Female
Age : 27
Posts : 3671
Points : 7119
Reputation : 360
Location : NYC
Language : English, Russian, Hebrew
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
http://www.canvasforums.com https://twitter.com/Valoishx3

PostValoish Wed 08 Feb 2017, 16:50

Try this one maybe? c:
http://www.clocklink.com/
FiB
FiB

Gender : Male
Posts : 185
Points : 3626
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Thu 09 Feb 2017, 02:39

Thanks @Valoish
FiB
FiB

Gender : Male
Posts : 185
Points : 3626
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Thu 09 Feb 2017, 06:16

I've tried that and it works fine but I need one that will show the local time no matter where in the world you are as my members are all over the world.
Wolfuryo
Wolfuryo

Gender : Male
Posts : 256
Points : 3567
Reputation : 81
Language : Romanian and English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other

PostWolfuryo Fri 10 Feb 2017, 12:25

Hi,

If you want it to display the time without any clock-looking form, add this javascript code to your forum:
Code:
$(function(){
setInterval(function(){
$("#time").text(Date().split(" ")[4]);
}, 1000);
}
Then add this HTML code where you want the clock to be displayed:
Code:
<div id="time"></div>

Enjoy!
SLGray
SLGray
Valued Member
Gender : Male
Age : 51
Posts : 2465
Points : 7106
Reputation : 290
Location : United States
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : ModernBB
http://www.fmthemes.forumotion.com https://www.facebook.com/FM-Themes-655055824604957 https://twitter.com/FMThemes https://pinterest.com/FMThemes

PostSLGray Fri 10 Feb 2017, 14:38

FIB wants a clock that will show the correct time for each member.

It will show my time (Central Timezone).
Your time (French timezone).
Another Member (Australia timezone).
Wolfuryo
Wolfuryo

Gender : Male
Posts : 256
Points : 3567
Reputation : 81
Language : Romanian and English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other

PostWolfuryo Sat 11 Feb 2017, 06:12

SLGray wrote:FIB wants a clock that will show the correct time for each member.

It will show my time (Central Timezone).
Your time (French timezone).
Another Member (Australia timezone).
My code shows the time based on the computer's internal clock, so it should work Smile
FiB
FiB

Gender : Male
Posts : 185
Points : 3626
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Mon 13 Feb 2017, 04:57

Andrei34 wrote:Hi,

If you want it to display the time without any clock-looking form, add this javascript code to your forum:
Code:
$(function(){
setInterval(function(){
$("#time").text(Date().split(" ")[4]);
}, 1000);
}
Then add this HTML code where you want the clock to be displayed:
Code:
<div id="time"></div>

Enjoy!

Thank your @Andrei34 for your advice, I have a clock on my forum at present in the portal using a widget so can you please be more specific as to what I must do? as I am not to good with this sort of thing but I can follow instructions. Thank you Wink
Wolfuryo
Wolfuryo

Gender : Male
Posts : 256
Points : 3567
Reputation : 81
Language : Romanian and English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other

PostWolfuryo Tue 14 Feb 2017, 11:20

First go to the javascript code management section in your admin panel and add this code with placement an all pages:
Code:
$(function(){
setInterval(function(){
$("#time").text(Date().split(" ")[4]);
}, 1000);
}
If you want the clock to be shown in a widget, add this code to that widget:
Code:

<div id="time"></div>

Good luck! Thumb left
FiB
FiB

Gender : Male
Posts : 185
Points : 3626
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Tue 14 Feb 2017, 14:48

@Andrei34 I Followed your instructions but the clock is still only showing UK time in Bulgaria. Below is what I have in the clock widget, I also followed step (1)

Code:
<center>
    <iframe scrolling="no" clocktype="html5" style="overflow:hidden;border:0;margin:0;padding:0;width:100px;height:100px;" src="http://www.clocklink.com/html5embed.php?clock=005&timezone=GMT00&color=blue&size=100&Title=&Message=&Target=&From=2017,1,1,0,0,0&Color=blue" frameborder="no"> </iframe>
</center>
<div id="time">
</div>
Wolfuryo
Wolfuryo

Gender : Male
Posts : 256
Points : 3567
Reputation : 81
Language : Romanian and English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other

PostWolfuryo Tue 14 Feb 2017, 15:39

Delete the javascript code that you added in first step, than remove all the code from the widget, adding this in it's place:
Code:
<script>$(document).ready(function(){
setInterval(function(){
$("#time").text(Date().split(" ")[4]);
}, 1000);
}</script><div id="time"></div>
FiB
FiB

Gender : Male
Posts : 185
Points : 3626
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Tue 14 Feb 2017, 17:27

@Andrei34 First of all thank you for all your help and patients Wink

This is what I now have in my Clock widget, is this correct? its the clock code and the code you created. If I remove all the clock code and only put yours in the widget then it does not show any clock. There is no difference to several members that I have asked to check the clock. here is a link to my forum portal http://www.ourbulgariaforum.com/portal

Code:
<center>
       <iframe scrolling="no" clocktype="html5" style="overflow:hidden;border:0;margin:0;padding:0;width:100px;height:100px;" src="http://www.clocklink.com/html5embed.php?clock=005&timezone=GMT00&color=blue&size=100&Title=&Message=&Target=&From=2017,1,1,0,0,0&Color=blue" frameborder="no"> </iframe>
</center><script>$(document).ready(function(){
        setInterval(function(){
        $("#time").text(Date().split(" ")[4]);
        }, 1000);
        }</script>
<div id="time">
   
</div>
Wolfuryo
Wolfuryo

Gender : Male
Posts : 256
Points : 3567
Reputation : 81
Language : Romanian and English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other

PostWolfuryo Wed 15 Feb 2017, 13:33

Hello,

There are 2 problems with your code. First one is that you have to remove the old code. The code should be:
Code:
<script>$(document).ready(function(){
setInterval(function(){
$("#time").text(Date().split(" ")[4]);
}, 1000);
})</script>
<div id="time"></div>
When editing the code for the widget, make sure that Switch Editor Mode buttoon from the editor is clicked. If it's not clicked, the $ sign will be transformed into &#36.
If you don't manage to make it work, send me a pm with username and password of an admin account(it can be a simple admin account, not necessary the founder account).

Good luck!
FiB
FiB

Gender : Male
Posts : 185
Points : 3626
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Thu 16 Feb 2017, 06:36

I think I may have sorted it ? I will come back in a couple of days and let you know cheers
FiB
FiB

Gender : Male
Posts : 185
Points : 3626
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Thu 16 Feb 2017, 13:41

Just want to say a big thank you to @Andrei34 for all his help and support.

" THANKYOU "





Wolfuryo
Wolfuryo

Gender : Male
Posts : 256
Points : 3567
Reputation : 81
Language : Romanian and English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other

PostWolfuryo Thu 16 Feb 2017, 14:48

FiB wrote:
Just want to say a big thank you to @Andrei34 for all his help and support.

" THANKYOU "





Thanks you, bro! Smile
Sponsored content

PostSponsored content

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum