Code: Select all
## MOD Description: This mod allows a user to set his own default for how far
## back in time he wants to go when looking in viewforum at
## old topics that have not been posted to for a while.
## In the forum view on an unmodded board, the default is
## always "All", and if a user changes it while looking at
## the topics in a given forum, the setting gets reset back
## to "All" as soon as he moves on to another forum (and
## stays at "All" even if he goes back to the original forum
## where he changed it).
##
## This mod also corrects the behavior of the function so that
## it finds all topics that have been posted to in the last N days
## (on an unmodded board, if you set it to look at topics for the
## last N days, it will show you topics that were started
## N days ago, but the proper behavior is to look for topics
## that have been posted to in the last N days; this mod
## fixes that behavior).
##
## Finally, this mod fixes a few bugs in phpbb that mess up
## pagination in various circumstances...see
## http://www.phpbb.com/phpBB/viewtopic.php?t=203533
## for details.
##
## The real author of most of this mod is Slimy, who started this at
## http://www.phpbb.com/phpBB/viewtopic.php?t=147116 .
## I merely refined what he had already done.
Code: Select all
## Files To Edit: viewforum.php
## includes/functions.php
Code: Select all
766 $template->assign_vars(array(
767 'PAGINATION' => generate_pagination("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id&topicdays=$topic_days", $topics_count, $board_config['topics_per_page'], $start),
768 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $board_config['topics_per_page'] ) + 1 ), max(1, ceil( $topics_count / $board_config['topics_per_page'] )),
769
770 'L_GOTO_PAGE' => $lang['Goto_page'])
771 );
Grebog wrote: ...Thanks for the help.
I like this mod, it makes it easy for you to cut down how many posts you are looking at if you want to and really could help on some large forums when people are gone for a few days and only want to find out what was posted since they left.
kellydebs wrote: I'm new to this stuff. I've done all of the mod except what (and how?) do I do with this line?
ALTER TABLE phpbb_users ADD topic_view_time_id mediumint(8) default '0' AFTER user_regdate;
Thanks much!
asinshesq wrote: Or, if you prefer, you could install easymod and then use easymod to do all the work for you.