Oops, I made a last minute change in something and didn't test it's impact on the text toggle (which was working fine last night before I submitted this). I'll fix it tonight if I get a chance. Do the other parts seem to work ok so far?saaiberke wrote:EDIT: 1 little problem found I think. I marked 2 topics as unread but the link in the indexpage still shows "You have no unread posts", when I klick on the link I see both unread posts.
Ok, try this:saaiberke wrote:EDIT: 1 little problem found I think. I marked 2 topics as unread but the link in the indexpage still shows "You have no unread posts", when I klick on the link I see both unread posts.
Code: Select all
OPEN
includes/functions.php
FIND
$s_exists_unreads = $s_inc_unread_link = true;
REPLACE WITH
$s_exists_unreads = check_unread_posts();
$s_inc_unread_link = true;
FIND
'S_EXISTS_UNREADS' => $s_exists_unread,
REPLACE WITH
'S_EXISTS_UNREADS' => $s_exists_unreads,
OPEN
functions_display.php
FIND
foreach ($forum_rows as $row)
BEFORE, ADD
// start mod view or mark unread post
// initialize the flag $exists_unread to signal that we are on the index page
// (if there are any unreads this will be reset to 1 later on)
global $exists_unreads;
$exists_unreads = -1;
// end mod view or mark unread posts
FIND
global $exists_unreads;
$exists_unreads = true;
REPLACE WITH
$exists_unreads = 1;
OPEN
includes/functions_view_or_mark_unread_posts.php
FIND
if ($exists_unreads)
{
return true;
}
REPLACE WITH
if ($exists_unreads == 1)
{
// user is on index and there are unreads
return true;
}
if ($exists_unreads == -1)
{
// user is on index but there are no unreads
return false;
}
Great! Let me know how things work once you make the changes. (I uploaded a new version if you want to start from scratch, and that would be helpful anyway since it will ensure I didn't make any stupid mistakes in fixing the real files.saaiberke wrote:The other parts are working splendid.
Grtz,
Nic
Code: Select all
#
#-----[ COPY ]------------------------------------------------
#
copy root/includes/functions_view_or_mark_unread_posts.php to phpBB3/includes/functions_view_or_mark_unread_posts.php
#
#-----[ OPEN ]------------------------------------------
#
phpBB3/common.php
#
#-----[ FIND ]------------------------------------------
#
require($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx);
#
#-----[ AFTER, ADD ]------------------------------------------
#
// start mod view or mark unread posts
require($phpbb_root_path . 'includes/functions_view_or_mark_unread_posts.' . $phpEx);
// end mod view or mark unread posts
#
#-----[ OPEN ]------------------------------------------
#
phpBB3/search.php
Great, thanks for letting me know.saaiberke wrote:It's all ok now, these changes did the trick.
I will try that, it would be a big time saver indeed. Thanks for letting me know this.asinshesq wrote: By the way, if you are like me and you prefer using easymod to install, you can do that by cutting your phpbb3 directory, pasting it into the root folder of a phpbb2 board that has easymod on it, changing each COPY or OPEN instruction in the mod so that it refers to the name of the phpBB3 folder just before the path for whatever the COPY or OPEN is telling you to do, and then running easymod. For example, if your phpbb3 folder is called phpBB3, the first few instructions in the mod would read:
[SNIP]
When done, just cut your phpbb3 folder and re-paste it where it belongs in the server. A big time saver!
And of course if you use that method you should execute the sql queries manually (via phpmyadmin or whatever) rather than allowing easymod to do them, since easymod will otherwise try to execute the queries on your phpbb2 databasesaaiberke wrote:I will try that, it would be a big time saver indeed. Thanks for letting me know this.asinshesq wrote: By the way, if you are like me and you prefer using easymod to install, you can do that by cutting your phpbb3 directory, pasting it into the root folder of a phpbb2 board that has easymod on it, changing each COPY or OPEN instruction in the mod so that it refers to the name of the phpBB3 folder just before the path for whatever the COPY or OPEN is telling you to do, and then running easymod. For example, if your phpbb3 folder is called phpBB3, the first few instructions in the mod would read:
[SNIP]
When done, just cut your phpbb3 folder and re-paste it where it belongs in the server. A big time saver!
Grtz,
Nic
I spoke too soon...I don't think there's anything wrong with what I did to subsilver. What I am finding is that on a clean unmodded phpbb3 RC1 board, if I use subsilver and I post a short post (say one or two lines) and do not click to attach a signature to the post, the resulting post has the bottom right icons substantially higher than the bottom of the post box. In fact, it looks terrible. Is that really the way it is supposed to look, or is that a bug?asinshesq wrote:I just found a small glitch in the way this makes posts look in subsilver2. I intended for the 'mark post as unread' link in subsilver2 to appear at the bottom left of the post (same line as the delete, post details and report this post icons appear). But I see that if the post is, for example, only one line long (way shorter than the avatar and other profile info that appears on the left), the mark post as unread link (and those other links) appear just after the text of the post rather than at the very bottom of the post. And I also see that in some cases the sig gets dropped after the post text. I must have messed up the hmtl change in subsilver2's viewtopic_body.html (but it looks fine in prosilver).
I'm terrible at html...if anyone can help correct my error I'd appreciate it. If not, I'll play around with it later this week and I'm sure I'll be able to fix that...