TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 651
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 146
  • Total: 146

Article timestamp & Shoutbox

Started by neoxes, June 29, 2012, 01:13:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

neoxes

Link to my site: http://www.evezine.eu
SMF version: SMF 2.0.2
TP version: TP ver. 1.0
Default Forum Language: Italian
Theme name and version: Curve default

Hi!
Can you help me with this:


I want the same time format.

Thanks!


Another problem, default shoutbox is not showing shouts in frontpage... I have to click on show last 50 shouts.

neoxes

Shoutbox fixed adding:

.tp_shoutframe div.hide
{
display: block;
}


in tpshout.css

Tell me if this is correct please.

IchBin

I have no idea what you mean by "shoutbox is not showing shouts in frontpage". It works for me. Perhaps you could show us a screenshot or point us to the site that you are actually using TP on? The link you provided goes to a site where SimplePortal is used.

neoxes

Quote from: IchBin™ on June 29, 2012, 09:28:04 PM
I have no idea what you mean by "shoutbox is not showing shouts in frontpage". It works for me. Perhaps you could show us a screenshot or point us to the site that you are actually using TP on? The link you provided goes to a site where SimplePortal is used.

Yep, I want to use Tinyportal but i need to fix it first, so I'm "playing" with a local backup where I've installad Tinportal. Here's the problem:

http://i1094.photobucket.com/albums/i455/neoxes/Cattura1.png
http://i1094.photobucket.com/albums/i455/neoxes/Cattura2.png
Firebug:
http://i1094.photobucket.com/albums/i455/neoxes/Cattura3.png

Any help for timestamp problem?

IchBin

Do you have any other mods installed? It looks to me like you have some CSS That is overriding what TP has for the shoutbox, thus hiding your shouts. It's either that or some javascript toggling the visibility some how.

The timestamp I'll have to look at when I get a chance.



ZarPrime

On the timestamp thing you mentioned in your first post, a lot of this depends on the Default time format you have set in your Admin General Features and Options and whether you have enabled shorthand date display in your Admin Layout settings, along with the Layout Type you have set for your FrontPage Topics and Articles.

Obviously, it's much easier to figure out what it is going to look like in a few days, when it is no longer either "Today" or "Yesterday".  From the screenshot you included in your first post, it looks like you have military time set but the title bar of the topic or article seems to be defaulting to a 12 hour format that the Layout Type specifies though I'm not sure why the "PM" wouldn't be showing up after the "01:21".  Again, this could depend on the Layout Type for the FrontPage.

If we could see this in person instead of just a screenshot, and if you told us what your Admin settings and the TP Admin settings for the Frontpage layout that I mentioned above, we may be able to tell a little more about it.

ZarPrime

neoxes

#8
Quote from: ZarPrime on June 29, 2012, 11:51:37 PM
On the timestamp thing you mentioned in your first post, a lot of this depends on the Default time format you have set in your Admin General Features and Options and whether you have enabled shorthand date display in your Admin Layout settings, along with the Layout Type you have set for your FrontPage Topics and Articles.

Obviously, it's much easier to figure out what it is going to look like in a few days, when it is no longer either "Today" or "Yesterday".  From the screenshot you included in your first post, it looks like you have military time set but the title bar of the topic or article seems to be defaulting to a 12 hour format that the Layout Type specifies though I'm not sure why the "PM" wouldn't be showing up after the "01:21".  Again, this could depend on the Layout Type for the FrontPage.

If we could see this in person instead of just a screenshot, and if you told us what your Admin settings and the TP Admin settings for the Frontpage layout that I mentioned above, we may be able to tell a little more about it.

ZarPrime

First of all, thanks for your help!
Concerning your questions:
- Default time format on my website is %d/%m/%Y - %H:%M
- Layout Type for the frontpage is the default one, no edits.

Today's test :


*** ZarPrime Edit:  OK, I modified the post so that the image actually shows instead of just the link. ***

If you need it I can upload the whole site in a temp directory, tell me if this is necessary.

ZarPrime

Quote from: neoxes on June 30, 2012, 01:33:23 PM
- Default time format on my website is %d/%m/%Y - %H:%M

OK, then, the notation is correct, since you are showing "Today" rather than disabling this layout in Admin ...
  %d - day of the month (01 to 31)
  %m - month as a number (01 to 12)
  %Y - 4 digit year
  %H - hour using a 24-hour clock (range 00 to 23)
  %M - minute as a number

Today is June 30th, 2012, so, with your setting (%d/%m/%Y - %H:%M), this would equate to "30/06/2012 - 14:24" which is what it would say if it wasn't "Today", at least for the post itself.  In other words, if it was no longer "Today", it would say "30/06/2012 - 14:24".

As for the titlebar, since it is still "Today", "Today at 02:24 PM" is correct for that layout.  If it was no longer "Today", that would revert to "%d %b %Y" which would be "30 Jun 2012" as that is the default notation for that particular layout.  See the test image that I did below.


I hope that was clear.

ZarPrime

This website is proudly hosted on Crocweb Cloud Website Hosting.