Mod to get back that "View All Posts" option - 02/08/2007 4:35 AM
This may already be somewhere on here, I didn't see it. I missed being able to view all posts quickly from within a thread, in UBB 7.1. You can click on "All" in postlist, but if you jump into the middle of a thread via search results or something, there's no easy way.
So here's a quick and dirty mod for UBB 7.1b5:
In ubbthreads.inc.php:
find (around line 1457):
Add BELOW it:
(I comment all my hacks/mods so that I can do a global search for "hack" and see what I've done when I update or whatever. Change the comment lines to whatever you want.)
So here's a quick and dirty mod for UBB 7.1b5:
In ubbthreads.inc.php:
find (around line 1457):
PHP Code
if ($Endpage < $total_pages) {
$printer = $total_pages;
$page_html .= "<td class="alt-1"><a href="{$config['BASE_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}{$url}$printer">{$ubbt_lang['LAST_PAGE']} »</a></td>";
}
PHP Code
// callie hack GIMME THAT ALL POSTS BUTTON
$page_html .= "<td class="alt-1"><a href="{$config['BASE_URL']}/ubbthreads.php{$var_start}ubb{$var_eq}{$url}$printer/fpart/all">All</a></td>";
// end callie hack for ALL button