[Mod] Вид под vBulletin 4

Тема в разделе "vBulletin", создана пользователем 1d37r, 25 сен 2009.

Статус темы:
Закрыта.
  1. 1d37r

    1d37r Читатель

    Заблокирован
    Регистр.:
    16 сен 2007
    Сообщения:
    288
    Симпатии:
    48
    [​IMG]

    Ну уж придется поработать с шаблонами.

    Вид главной страницы (FORUMHOME)

    в шаблоне FORUMHOME (без подразделов)
    Найти:

    HTML:
    <!-- main -->
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <thead>
        <tr align="center">
          <td class="thead">&nbsp;</td>
          <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
          <td class="thead">$vbphrase[last_post]</td>
          <td class="thead">$vbphrase[threads]</td>
          <td class="thead">$vbphrase[posts]</td>
          <if condition="$vboptions['showmoderatorcolumn']">
          <td class="thead">$vbphrase[moderator]</td>
          </if>
        </tr>
    </thead>
    $forumbits
    <tbody>
    Заменить на:
    HTML:
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    
    $forumbits
    <tbody>
    в шаблоне FORUMHOME (с подразделами)

    HTML:
    <!-- main -->
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <thead>
        <tr align="center">
          <td class="thead">&nbsp;</td>
          <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
          <td class="thead">$vbphrase[last_post]</td>
          <td class="thead">$vbphrase[threads]</td>
          <td class="thead">$vbphrase[posts]</td>
          <if condition="$vboptions['showmoderatorcolumn']">
          <td class="thead">$vbphrase[moderator]</td>
          </if>
        </tr>
    </thead>
    $forumbits
    <tbody>
        <tr>
            <td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
                <a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
                <if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
                <a href="showgroups.php$session[sessionurl_q]">$vbphrase[view_forum_leaders]</a></if>
            </strong></div></td>
        </tr>
    </tbody>
    </table>
    $forumhome_markread_script
    <!-- /main -->
    Заменить на:

    HTML:
    <!-- main -->
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    
    $forumbits
    <tbody>
    </table>
    
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <tr>
            <td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
                <a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
                <if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
                <a href="showgroups.php$session[sessionurl_q]">$vbphrase[view_forum_leaders]</a></if>
            </strong></div></td>
        </tr>
    </tbody>
    </table>
    $forumhome_markread_script
    <!-- /main -->
    в шаблоне forumdisplay

    Найти:
    HTML:
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <thead>
        <tr align="center">
          <td class="thead">&nbsp;</td>
          <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
          <td class="thead">$vbphrase[last_post]</td>
          <td class="thead">$vbphrase[threads]</td>
          <td class="thead">$vbphrase[posts]</td>
          <if condition="$vboptions[showmoderatorcolumn]">
          <td class="thead">$vbphrase[moderator]</td>
          </if>
        </tr>
    </thead>
    $forumbits
    </table>
    Заменить на:
    HTML:
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    $forumbits
    </table>
    содержимое шаблона forumhome_forumbit_level2_post
    Заменить на:
    HTML:
    <tr align="center">
    <td class="alt1Active" width="100%">
    
      <span style="float: right;">Threads: $forum[threadcount] &nbsp; Posts: $forum[replycount] &nbsp; <br /><if condition="$vboptions['showmoderatorcolumn']">Moderators: $forum[moderators]</if></span>
    
        
    <div style="float: left;"></div>
    
    <span style="float: left;"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" />&nbsp; &nbsp;   </span>
    <div style="float:left;">
    
            
                <div align="left">
    <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a></div>
    
                <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
            
            <if condition="$show['forumdescription']"><div class="smallfont">
                  <div align="left">$forum[description]</div></div></if>
    
    
            <if condition="$show['forumsubscription']"><div class="smallfont" style="margin-top: 6px;">
              <div align="left"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></div></if>
    
            <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><div align="left"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></div></if>
    
    
    </div>
    
    </td>
    
    </tr>
    <tr><td class="alt2"><div align="right">$forum[lastpostinfo]</div></td></tr>
    $childforumbits

    содержимое шаблона forumhome_forumbit_level1_post

    Заменить на:
    HTML:
    <if condition="!$show['collapsable_forums']">
    <tbody>
    </if>
    
    <tr align="center">
    
    <td class="alt1Active" width="100%">
    
    <span style="float: right;">Threads: $forum[threadcount]   Posts: $forum[replycount]
      </span>
    
    <div style="float: left;"></div>
    <span style="float: left;"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" />&nbsp;&nbsp;     </span>
    
    
    
        <div align="left" id="f$forum[forumid]">
                <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a></div>
                <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
            </div>
    
            <if condition="$show['forumdescription']"><div class="smallfont">
                  <div align="left">$forum[description]</div></div></if>
    
            <if condition="$show['forumsubscription']"><div class="smallfont"><div align="left">
    
    <strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></div></if>
            <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"> <div align="left"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></div></if>
        </tr>
    <tr>
    <td class="alt2" colspan="2"><div align="right">$forum[lastpostinfo]</div></td></tr>
    
    <if condition="!$show['collapsable_forums']">
    </tbody>
    </if>
    
    <if condition="$childforumbits">
    <if condition="!$show['collapsable_forums']">
    <tbody>
    </if>
        $childforumbits
    <if condition="!$show['collapsable_forums']">
    </tbody>
    </if>
    </if>
    содержимое шаблона forumhome_lastpostby
    заменить на:
    HTML:
    <if condition="$show['lastpostinfo']">
    <div class="smallfont" style="float:right;">
        <div style="float:left;">
            <span style="white-space:nowrap"><strong>Last post:</strong>&nbsp;
            <if condition="$show['icon']"><img class="inlineimg" src="$icon[iconpath]" alt="$icon[title]" border="0" /></if>
            <if condition="$lastpostinfo['prefix']">
                $lastpostinfo[prefix]
                </span><if condition="is_browser('safari')"><!--bug#24775-->&nbsp;</if>
                <span style="white-space:nowrap">
            </if>
            <a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$lastpostinfo[lastthreadid]" style="white-space:nowrap" title="<phrase 1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><strong>$lastpostinfo[trimthread]</strong></a></span>
        &nbsp;</div>
        <div style="float:left;"<if condition="is_browser('ie', 6)">; float:$stylevar[left]</if>">
            <phrase 1="member.php?$session[sessionurl]find=lastposter&amp;f=$lastpostinfo[forumid]" 2="$lastpostinfo[lastposter]">$vbphrase[by_x]</phrase>
        </div>
        <div  style="float:left;">&nbsp; 
            $lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostinfo[lastposttime]</span></if>
    
        </div>
    </div>
    <else />
    <div class="smallfont" style="float:right;">
        $lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostinfo[lastposttime]</span></if>
    
    </div>
    </if>
    содержимое шаблона forumhome_forumbit_level1_nopost
    заменить на:
    HTML:
    <if condition="!$show['collapsable_forums']">
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <tbody>
    </if>
        <tr>
            <td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">2<else />1</if>">
                <if condition="$childforumbits">
                <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
                </if>
                <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
                
    <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                <if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
            </td>
        </tr>
    <if condition="!$show['collapsable_forums']">
    </tbody>
    </if>
    <if condition="$childforumbits">
    <if condition="!$show['collapsable_forums']">
    <tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
    </if>
    $childforumbits
    <if condition="!$show['collapsable_forums']">
    </tbody>
    </if>
    </if></table>
    <div style="padding: 0 0 15px 0;"></div>
     
Статус темы:
Закрыта.