Icy Phoenix
Old Support Topics - [SOLVED] Problem With Users Block In The Forum
spirit22 [ Mon 29 Apr, 2013 21:56 ]
Post subject: [SOLVED] Problem With Users Block In The Forum
Hi, guys:
Why in some post the user block is more width and in other post is more close?
How i can solved this?
Thanks.
Joshua203 [ Mon 29 Apr, 2013 23:33 ]
Post subject: Re: Problem With Users Block In The Forum
The avatar is pushing it to be wider (blind guess)
For example.. Limiting the width of allowed avatar sizes can make a difference (or adjusting the minimum width of the block could help too)

Joshua203 [ Mon 29 Apr, 2013 23:47 ]
Post subject: Re: Problem With Users Block In The Forum
However after taking a closer look..
It could also be because you use a wide date/time format, but I can't see that in the first screenshot! most probable cause is date/time format.
Solution setting the block wider or use smaller format.
spirit22 [ Tue 30 Apr, 2013 01:20 ]
Post subject: Re: Problem With Users Block In The Forum
Hi Joshua, I changed the date and time format but doesn't work. After I cleaned the cache of precompiled posts and still not working. Why can it be?
and does nothing
I found this:
http://www.icyphoenix.com/viewtopic...spanish+buttons
The spanish date format seems to be bug
And How I can expand the minimun width of the user block?

