MyBB Community Forums

Full Version: Not displaying date and time of quotation properly
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
There is a problem to show date and time of a quotation for Today and Yesterday, but it shows correctly for older quotations then Yesterday.

Here is a screen shot showing what it looks like when it's Yesterday:
https://i.imgur.com/teFX3NX.jpg

The code in the web-browser looks like this:
<span> (<span title="2017-12-04">Yesterday</span>, 19:12)</span>

Here is a screen shot showing what it looks like when it's older then Yesterday and the date is shown in the date format:
https://i.imgur.com/GYZm5pq.jpg

The code in the web-browser looks like this:
<span> (2017-12-01, 14:12)</span>

How to correct this?

Forum: campingforum.net
You want add correct time to forum?
see required change here in the global.css stylesheet of the theme
Hi Sokrates!

I can't see anything at that image.

Please post it as attachment or posr just url direcrly to image so at least we can see it.

You can edit date and time optins at ACP -> Configuration -> Settings -> Date and Time Fornams

Also some of formats can be edited at language files. Mostly global.lang.php.

I will tell you what exactly you need to check out when I see where is bug...

Oh sorry, now see that .m. already answered.
(2017-12-05, 09:30 AM)MonsteR_X Wrote: [ -> ]You want add correct time to forum?

No, I want Today and Yesterday to come in the right place, Not after the closing bracket where it comes now.

(2017-12-05, 09:54 AM)Ikerepc Wrote: [ -> ]Hi Sokrates!

I can't see anything at that image.

Please post it as attachment or posr just url direcrly to image so at least we can see it.,

Please, find the two screen shots attached.
^ first, have you applied the required change ?
guests do not have access to your forum threads to check & provide suggestions
(2017-12-05, 09:54 AM)Ikerepc Wrote: [ -> ]Hi Sokrates!

You can edit date and time optins at ACP -> Configuration -> Settings -> Date and Time Fornams

Also some of formats can be edited at language files. Mostly global.lang.php.

ACP -> Configuration -> Settings -> Date and Time Formats has been edited to the format that is used in Sweden.

I've also started to create a Swedish language version and I've therefore also edited part of the global.lang.php 

Guests can view the following thread where one can see what it looks like in post #122:

http://campingforum.net/showthread.php?tid=149&page=13

At the moment it shows "()3 timmar sedan", when it should show "(3 timmar sedan)". When changing to the default English language version then it shows "()3 hours ago" intead of showing "(3 hours ago)".

I can't figure out why "<span> (<span title="2017-12-05, 10:12">3 hours ago</span>)</span>" is shown as "()3 hours ago" instead of "(3 hours ago)".
Try editig css as .m. suggested. That could help
(2017-12-05, 09:51 AM).m. Wrote: [ -> ]see required change here in the global.css stylesheet of the theme

Sorry, I didn't see the link earlier. 


* * * 

Change in theme global.css (advanced mode)

Code:
blockquote cite span


to

Code:
blockquote cite > span

* * *

I'm I really supposted to change "blockquote cite span {" to "blockquote cite > span {"?

blockquote cite {
font-weight: bold;
border-bottom: 1px solid #ccc;
font-style: normal;
display: block;
padding-bottom: 3px;
margin: 0 0 10px 0;
}

blockquote cite span {
float: right;
font-weight: normal;
font-size: 12px;
color: #666;
}

blockquote cite span.highlight {
float: none;
font-weight: bold;
padding-bottom: 0;
}
^ yes. change blockquote cite span { to blockquote cite > span {
and hard refresh your browser on the test url (thread page where you have such quote) to see the changes
Pages: 1 2