Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Конфликт вкладок

Featured Replies

Posted

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

Вот код:

Спойлер

 <div class="ipsTabs ipsTabs_small ipsTabs_stretch ipsClearfix" id="blocksTab_01" data-ipstabbar="" data-ipstabbar-contentarea="#blocksTab_01_content">
   <a href='#blocksTab_01' data-action='expandTabs'><i class='icon-caret-down'></i></a>
   <ul role='tablist'>
      <li role='presentation'>
         <a href="#" role='tab' id='blocksTab_01_forums' class='ipsTabs_item ipsType_center' aria-selected="true">Первая</a>
      </li>
      <li role='presentation'>
         <a href="#" id='blocksTab_01_orion' role='tab' class='ipsTabs_item ipsType_center'>Вторая</a>
      </li>
   </ul>
</div>
<div id="blocksTab_01_content" class="ipsTabs_panels">
   <div id="ipsTabs_blocksTab_01_blocksTab_01_forums_panel" class="ipsTabs_panel" style="" aria-hidden="" animating="false">
      <div class="ipsWidget_inner">
         <div class="ipsPad_half" id="scroll_streams">
            <ul class="ipsDataList ipsDataList_reducedSpacing" id="results">
           </ul>
         </div>
      </div>
   </div>
   <div id="ipsTabs_blocksTab_01_blocksTab_01_orion_panel" class="ipsTabs_panel" style="" aria-hidden="" animating="false">
      <div class="ipsWidget_inner">
         <div class="ipsPad_half"  id="scroll_streams">
            <ul class="ipsDataList ipsDataList_reducedSpacing" id="results2">    </ul>
         </div>
      </div>
   </div>
</div>

 183781376_2021-04-28013243.thumb.png.f48b321b3d8785fc650e93ec2b805e42.png

обычно делают так: перед циклом foreach задают переменную например $id=0; далее в теле цикла увеличивают её $id++
вижу это код в шаблоне post? Там есть id для каждого поста, попробуй заменить в своем коде "01" на {$comment->$idField}

  • Author
6 минут назад, ZIKURIK сказал:

обычно делают так: перед циклом foreach задают переменную например $id=0; далее в теле цикла увеличивают её $id++
вижу это код в шаблоне post? Там есть id для каждого поста, попробуй заменить в своем коде "01" на {$comment->$idField}

Сработало. Спасибо большое :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.