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.

AHristich

Актив
  • Регистрация

  • В сети

Everything posted by AHristich

  1. Пытаюсь использовать данный код (шаблон блока Лента тем) {{if !empty( $topics ) }} {{if \count($topics)}} {{foreach $topics as $id => $topic}} {{if $id == 0}} <ul class='ipsGrid ipsGrid_collapsePhone'> {template="row" group="global" app="forums" location="front" params="NULL, NULL, $topic, FALSE"} </ul> {{else}} {{if $id % 2}} <ul class='ipsGrid ipsGrid_collapsePhone'> {{endif}} {template="row" group="global" app="forums" location="front" params="NULL, NULL, $topic, FALSE"} {{if $id % 2 == 0 or ( \count( $topics ) == ( $id + 1) )}} </ul> {{endif}} {{endif}} {{endforeach}} {{endif}} {{endif}} в котором подключается шаблон row {{$idField = $topic::$databaseColumnId;}} {{$iPosted = isset( $table->contentPostedIn ) ? $table->contentPostedIn : ( ( $table AND method_exists( $table, 'container' ) AND $topic->container() !== NULL ) ? $topic->container()->contentPostedIn() : array() );}} <div class='{{if $id}}ipsGrid_span3{{else}}ipsGrid_span6{{endif}} ipsBox'> {{$post = $topic->topic_firstpost ? \IPS\forums\Topic\Post::load($topic->topic_firstpost)->post : NULL;}} {{if $post AND \preg_match( '#<fileStore.core_Attachment>\S+(?:jpg|jpeg|png|webp)#', $post, $image_url )}} <div> {{$image_url = \str_replace('<fileStore.core_Attachment>', \IPS\File::getClass('core_Attachment')->baseUrl(), $image_url[0]);}} {{if settings.lazy_load_enabled}} <a href="{$topic->url( "getPrefComment" )}" title="{lang="read_more_about" sprintf="$topic->_title"}" > <img class='ipsImage' src='{expression="\IPS\Text\Parser::blankImage()"}' alt='{wordbreak="$topic->_title"}' data-src='{file="$image_url" extension="core_Attachment"}'></a> {{else}} <a href="{$topic->url( "getPrefComment" )}" title="{lang="read_more_about" sprintf="$topic->_title"}" > <img class='ipsImage' alt='{wordbreak="$topic->_title"}' src='{file="$image_url" extension="core_Attachment"}'></a> {{endif}} </div> {{endif}} <div> <h4 class='ipsDataItem_title ipsContained_container'> <span class='ipsType_break ipsContained'><a href='{$topic->url( "getPrefComment" )}' {{if $topic->canView()}}data-ipsHover data-ipsHover-target='{$topic->url()->setQueryString('preview', 1)}' data-ipsHover-timeout='1.5' {{endif}}>{$topic->mapped('title')}</a></span> </h4> <p class='ipsType_reset ipsType_medium ipsType_light'> <span><i class='fa fa-clock-o'></i> {datetime="$topic->mapped('date')" lowercase="true"}</span> </p> {{foreach $topic->stats(FALSE) as $k => $v}} <span {{if $k == 'num_views'}}class=''{{elseif \in_array( $k, $topic->hotStats )}}class="ipsDataItem_stats_hot" data-text='{lang="hot_item"}' data-ipsTooltip title='{lang="hot_item_desc"}'{{endif}}> <span class='ipsDataItem_stats_type'>{lang="{$k}" pluralize="$v" format="short"}</span> <span class='ipsDataItem_stats_number'>{number="$v" format="short"}</span> {{if ( $k == 'forums_comments' OR $k == 'answers_no_number' ) && \IPS\forums\Topic::modPermission( 'unhide', NULL, $topic->container() ) AND $unapprovedComments = $topic->mapped('unapproved_comments')}} &nbsp;<a href='{$topic->url()->setQueryString( 'queued_posts', 1 )}' class='ipsType_warning ipsType_small ipsPos_right ipsResponsive_noFloat' data-ipsTooltip title='{lang="queued_posts_badge" pluralize="$topic->topic_queuedposts"}'><i class='fa fa-warning'></i> <strong>{$unapprovedComments}</strong></a> {{endif}} </span> {{endforeach}} </div> </div> который должен выводить сначала два топика потом четыре (по аналогу Category 2 Column First Featured в Страницах). Понимаю что нужно каким-то образом "подцепить" id топиков, но не могу понять как именно.Кто-нибудь подскажет решение?
  2. Это здесь не ту редакцию показал,менял абсолютно все $row
  3. Пытаюсь вывести в пользовательских блоках,там подключается этот шаблон. Тесть создаю блок в Страницах,затем шаблон блока Лента тем форумов,вот там и подключается этот шаблон. forums/global/row.html
  4. Я в курсе что $row нету,поэтому использовал $topic (до создания темы о помощи) {{$location = $topic != NULL ? $topic : ($row->post != NULL ? $row->post : $row);}} {{$field_content = $row->post == NULL ? 'field_'.$location->database()->field_content : $row->post; $field_content = $row->post == NULL ? $location->$field_content : $field_content;}} {{if \preg_match( '#<fileStore.core_Attachment>\S+(?:jpg|jpeg|png|webp)#', $field_content, $image_url )}} {{$image_url = \str_replace('<fileStore.core_Attachment>', \IPS\File::getClass('core_Attachment')->baseUrl(), $image_url[0]);}} {{if settings.lazy_load_enabled}} <a href="{$topic->url( "getPrefComment" )}" title="{lang="read_more_about" sprintf="$topic->_title"}" > <img class='ipsImage' src='{expression="\IPS\Text\Parser::blankImage()"}' alt='{wordbreak="$topic->_title"}' data-src='{file="$image_url" extension="core_Attachment"}'></a> {{else}} <a href="{$topic->url( "getPrefComment" )}" title="{lang="read_more_about" sprintf="$topic->_title"}" > <img class='ipsImage' alt='{wordbreak="$topic->_title"}' src='{file="$image_url" extension="core_Attachment"}'></a> {{endif}} {{endif}} или я что-то не так делаю? даже пробывал полностью все $row в этом коде заменить на $topic,бесполезно.
  5. здесь у меня подозрение на строку {{$field_content = $row->post == NULL ? 'field_'.$location->database()->field_content : $row->post; $field_content = $row->post == NULL ? $location->$field_content : $field_content;}} потому что без этой строки ошибки нету,но и сам код не работает как надо.
  6. 1. (однозначно и в первую очередь) 2. (предположение)
  7. У нас весна,все тает,грязища,лужи.Всю зиму город не чистили от снега и теперь потоп начинается. А тут еще в админке не могу понять, или я слепой или одно из двух : не могу найти список тем форумов.Вообще существует такое?
  8. Парни,выручайте. В рнр я ноль ,ну может 0.1,не более. Есть код {{$location = $row != NULL ? $row : ($row->post != NULL ? $row->post : $row);}} {{$field_content = $row->post == NULL ? 'field_'.$location->database()->field_content : $row->post; $field_content = $row->post == NULL ? $location->$field_content : $field_content;}} {{if \preg_match( '#<fileStore.core_Attachment>\S+(?:jpg|jpeg|png|webp)#', $field_content, $image_url )}} {{$image_url = \str_replace('<fileStore.core_Attachment>', \IPS\File::getClass('core_Attachment')->baseUrl(), $image_url[0]);}} {{if settings.lazy_load_enabled}} <a href="{$row->url( "getPrefComment" )}" title="{lang="read_more_about" sprintf="$row->_title"}" > <img class='ipsImage' src='{expression="\IPS\Text\Parser::blankImage()"}' alt='{wordbreak="$row->_title"}' data-src='{file="$image_url" extension="core_Attachment"}'> </a> {{else}} <a href="{$row->url( "getPrefComment" )}" title="{lang="read_more_about" sprintf="$row->_title"}" > <img class='ipsImage' alt='{wordbreak="$row->_title"}' src='{file="$image_url" extension="core_Attachment"}'> </a> {{endif}} {{endif}} Работает в Страницах: entry и recordRow / и Форумах: topicRow и topicRowSnnipet. Но ни в какую не хотит фурыкать в файле forums/global/row P.S Автор кода молчит...
  9. что-то мне подсказывает что не в данном случае...Хотя может и ошибаюсь
  10. Типа мыши кололись но жрали кактус...
  11. А вы зачем это сказали? Сейчас придется объяснять что это за файл и где он находится...
  12. Так вы сами сказали что сайт на вордпрессе. И даже видно что ваш сайт на нем и стоит.
  13. Ну так на форумах wordpress (woocommers) и спрашивайте,
  14. @adamluxeещё лучше обратитесь к автору/создателю вашей темы.
  15. Похожую тему уже обсуждали и не так давно. Поищите.
  16. Так а что мешает установить кол-во продукта/товара в 1шт ?
  17. Племяш тоже подлечился и уехал обратно в прошлом году. Разведчик.
  18. А чем вам zip не угодил? Почему обязательно тар? К тому же я даже просто распакованные файлы движка закидывал через фтп и все норм.
  19. @Zero108даже если просто тупо поставить Debian и на нем развернуть сервер апачевский из коробки, ips устанавливается вообще без проблем и с нужными правами,без каких-либо танцулек с бубенцами. Единственное только task.php просит 777 при создании крона.
  20. На нормальном хосте или стандартном невиндовым сервере права устанавливаются автоматом какие надо.
  21. Я тоже хочу нимного хорошим побыть,ну хотя бы чуток 😔 . Мелочь а приятно
  22. Огромное СПАСИБО и низкий поклон тебе что защищал нас и нашу Родину !!!
  23. Поздравляю всех с Днём защитника ! Для нашей семьи это уже особенный день,племянник-десантник практически с первых дней на СВО.

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.