Mewwn
New Member
Posts: 11
inherit
254990
0
Dec 20, 2018 7:42:44 GMT -8
Mewwn
11
May 2018
mewwn
|
Post by Mewwn on May 18, 2018 17:50:12 GMT -8
Heya! So, to get straight to the point, I'm looking for a way to display the forum's universal date & time, live. At first, I thought there would be some sort of preset variable available, but I couldn't find anything. After extensive Googling, I decided to come here. I'm wanting to display said time inside a div. Just in case, here's the HTML
<div class="ic-table">
<div class="ic-title">
Welcome to WEBSITE, $[current_user]!
</div>
<div class="ic-content">
The current time is:<br>
TIME/CLOCK HERE
</div>
</div> Followed by the CSS:
.ic-table {
background-color: antiquewhite;
text-align: center;
display:inline-block;
border: 2px solid black;
height:auto;
width:32%;
}
.ic-title {
background-color:tan;
padding:1.5%;
font-size: 110%;
letter-spacing: 3px;
font-weight:bold;
}
.ic-content {
background-color:bisque;
padding:1.5%;
} I did try plugin use, but none were of satisfaction, as they created a whole new bar on the forum wrapper that I couldn't remove. Please excuse any obvious ignorance, I'm still learning this stuff, and I've yet to involve myself in the support community until now. The code presented was created by myself, thus there are no copyright concerns.
|
|
inherit
140147
0
Apr 30, 2024 0:07:08 GMT -8
Nscalerr 🐺
Throw me to the wolves and I'll return leading the pack!
3,007
May 2009
nscalerr
|
Post by Nscalerr 🐺 on May 18, 2018 21:14:28 GMT -8
Hi MewwnWith the following plugin, you can have it display the clock and date where you want by adding <span id="liveclock"></span> to where you want it to display, as I have done with your bit of code. It is also easy to customise. Finally add your css to the bottom of your stylesheet. If you mean universal date & time, as in UTC, (GMT), then you will have to ask in the plugins area, otherwise what I have will work. www.proboards.com/library/plugins/item/100<div class="ic-table"> <div class="ic-title"> Welcome to Website, $[current_user]! </div> <div class="ic-content"> The current time is:<br> <span id="liveclock"></span> </div> </div>
|
|
Mewwn
New Member
Posts: 11
inherit
254990
0
Dec 20, 2018 7:42:44 GMT -8
Mewwn
11
May 2018
mewwn
|
Post by Mewwn on May 19, 2018 7:33:19 GMT -8
Thank you for your help, Nscalerr 🐺! The plugin works, and is what I needed. Count this as resolved.
|
|