Ah, okay, no problemnickvergessen wrote:nto yet, sorry but I'm not at home this 3weeks just on saturday and sunday...
Just have a look @ ACP > General > Board-SettingsDBM wrote:I had that mod on my 2.0.22 board and lots of my present users miss it. Also, you could set the number of topics in the ACP.
You don't have to modify, just look at @ ACP > General > Board-Settings to exclude some topics and look at Forums > manage Forums > *select* and *edit*sansara wrote:Is it possible to exclude specific forums from the list of the recent topics?
Which file should I modify?
view on "recent topics":
Shall topics of this forum be displayed on the index in "recent topics"?
Code: Select all
SQL ERROR [ mysqli ]
Lost connection to MySQL server during query [2013]
SQL
SELECT t.*, i.icons_url, i.icons_width, i.icons_height, tp.topic_posted, f.forum_name, f.forum_type, f.forum_flags FROM phpbb3_topics t LEFT JOIN phpbb3_topics_posted tp ON (t.topic_id = tp.topic_id AND tp.user_id = 2) LEFT JOIN phpbb3_forums f ON f.forum_id = t.forum_id LEFT JOIN phpbb3_icons i ON t.icon_id = i.icons_id WHERE f.forum_recent_topics = 1 ORDER BY t.topic_last_post_time DESC
BACKTRACE
FILE: includes/db/mysqli.php
LINE: 143
CALL: dbal->sql_error()
FILE: recent_topics.php
LINE: 31
CALL: dbal_mysqli->sql_query()
FILE: index.php
LINE: 134
CALL: include('recent_topics.php')
5834 topics.nickvergessen wrote:Yes, it's from my MOD, thanks for the hint...
How many topics does your forum have?
Replace
byCode: Select all
ORDER BY t.topic_last_post_time DESC';
Code: Select all
ORDER BY t.topic_last_post_time DESC LIMIT ' . intval($limit);
Code: Select all
<div class="navbar">
<div class="inner">
<span class="corners-top"><span></span></span>
<a href="#" onclick="Effect.toggle('recent_topics','BLIND'); return false;">
<h5><img src="./portal/images/icons/layout.png" height="11" width="11" /> {Header description}</h5></a>
<div id="recent_topics" style="display: block;">
<hr align="left" />
Code from recent_topics_body.html goes here and then Save As recent_topics_body.html
</div>
<span class="corners-bottom"><span></span></span>
</div>
</div>
Code: Select all
ALTER TABLE `phpbb_forums` ADD `forum_recent_topics` mediumint(1) unsigned DEFAULT "1" NOT NULL AFTER forum_topics_real;
INSERT INTO phpbb_config( config_name, config_value, is_dynamic )
VALUES ('recent_topics', '5', '1');
INSERT INTO phpbb_config( config_name, config_value, is_dynamic )
VALUES ('enabled_recent_topics', '0', '1');
Do I have to execute a different sql request for Postgresql ?SQL error :
ERROR: syntax error at or near "`"
LINE 1: ALTER TABLE `phpbb_forums` ADD `forum_recent_topics` mediumi...