Как вывести список тем форума на страницу форума phpBB 3
Код: Выделить всё
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^natorrent.pro
RewriteRule (.*) http://www.natorrent.pro/$1 [R=301,L]
#
# Uncomment the statement below if URL rewriting doesn't
# work properly. If you installed phpBB in a subdirectory
# of your site, properly set the argument for the statement.
# e.g.: if your domain is test.com and you installed phpBB
# in http://www.test.com/phpBB/index.php you have to set
# the statement RewriteBase /phpBB/
#
#RewriteBase /
#
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
#
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
# The following 3 lines will rewrite URLs passed through the front controller
# to not require app.php in the actual URL. In other words, a controller is
# by default accessed at /app.php/my/controller, but can also be accessed at
# /my/controller
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ app.php [QSA,L]
#
# If symbolic links are not already being followed,
# uncomment the line below.
# http://anothersysadmin.wordpress.com/2008/06/10/mod_rewrite-forbidden-403-with-apache-228/
#
#Options +FollowSymLinks
</IfModule>
# With Apache 2.4 the "Order, Deny" syntax has been deprecated and moved from
# module mod_authz_host to a new module called mod_access_compat (which may be
# disabled) and a new "Require" syntax has been introduced to mod_authz_host.
# We could just conditionally provide both versions, but unfortunately Apache
# does not explicitly tell us its version if the module mod_version is not
# available. In this case, we check for the availability of module
# mod_authz_core (which should be on 2.4 or higher only) as a best guess.
<IfModule mod_version.c>
<IfVersion < 2.4>
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
</IfVersion>
<IfVersion >= 2.4>
<Files "config.php">
Require all denied
</Files>
<Files "common.php">
Require all denied
</Files>
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
<IfModule !mod_authz_core.c>
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
</IfModule>
<IfModule mod_authz_core.c>
<Files "config.php">
Require all denied
</Files>
<Files "common.php">
Require all denied
</Files>
</IfModule>
</IfModule>
DirectoryIndex app.php/portal index.php index.html index.htm
aleksndr
NIK111
У меня тоже версия 3.2.1, но все работает. Ошибка где-то у вас.NIK111 писал(а): Не работает на версии 3.2.1 Расширение установилось, но топик не отображается на странице и в правах (ролях) пользователей тоже нет такой графы...
mr-celebs
Код: Выделить всё
SQL ERROR [ mysqli ]
Unknown column 't.topic_first_post_id' in 'on clause' [1054]
SQL
SELECT t.topic_title, f.forum_id, f.forum_name, p.post_id, t.topic_id, t.topic_posts_approved, t.topic_time, t.topic_last_post_time, p.post_time, fp.post_text AS first_post_text, fpu.user_avatar AS fp_avatar, fpu.user_avatar_type AS fp_avatar_type, fpu.user_avatar_width AS fp_avatar_width, fpu.user_avatar_height AS fp_avatar_height FROM phpbb_topics t, phpbb_forums f, phpbb_posts p LEFT JOIN phpbb_posts fp ON (fp.post_id = t.topic_first_post_id) LEFT JOIN phpbb_users fpu ON (fpu.user_id = t.topic_poster) WHERE t.topic_visibility = 1 AND f.forum_id=t.forum_id AND t.topic_posts_approved > 0 AND t.topic_last_post_id=p.post_id AND t.topic_first_post_id!=p.post_id AND t.topic_views > 1 AND t.forum_id = f.forum_id AND t.forum_id IN('491', '492', '493', '494', '495', '496') ORDER BY topic_last_post_time DESC LIMIT 10
BACKTRACE
FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()
FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 855
CALL: trigger_error()
FILE: [ROOT]/phpbb/db/driver/mysqli.php
LINE: 193
CALL: phpbb\db\driver\driver->sql_error()
FILE: [ROOT]/phpbb/db/driver/mysql_base.php
LINE: 45
CALL: phpbb\db\driver\mysqli->sql_query()
FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 261
CALL: phpbb\db\driver\mysql_base->_sql_query_limit()
FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 321
CALL: phpbb\db\driver\driver->sql_query_limit()
FILE: [ROOT]/ext/ppk/bb3topics/core/bb3topics.php
LINE: 717
CALL: phpbb\db\driver\factory->sql_query_limit()
FILE: [ROOT]/ext/ppk/bb3topics/event/listener.php
LINE: 60
CALL: ppk\bb3topics\core\bb3topics->display_bb3topics()
FILE: (not given by php)
LINE: (not given by php)
CALL: ppk\bb3topics\event\listener->display_bb3t_index()
FILE: [ROOT]/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php
LINE: 161
CALL: call_user_func()
FILE: [ROOT]/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php
LINE: 46
CALL: Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 60
CALL: Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 46
CALL: phpbb\event\dispatcher->dispatch()
FILE: [ROOT]/index.php
LINE: 231
CALL: phpbb\event\dispatcher->trigger_event()
southklad
southklad
PPK
Код: Выделить всё
@media only screen and (max-width: 590px), only screen and (max-device-width: 590px) {
.....
display: none;
maco8024
/ext/ppk/bb3topics/styles/prosilver/template/bb3topics_body.html
добавить классы или идентификаторы (например bb3topics_main, bb3topics_addit) к двум слоям которые выводят блоки, потом в /ext/ppk/bb3topics/styles/prosilver/template/event/overall_header_content_before.html
Код: Выделить всё
#bb3topics_main, #bb3topics_addit
{
display: none;
}
PPK
maco8024
DeathMan