Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Sep 1999
Posts: 76
Power User
Power User
Offline
Joined: Sep 1999
Posts: 76
When viewing a forum or sub-forum, it really bothered me to see the name of the forum I was in repeated twice in the breadcrumb - first as a link, second as plain text.

Instinctively, whenever I wanted to go up one level (the mouse-click equivalent of 'cd ..') I would always click on the second last segment in the breadcrumb, but when you had a breadcrumb that looked like:

site >> Forums >> Foo >> Foo

you'd wind up in the same forum again. This reeeeaallly annoyed me, so here's a little mod that removes the redundant forum name from the breadcrumb.

In libs/ubbthreads.inc.php, find:
Code
if ($inputTitle) {
$breadcrumb .= " » $inputTitle";
}
and change to:
Code
if ($inputTitle != $forum_title) {
$breadcrumb .= " » $inputTitle";
}

So now, when viewing a forum, you get:

site >> Forums >> Foo

and when viewing a thread, you get:

site >> Forums >> Foo >> Thread Title

as it should be!

Sponsored Links
Entire Thread
Subject Posted By Posted
[7.1] Removing Breadcrumb Redundancy Myke 03/01/2007 1:57 PM
Re: [7.1] Removing Breadcrumb Redundancy Gizmo 03/01/2007 2:44 PM
Re: [7.1] Removing Breadcrumb Redundancy Ian_W 03/01/2007 4:22 PM
Re: [7.1] Removing Breadcrumb Redundancy Mark_S 03/01/2007 6:05 PM
Re: [7.1] Removing Breadcrumb Redundancy AllenAyres 03/01/2007 6:19 PM
Re: [7.1] Removing Breadcrumb Redundancy Steve C 03/03/2007 12:46 AM
Re: [7.1] Removing Breadcrumb Redundancy Ian_W 03/04/2007 11:04 AM
Re: [7.1] Removing Breadcrumb Redundancy Gizmo 03/04/2007 11:30 PM
Re: [7.1] Removing Breadcrumb Redundancy Steve C 03/06/2007 9:13 AM
Re: [7.1] Removing Breadcrumb Redundancy Rick 03/28/2007 10:33 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,153
Joined: July 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 646
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 22
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)