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

Доброго времени суток.

Имею модуль вывода последних тем форума на главную сайта.

if ( $l2cfg["forum"]["version"] == "ipb" ) {
            $fsql = "
		SELECT tid,title,last_post,last_poster_id,last_poster_name 
		FROM {$l2cfg["forum"]["prefix"]}topics 
		WHERE forum_id NOT IN ({$l2cfg["forum"]["deny"]}) 
		ORDER BY last_post DESC 
		LIMIT {$l2cfg["forum"]["count"]}";
            $furl_user = "index.php?showuser=";
            $furl_link = "index.php?/topic/{topic_id}' title='{desc_id}'";
        }

На 3.4.6 все работало, после обновления до 4.1.19.2 перестало работать. Думаю, что проблема в строчке 

SELECT tid,title,last_post,last_poster_id,last_poster_name 

Кто сталкивался и может помочь?

  • Author
44 минуты назад, WOLF сказал:

Решение в идеале выложить надо бы, возможно кто-то столкнется с этим

сюда можно выкладывать готовый php?

  • Author

Надеюсь, что кому-то пригодится.

Я использую обвязку SW13 + ipb. После обновления форума до 4 версии, перестал работать вывод тем на главную сайта. Решается все просто: чтобы не заморачиваться, скопировать с заменой файл settings.php в директорию admin SW13, файл forum.php скопировать в директорию module. После этого в настройках движка у вас появится пункт IPS, нужно выбрать его и радоваться отображению списка тем на главной. Проверено на 4.2.5.

settings.php

forum.php

settings.php

forum.php

59f1bd298fd55_1.png.f80422d4513f8785baca69270cd238a3.png

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.