php forum
php mysql forum
php mysql smarty
 
Topic Options
#313097 - 02/07/07 08:35 PM Mod to get back that "View All Posts" option
Calpy Offline
Power User

Registered: 12/17/02
Posts: 71
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):
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']} &raquo;</a></td>";
		} 

Add BELOW it:
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 

(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.)

Top
#313099 - 02/07/07 08:47 PM Re: Mod to get back that "View All Posts" option [Re: Calpy]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Nice, thank you for sharing thumbsup
_________________________
- Allen wavey
- What Drives You?

Top
#313107 - 02/08/07 01:07 PM Re: Mod to get back that "View All Posts" option [Re: Calpy]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Originally Posted By: Calpy

(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.)


Always a good idea - everyone should do this IMHO smile
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#313108 - 02/08/07 04:47 PM Re: Mod to get back that "View All Posts" option [Re: Ian_W]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
I like it; perhaps make a request to Rick to make it official wink
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#313111 - 02/08/07 05:17 PM Re: Mod to get back that "View All Posts" option [Re: Gizmo]
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
it should be noted that this will add an "All" entry to everywhere that paginates things, even where not applicable

Top
#313112 - 02/08/07 05:40 PM Re: Mod to get back that "View All Posts" option [Re: Ian Spence]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
Could be kinda fun wink
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#313161 - 02/13/07 02:11 PM Re: Mod to get back that "View All Posts" option [Re: Ian Spence]
Calpy Offline
Power User

Registered: 12/17/02
Posts: 71
Quote:
it should be noted that this will add an "All" entry to everywhere that paginates things, even where not applicable

D'oh! That does make it kinda dirty, but I ran into situations where I needed it in showflat so often that it's worth it to me for now.

Top
#313163 - 02/13/07 02:46 PM Re: Mod to get back that "View All Posts" option [Re: Calpy]
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
would be better if you modified the function to take an optional argument called "$show_all_link" and default it to false, then modify showflat.inc.php, showthreaded.inc.php, etc to pass true as the third parameter

Top
#313236 - 02/22/07 08:40 PM Re: Mod to get back that "View All Posts" option [Re: Ian Spence]
Calpy Offline
Power User

Registered: 12/17/02
Posts: 71
That would require an actual knowledge of php/programming, ha ha. I'm completely self-taught by viewing source on stuff for the last 5 years or so, so my knowledge is sorely lacking in some very basic areas. Sigh.

Top



Moderator:  sirdude 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks