Massachusetts Cop Forum banner
1 - 5 of 5 Posts

MassCops Founder
Joined
6,403 Posts
I'll look into it Kozmo, If I can add it as an option I will.
 

MassCops Founder
Joined
6,403 Posts
Selectable option added, in topics that span a few pages there is now a [View All] link beside the page numbers. All the posts on that topic will be displayed on one page. I tested it on the 77RTT thread and it worked no problem, a little slow in loading but this is why we limit the amount of times a signature is displayed :wink:

Was a fairly simple hack to modify..

Code:
if(!$HTTP_GET_VARS['start']) {
    $start='0';
} else{
    $start=(intval($HTTP_GET_VARS['start']) == $HTTP_GET_VARS['start']) ? (intval($HTTP_GET_VARS['start'])) : ('all');
};

$_limit=($start=='all')?(''):("LIMIT ".$start.", ".$board_config['posts_per_page']);

ORDER BY p.post_time $post_time_order ".$_limit;

if($start=='all') {
    $pagination=' ';
} else{

if(!empty($pagination)) {
    $pagination.=" <a href='".append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&start=all&postdays=$post_days&postorder=$post_order")."' style='text-decoration:none;'>".$lang['View_all_pages']."</a>";
    } else{$pagination=" ";}
};

$goto_page .= ' <a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=" . $topic_id . "&start=all") . '" style="text-decoration:none;">#</a> ]';
 

MassCops Founder
Joined
6,403 Posts
LOL yes suggestions are always welcomed and most of the time acted upon, most if not all of the mods to the board are from phpBBhacks they have some real good ones and just as many stupid ones.

The only problem with hacking the board is that it changes the scripts a lot and when you go to add a new hack the read me file references a section of code that has been replaced by another hack, so it's gets a little but more difficult each time.
 

MassCops Founder
Joined
6,403 Posts
Koz I did try to add this already and ended up with major errors. I will look for a different version of the hack that may play nice with the new code.
 
1 - 5 of 5 Posts
Top