Показать сообщение отдельно
Старый 11.01.2012, 08:36 Вверх   #14
Модератор
 
Аватар для HotBeer
HotBeer вне форума
Доп. информация
По умолчанию

Вообщем подскажите плиз в какую сторону копать. Оцентровал ник, статус, аватар через представленный див.

PHP код:
<div align="center"><table border="0" cellpadding="0" cellspacing="0"
<
tbody><tr>

</
tr
</
tbody></table></div
Проверил вчера опера 11 **, ослик 7 и лиса (версию не помню уже удалил)
Все работает, после жалобы, что во всех трех браузерах в зависимости от версии, у кого то аватар полез в тело поста, у кого то только после обновления страницы оцентровка происходила. Пришел домой проверяю в опере у меня тоже ник оцентрован, а статус и аватар когда как.
Какой был шаблон сейчас привести не могу, так как в скором порядке вернул всё в первоначальное состояние, которое сейчас выглядит так
Нажми для просмотра
PHP код:
$template_hook[postbit_start]
<
table id="post$post[postid]class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="0" border="0" width="100%" align="center">
<
tr>
    <if 
condition="$show['announcement']">
        <
td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]colspan="2">
            <
img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]border="0" />
            <
phrase 1="$post[startdate]2="$post[enddate]">$vbphrase[x_until_y]</phrase>
        </
td>
    <else />
        <
td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[right]: 0px" $post[scrolltothis]>        
            <!-- 
status icon and date -->
            <
a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]border="0" /></a>
            
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
            
$post[firstnewinsert]
            <!-- / 
status icon and date -->                
        </
td>
        <
td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px" align="$stylevar[right]">
            &
nbsp;
            <if 
condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
            
<if condition="$show['inlinemod']">
                <
input type="checkbox" name="plist[$postid]" id="plist_$postidstyle="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]/>
            </if>
        </
td>
    </if>
</
tr>
<
tr valign="top">
    <
td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
        <if 
condition="$show['quickreply']">
            <
class="bigusername" href="javascript:insertnick('$post[usernamequick]', '$post[postid]');" title="$vbphrase[nick_in_quickreply]">$post[musername]</a>
                <else />
            <
class="bigusername">$post[musername]</a>
                </if>
        <
a id="postmenu_$post[postid]">
        <
img src="$stylevar[imgdir_misc]/menu_open.gif" alt="<phrase 1="$post[username]">$vbphrase[usermenu]</phrase>" border=/>
        <
script type="text/javascript"vbmenu_register("postmenu_$post[postid]"true); </script></a>
            </div>
            <if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
            <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
            $template_hook[postbit_userinfo_left]
        
            <if condition="$show['avatar']">
                <div class="smallfont">
                    &nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a> 
                </div>
            </if>
            <div style="padding:2px 0px 2px 0px;"></div>
<table class="tborder" cellspacing="0" border="0" width="100%">
<tbody>    
 <tr>
<if condition="$post['userid'] == 51142"> 
<else />
   <td class="thead" colspan="2"><a style="float:$stylevar[left]" href="#" onclick="return toggle_collapse('userinfo$post[postid]')"><img id="collapseimg_userinfo$post[postid]" src="$stylevar[imgdir_button]/collapse_thead{$collapseimg_userinfo}.gif" alt="" border="0" /></a>
<font class="smallfont">&nbsp;&nbsp;<i><i></font>
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_userinfo$post[postid]" style="display:none;">
    <tr>
        <td class="alt2">
            <div class="smallfont">
                &nbsp;<br />

                <if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
                <if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
                <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
                <div>
                    $vbphrase[posts]: $post[posts]
                </div>
                $template_hook[postbit_userinfo_right_after_posts]
                <if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
                <if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
                $template_hook[postbit_userinfo_right]
                <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>

</if> 
           </td>
            </tr>
        </tbody>
     </table>
<if condition="$show['quickreply']">
<a href="javascript:insertQuote('$post[usernamequick]', selection, '$post[postid]')" onMouseOver="catchSelection()" title="$vbphrase[select_and_click]" class="smallfont"><b>$vbphrase[select_quote]</b></a>
</if>
            </div>                    
        
    </td>
и т.д 


Позже попробую как Тайфун советовал сделать тут
http://www.bormotuhi.net/showthread.php?t=3287

Последний раз редактировалось HotBeer; 11.01.2012 в 08:50..
  Ответить с цитированием
 
Время генерации страницы 0.07632 секунды с 10 запросами