Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
  • entries
    7
  • comments
    14
  • views
    42,278

Делаем сворачиваемые блоки в IP.Content

Sign in to follow this  
Buskopan

229 views

Все искал решение как сделать блоки сворачиваемыми (как на форуме). И вот оно нашлось.

 

1. Идем в АЦП >IP.Content>Page Templates> изменяем шаблон по умолчанию. В 2.1.2 его уже нет.

 

Добавляем над строкой </head> следующий код

 

 <script src="ССЫЛКА НА ВАШ ФОРУМ/public/js/ips.board.js" type="text/javascript"></script> 

 

2. Далее оборачиваем содержимое вашего блока следующим кодом.

 

<div class='category_block block_wrap'>
       <h3 id='category_{$title}' class='maintitle'><a class='toggle right' href='#' title='{$this->lang->words['toggle_cat']}'>{$this->lang->words['toggle_cat']}{$title}</a>{$title}</h3>
               <table class='ipb_table' summary="{$title}">
                       <tr>
                               <td>

Тут содержимое вашего блока

                               <td>
                       </tr>
               </table>
</div>

 

3. Радуемся.

  • Upvote 3
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...