Yes, there is no errors in the newest download.WhiteWolfSix wrote:OK, I have another question.Why this icon
is showing after post is read?
This mod is designed to work for the phpBB original using the standard code to program for this. The phpBB3 portal is using propietary includes, and maybe do the errors. But this mode must to work perfect in phpBB3 board, I review the variables in the original phpBB code and this are correct. Can you say my which variables are in problem?.saaiberke wrote:Timezone,
Nice mod, although I found a little problem in /includes/last_post.php. You hardcoded the tables prefix, so for people that don't use the standard phpBB_ prefix, the mod won't work.
I have the phpBB3_ prefix in my board and it didn't work. I had to edit the last_post.php by hand to make it work.
Maybe it would be better to use the config variables via editing the constants.php for the prefix or at least mention something in the instructions files so users know they have to edit it manually.
Grtz and thanks for a great mod.
Nic
Code: Select all
$sql = "SELECT topic_title, phpbb_topics.forum_id, topic_id, topic_time, topic_type, topic_status, poll_start, topic_last_post_id, topic_poster, topic_last_poster_id, topic_first_poster_colour, topic_last_poster_colour, topic_first_poster_name, topic_last_poster_name, topic_last_post_time, topic_last_post_subject, forum_name, topic_views, topic_replies, icon_id
FROM " . TOPICS_TABLE . " LEFT JOIN phpbb_forums ON phpbb_topics.forum_id = phpbb_forums.forum_id
LEFT JOIN phpbb_icons ON phpbb_topics.icon_id = phpbb_icons.icons_id
WHERE topic_status <> 2
AND topic_approved = 1
ORDER BY topic_last_post_time DESC";
Code: Select all
$sql = "SELECT topic_title, phpbb3_topics.forum_id, topic_id, topic_time, topic_type, topic_status, poll_start, topic_last_post_id, topic_poster, topic_last_poster_id, topic_first_poster_colour, topic_last_poster_colour, topic_first_poster_name, topic_last_poster_name, topic_last_post_time, topic_last_post_subject, forum_name, topic_views, topic_replies, icon_id
FROM " . TOPICS_TABLE . " LEFT JOIN phpbb3_forums ON phpbb3_topics.forum_id = phpbb3_forums.forum_id
LEFT JOIN phpbb3_icons ON phpbb3_topics.icon_id = phpbb3_icons.icons_id
WHERE topic_status <> 2
AND topic_approved = 1
ORDER BY topic_last_post_time DESC";
Code: Select all
define('FORUMS_TABLE', $table_prefix . 'forums');
Code: Select all
$table_prefix = 'phpbb3_';
Code: Select all
$table_prefix = 'phpbb_';
Code: Select all
$table_prefix = 'myforum_';
Well, in the next RC I promise that the images will change when the user read the post. I'm work in this modification. But I'm centered in the ACP for the mod!.t0mcat wrote:nice mod!
i've got a feature request anyway: i would like if the icons could change whenever the user reads the posts...
i'll stay tuned!
My recommendation is:TimeZone wrote:The new version is set to show 10 posts, this can be changed modifying this line:
Find:Code: Select all
$result = $db->sql_query_limit($sql, 10);
I think that in the next version of the mod it's will not neccesary to modify by code. The next version will have a ACP mod, that will allow to you modify the number of showing post, the position of the mod in the index (not confirmed), a on/off option.WhiteWolfSix wrote:TZ: Nice job! I like your MOD. I suggest you to add into first post of this topic few more words into this part:My recommendation is:TimeZone wrote:The new version is set to show 10 posts, this can be changed modifying this line:
Find:Code: Select all
$result = $db->sql_query_limit($sql, 10);
The new version is set to show 10 posts, this can be changed modifying this line in includes/last_post.php:
You must include this line:_joschi_ wrote:Hi @ll,
if any1 can tell me how i can put this fine Mod in a new blanc Page- as portal.php or start.php
Thx
Code: Select all
include($phpbb_root_path . 'includes/last_post.'.$phpEx);
Code: Select all
<!-- IF S_USER_LOGGED_IN -->
<!-- INCLUDE viewlast_post.html -->
<!-- ENDIF -->