Joshua203 [ Tue 30 Apr, 2013 01:48 ]
Post subject: Re: Problem With Users Block In The Forum
Right.. it does not change because all old users have the old settings in the DB, you need a good query to change those (I'm not able to do that without re-investigating DB queries for dummies).
How to set min width?
if you don't get an answer soon from someone else here I will take a look at the dowload pack for you but not now

could be in the tpl, if not ..look at the class and find that in the css.
spirit22 [ Tue 30 Apr, 2013 01:53 ]
Post subject: Re: Problem With Users Block In The Forum
Ok, thanks Joshua, I continue investigating.
Joshua203 [ Tue 30 Apr, 2013 02:00 ]
Post subject: Re: Problem With Users Block In The Forum
I'm sure someone else wil help you with both tomorrow.. maybe even as early as 06:00 o'clock

Limun [ Tue 30 Apr, 2013 05:38 ]
Post subject: Re: Problem With Users Block In The Forum
can you post the link to this topic please
Joshua203 [ Tue 30 Apr, 2013 12:18 ]
Post subject: Re: Problem With Users Block In The Forum
hmm I predicted 30 minutes later
I think Spirit has already edited a change but.
When I looked yesterday I could not find the exact posts, however these are similar (but they do look the same now because of edits in css?):
Too wide:
http://www.kungfumania.es/gordon-li...lar-vt6694.html
Correct:
http://www.kungfumania.es/mad-mad-m...s-e-vt7003.html
Note: it looked different yesterday (both links do, so I guess Spirit found class="row-post-date" in tpl and found that class in the css to edit?)
Limun [ Tue 30 Apr, 2013 12:44 ]
Post subject: Re: Problem With Users Block In The Forum
in opera and IE they are the same width
maybe he edited something

as you say Josh
spirit22 [ Tue 30 Apr, 2013 13:51 ]
Post subject: Re: Problem With Users Block In The Forum
Hi guys, I only edited the date and time formate in acp configuration and also delete the post only link next to the date in the user block. I think the problem is the web browser. Some put the new format and other the old format of date.
But another problem occurred to me while watching this. My hosting ban us ip during 24h when we enter post with many external images and push it. When I change the settingsof thumbnails in the acp I also bans. Now I am ban

I will go to contat with the support of my hosting.
Joshua203 [ Tue 30 Apr, 2013 14:33 ]
Post subject: Re: Problem With Users Block In The Forum
Hi guys, I only edited the date and time formate in acp configuration and also delete the post only link next to the date in the user block. I think the problem is the web browser. Some put the new format and other the old format of date.
I think that is hard to believe, can you name 2 different browsers that show different format? maybe even with screenshots?
Other problems >> new topics please

(to keep each thread as simple as we can!)
EDIT: I really don't understand why you removed a link which is not causing the problem, I still think dateformat (for both old and new users)), or block width setting in css.
spirit22 [ Tue 30 Apr, 2013 16:21 ]
Post subject: Re: Problem With Users Block In The Forum
I think that is hard to believe, can you name 2 different browsers that show different format? maybe even with screenshots?
Here the screenshots:
With google chrome show the old date format (fail)
With internet explorer show the new date format
With firefox show the new date format
I have clean the temporaly files of all my web browser with ccleaner. Not is a big problem, now I will use mozilla firefox for my web browsing.
Joshua203 [ Tue 30 Apr, 2013 16:37 ]
Post subject: Re: Problem With Users Block In The Forum
you are comparing wrong:
Screeny 1 >>logged in / old user >> old format in DB
Screeny 2+3 >>logged out / new user or guest >> new format for new regged user and guest
spirit22 [ Tue 30 Apr, 2013 16:48 ]
Post subject: Re: Problem With Users Block In The Forum
It's true
Is a problem of my db. I will search something. Thanks.
EDIT:
I had an idea. I Put the date in the bar next door, and so correct the user block. But I can not put the two things on the same line, is one above the other. What's wrong with this code?
My bad code of viewtopic.tpl:
<tr>
<td class="row-post-date"></td>
<td class="row-post-buttons post-buttons"><div style="text-align: left;"><!-- IF S_ADMIN -->{postrow.POST_EDIT_STRING_SHORT}<!-- ELSE -->{postrow.POST_DATE}<!-- ENDIF --></div>
<div class="post-buttons;" align="right" style="text-align: right;"> {postrow.PROFILE_IMG}{postrow.PM_IMG}{postrow.EMAIL_IMG}{postrow.WWW_IMG}{postrow.ALBUM_IMG} </a>
<!-- IF not S_BOT -->
<!-- BEGIN switch_quick_quote -->
<a href="javascript:addquote(%27{postrow.U_POST_ID}%27,%27quote%27,true,false);"><img src="{IMG_QUICK_QUOTE}" alt="{L_QUICK_QUOTE}" title="{L_QUICK_QUOTE}" /></a><a href="javascript:addquote(%27{postrow.U_POST_ID}%27,%27ot%27,true,false);"><img src="{IMG_OFFTOPIC}" alt="{L_OFFTOPIC}" title="{L_OFFTOPIC}" /></a>
<!-- END switch_quick_quote -->
<!-- ENDIF -->
<a href="{U_BACK_TOP}"><img src="{IMG_ARU}" alt="{L_BACK_TOP}" title="{L_BACK_TOP}" /></a><a href="{U_BACK_BOTTOM}"><img src="{IMG_ARD}" alt="{L_BACK_BOTTOM}" title="{L_BACK_BOTTOM}" /></a>
</div>
</td>
</tr>
Joshua203 [ Tue 30 Apr, 2013 19:35 ]
Post subject: Re: Problem With Users Block In The Forum
Like I said before ..a simple DB query could set all old users to the new format, I'm just not the best person to do that for you.
Putting the date in the next box (on the same line) could
move the problem to the next box (if people have small screens or make the browser window smaller).
If you don't want change date format to something more acceptable you could try something like this (untested and maybe incorrect!!):
Find in your css:
.row-post-date, .row-post-buttons {
border: solid 1px #ffffff;
border-right-color: #dddddd;
border-bottom-color: #dddddd;
vertical-align: middle;
font-size: 10px;
line-height: 12px;
color: #666666;
background: url('images/cyan/bg_postbottom.gif');
white-space: nowrap;
padding: 1px;
}
Replace with:
.row-post-date {
min-width: XXXpx;
}
.row-post-date, .row-post-buttons {
border: solid 1px #ffffff;
border-right-color: #dddddd;
border-bottom-color: #dddddd;
vertical-align: middle;
font-size: 10px;
line-height: 12px;
color: #666666;
background: url('images/cyan/bg_postbottom.gif');
white-space: nowrap;
padding: 1px;
}
Where XXX should be replaced by the actual desired width!
Then do cross-browser checks (FF, IE, Chrome, Opera, Safari)

Limun [ Wed 01 May, 2013 14:13 ]
Post subject: Re: Problem With Users Block In The Forum
pay attention also to this:
viewtopic_body.tpl
<th width="150">{L_AUTHOR}</th>
Joshua203 [ Wed 01 May, 2013 14:32 ]
Post subject: Re: Problem With Users Block In The Forum
Ooopz, yes you are right Limun

spirit22 [ Thu 02 May, 2013 14:55 ]
Post subject: Re: Problem With Users Block In The Forum
Thanks guys, but I'm a little confused with this problem. Do I have to edit the file. Css to align the two <div>?
I just want to leave them on the same line, because now apparent in two lines, one above the other.

Joshua203 [ Thu 02 May, 2013 16:25 ]
Post subject: Re: Problem With Users Block In The Forum
to clear it up:
1. You put back the date in the original box (to avoid moving the problem to the new location (this box contains other stuf, sometimes invisible or not and it may be too much to add there on that same line).
2. You try editing what Limun says to the .tpl (set 150px wider)...crossbrowser check!
3. Only if NOT working:
You try the css edit ...crossbrowser check!
PS.. I would also put pack the post number link {why would you remove something that works perfectly and bot the cause of the problem?).
spirit22 [ Thu 02 May, 2013 17:20 ]
Post subject: Re: Problem With Users Block In The Forum
The problem is that the date format lets the user block very wide, so I put in the other block.
So as I edited looks good, but falls into two lines, instead of appearing all on the same line.
I will continue investigating. Thanks.
Joshua203 [ Thu 02 May, 2013 17:53 ]
Post subject: Re: Problem With Users Block In The Forum
Please read point 1 very carefully, I don't think this is a good idea to move the problem imho (it's a good idea to FIX it!).
There are at least 3 advises for you to test, but if you go for something completely different (move the date) ..I step out

spirit22 [ Thu 02 May, 2013 18:07 ]
Post subject: Re: Problem With Users Block In The Forum
I only want the user block with normal size.
I repeat, If I put the date in that block is really bad, is very wide because the date format in the database is incorrect. if you can not help me I'll manage somehow. The error I have to correct it in one way or another and there are many ways. I hope that MG can help me or other expert, for that is the support.
Joshua203 [ Thu 02 May, 2013 19:20 ]
Post subject: Re: Problem With Users Block In The Forum

I thought
I was fabulas
Sorry, all answers are in the thread (only not the db query code), but if you refuse to test anything we say.. then what must we do?
I'm done repeating .. I know the problem and understand it too .. it's up to you to test and see what a suggestion does imho.
Greetings,
Joshua203
spirit22 [ Thu 02 May, 2013 21:06 ]
Post subject: Re: Problem With Users Block In The Forum
Sorry Josua, I don't understand what you say me to edit more, as well I tried everything you told me and the date format in the block user don't can put because it can't be made smaller, it is a problem of the database and there do not enter many words, the space is small.
Please trying to explain better because my english is bad and I'm not a programming expert. I don't refuse to test your suggestions, I had it also solved the problem, I only needed align the date with the profile, pm and email buttons because it appears the date up and the buttons down. I'm asking something simple for you.
This is the code of viewtopic.tpl where I have to align the date and buttons, but it still fails in any way.
<tr>
<td class="row-post-date"></td>
<td class="row-post-date"><div style="text-align: left;"><!-- IF S_ADMIN -->{postrow.POST_EDIT_STRING_SHORT}<!-- ELSE -->{postrow.POST_DATE}<!-- ENDIF --></div><div class="post-buttons;" align="right" style="text-align: right;"> {postrow.PROFILE_IMG}{postrow.PM_IMG}{postrow.EMAIL_IMG}{postrow.WWW_IMG}{postrow.ALBUM_IMG} </a>
<!-- IF not S_BOT -->
<!-- BEGIN switch_quick_quote -->
<a href="javascript:addquote(%27{postrow.U_POST_ID}%27,%27quote%27,true,false);"><img src="{IMG_QUICK_QUOTE}" alt="{L_QUICK_QUOTE}" title="{L_QUICK_QUOTE}" /></a><a href="javascript:addquote(%27{postrow.U_POST_ID}%27,%27ot%27,true,false);"><img src="{IMG_OFFTOPIC}" alt="{L_OFFTOPIC}" title="{L_OFFTOPIC}" /></a>
<!-- END switch_quick_quote -->
<!-- ENDIF -->
<a href="{U_BACK_TOP}"><img src="{IMG_ARU}" alt="{L_BACK_TOP}" title="{L_BACK_TOP}" /></a><a href="{U_BACK_BOTTOM}"><img src="{IMG_ARD}" alt="{L_BACK_BOTTOM}" title="{L_BACK_BOTTOM}" /></a>
</div>
</td>
</tr>
Joshua203 [ Thu 02 May, 2013 22:00 ]
Post subject: Re: Problem With Users Block In The Forum
spirit22 wrote:
it is a problem of the database and there do not enter many words, the space is small.
This is why I said "make it wider" (not smaller)
If the above is not what you want... then you need to wait for a DB query to set old users to new format (this way the block will be for small date formats only).
spirit22 [ Thu 02 May, 2013 22:14 ]
Post subject: Re: Problem With Users Block In The Forum
Better say you don't want help me to align the date and the buttons in the same line.
I will try to fix it myself or I'll ask help in another forum. Don't worry.
Joshua203 [ Thu 02 May, 2013 22:26 ]
Post subject: Re: Problem With Users Block In The Forum
Right and I explained why 2x... sorry
Limun [ Fri 03 May, 2013 06:35 ]
Post subject: Re: Problem With Users Block In The Forum
.... help me to align the date and the buttons in the same line.
I will try to fix it myself ......
and here is the code
find
<td class="row-post-date"><div style="text-align: center;"><b>{postrow.SINGLE_POST}</b> <!-- IF S_ADMIN -->{postrow.POST_EDIT_STRING_SHORT}<!-- ELSE -->{postrow.POST_DATE}<!-- ENDIF --></div></td>
<td class="row-post-buttons post-buttons">
<div style="text-align: right; vertical-align: middle;">
<div class="extra-top-padding" style="position: relative; float: left; text-align: left; vertical-align: middle;">
{postrow.PROFILE_IMG}{postrow.PM_IMG}{postrow.EMAIL_IMG}{postrow.WWW_IMG}{postrow.ALBUM_IMG}
</div>
replace with
<td class="row-post-date"><div style="text-align: center;"><b>{postrow.SINGLE_POST}</b> </div></td>
<td class="row-post-buttons post-buttons">
<div style="text-align: right; vertical-align: middle;">
<div class="extra-top-padding" style="position: relative; float: left; text-align: left; vertical-align: middle;">
<!-- IF S_ADMIN -->{postrow.POST_EDIT_STRING_SHORT}<!-- ELSE -->{postrow.POST_DATE}<!-- ENDIF -->{postrow.PROFILE_IMG}{postrow.PM_IMG}{postrow.EMAIL_IMG}{postrow.WWW_IMG}{postrow.ALBUM_IMG}
</div>
clear cache
PS . your code in few posts above its not ok
PS . and i m 99% sure that one day you will put back post date back ,because date it gona push buttons or something else , specialy with users who use low resolution on their display
spirit22 [ Fri 03 May, 2013 16:27 ]
Post subject: Re: Problem With Users Block In The Forum
Thanks a lot Limun. If you ever need anything just tell me, I owe you.
Problem solved.

Mighty Gorgon [ Sat 04 May, 2013 13:16 ]
Post subject: Re: [SOLVED] Problem With Users Block In The Forum
Date format in viewtopic is the same set in profile for users or ACP for guests.
Here is the portion of code which format the date:
$post_date = create_date_ip($config['default_dateformat'], $postrow[$i]['post_time'], $config['board_timezone']);
Other time formats can be found in
language/lang_***/lang_main_settings.php:
$lang['ENCODING'] = 'UTF-8';
$lang['DIRECTION'] = 'ltr';
$lang['USER_LANG'] = 'en-gb';
$lang['HEADER_LANG'] = 'en-gb';
$lang['HEADER_LANG_XML'] = 'en-gb';
$lang['HEADER_LANG_JQUERY'] = 'en-GB';
$lang['LEFT'] = 'left';
$lang['RIGHT'] = 'right';
$lang['DATE_FORMAT'] = 'd F y H:i'; // This should be changed to the default date format for your language, php date() format
$lang['DATE_FORMAT_DATE'] = 'Y/m/d';
$lang['DATE_FORMAT_TIME'] = 'H.i';
$lang['DATE_FORMAT_MG'] = 'Y/m/d - H:i';
$lang['DATE_FORMAT_CHAT'] = 'Y/m/d - H.i.s';
$lang['DATE_FORMAT_VF'] = 'd M Y';
$lang['DATE_FORMAT_DATE_JQUI_JQ'] = 'yy/mm/dd'; // You can only use one of these three formats: dd/mm/yy, mm/dd/yy, yy/mm/dd
$lang['DATE_FORMAT_TIME_JQUI_JQ'] = 'hh:ss';
$lang['DATE_FORMAT_DATE_JQUI_PHP'] = 'Y/m/d'; // You can only use one of these three formats: d/m/Y, m/d/Y, Y/m/d
$lang['DATE_FORMAT_TIME_JQUI_PHP'] = 'H.i';
$lang['DATE_FORMAT_DATE_MYSQL_PHP'] = 'ymd'; // You can only use one of these three formats: dmy, mdy, ymd (this is used to convert dates from MySQL and PHP and vice versa, all dates are with leading zeroes)
$lang['DATE_FORMAT_BIRTHDAY'] = 'd F Y';
$lang['DATE_FORMAT_CALENDAR'] = 'd F Y'; // This should be changed to the default date format for your language, php date() format
$lang['JOINED_DATE_FORMAT'] = 'F Y'; // Date format of Joined date, php date() format
$lang['NUMBER_FORMAT_DECIMALS'] = 0;
$lang['NUMBER_FORMAT_DECIMALS_SEP'] = '.';
$lang['NUMBER_FORMAT_THOUSANDS_SEP'] = ',';
$lang['NUMBER_FORMAT_DATE_SEP'] = '/';
$lang['NUMBER_FORMAT_TIME_SEP'] = ':';