[SOLVED] Problem With Users Block In The Forum


Goto page Previous  1, 2, 3  Next

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:
Code: [Download] [Hide] [Select]
.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:
Code: [Download] [Hide] [Select]
.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)

:wink:

Subject: Re: Problem With Users Block In The Forum
pay attention also to this:

viewtopic_body.tpl
Code: [Download] [Hide] [Select]
<th width="150">{L_AUTHOR}</th>

Subject: Re: Problem With Users Block In The Forum
Ooopz, yes you are right Limun :oops:

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.


web8f

Profile PM  
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?).

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.

Profile PM  
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 :wink:

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.

Profile PM  
Subject: Re: Problem With Users Block In The Forum
:shock: I thought I was fabulas :LOL:

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

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.


Code: [Download] [Hide] [Select]
<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}&nbsp;</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>

Profile PM  
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).

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.

Profile PM  
Subject: Re: Problem With Users Block In The Forum
Right and I explained why 2x... sorry

Subject: Re: Problem With Users Block In The Forum
spirit22 wrote: [View Post]
.... help me to align the date and the buttons in the same line.

I will try to fix it myself ......


ttttt

and here is the code
find
Code: [Download] [Hide] [Select]
<td class="row-post-date"><div style="text-align: center;"><b>{postrow.SINGLE_POST}</b>&nbsp;&nbsp;<!-- 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}&nbsp;
</div>


replace with
Code: [Download] [Hide] [Select]
<td class="row-post-date"><div style="text-align: center;"><b>{postrow.SINGLE_POST}</b>&nbsp;&nbsp;</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}&nbsp;
</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

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.


samelinev1

Profile PM  
Goto page Previous  1, 2, 3  Next

Page 2 of 3


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.0938s (PHP: 23% SQL: 77%)
SQL queries: 10 - Debug Off - GZIP Enabled