Stretched user profile box

jdab

Madly Diligent
Joined
Aug 29, 2010
Messages
9,642
Reaction score
1
FP$
21
I recently switched so is viewed in 'classic' layout, but the date stretches the box. How can I change this so it just shows the date and time as DD/MM/YY, HH:MM?

6106619252900.0003dfhf.png
 
You just need to change your date format in the ACP configuration section.

In the top right of the ACP on the config page, use the search box and type in date. It's quick and easy.
 
TheNova said:
You just need to change your date format in the ACP configuration section.

In the top right of the ACP on the config page, use the search box and type in date. It's quick and easy.
I've look but there's no way to get rid of the 'Yesterday' bit...
 
From the screenshot you posted above, the box will not stretch if a post was made yesterday or today for example. It only happens to older posts.

Try:
ACP » Configuration » Date and Time Formats

And use "jS F Y" (without the quotes).

Alternatively, you can open up your /inc/init.php file and find the array called $date_formats, you can then add your date formats theres.

This link should help you to better understand the formats: http://php.net/manual/en/function.date.php
 
You don't have to fiddle around with the dates, unless that's the way you want to do it. You also need to realize that anyone with a long username will stretch out the postbit like that, making you have to do two things.

An alternative to that, try:

ACP -> Templates & Styles -> Templates -> Post Bit Templates -> postbit_classic

Find:
Code:
<td class="{$altbg}" valign="top" style="white-space: nowrap; text-align: center;">

Replace with:
Code:
<td class="{$altbg}" width="165px" valign="top" style="white-space: nowrap; text-align: center;">

This will make sure that the postbit does not stretch and will stay uniform throughout each post. Change the "width" value to something else to suit your theme more.
 
TheNova said:
From the screenshot you posted above, the box will not stretch if a post was made yesterday or today for example. It only happens to older posts.

Try:
ACP » Configuration » Date and Time Formats

And use "jS F Y" (without the quotes).
It's still stretched :S
 
Ok, try this Flux:

ACP > Configuration > Date and Time Formats

For the Date Format:

m-d-Y

Put gA in the Time Format box.

This means, everything posted before yesterday will show as 02-28-2012, 1PM for example and posts posted yesterday or today will show Yesterday, 4PM or Today 4PM.
 
TheNova said:
Make a temp admin account so I can see what's wrong.
I've made your account Admin, trusting you 🙂
EDIT: don't worry, it's working now although one of the plugins is stretching it (NewPoints)
 
Back
Top Bottom