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
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
I like it, great job; and I agree completely on seeing where this could be annoying lol


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
nice simple change - thanks smile


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Nov 2003
Posts: 329
Beta Tester
Beta Tester
Offline
Joined: Nov 2003
Posts: 329
Nice one,
I say youve just fixed a bug wink


BOOM 7.6.+ rocks....
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Thank you smile


- Allen wavey
- What Drives You?
Sponsored Links
Joined: Feb 2007
Posts: 10
Newbie
Newbie
Offline
Joined: Feb 2007
Posts: 10
The above mod leaves the last unit on the Forum Summary as a redundant link to the current page.  So I changed the line before the above change by enclosing it within an if ... }

Original:
Code
$breadcrumb .= " » <a href=....
if ($inputTitle) {

Revised:
Code
if ($inputTitle != $forum_title) {
$breadcrumb .= " » <a href=....
}
if ($inputTitle) {

So now, when viewing a forum summary, I get:
site >> Forums >> Cat >> ForumName

I don't think the change affects the breadcrumb text on the thread-view page.

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
To be honest I prefer the link to the current forum - I can click on it to refresh the forum and see if there are any new posts smile


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Originally Posted by Ian_W
To be honest I prefer the link to the current forum - I can click on it to refresh the forum and see if there are any new posts smile
agreed


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Feb 2007
Posts: 10
Newbie
Newbie
Offline
Joined: Feb 2007
Posts: 10
Hmmmm, curious and interesting... I've always used the browser's refresh button. Since most sites don't have any type of refresh-specific link, I have gotten quite used to using the browser's button.

Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Thanks Myke. I'll be making this change for 7.1.1.


UBB.threads Developer
Sponsored Links

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:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
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-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)