|
Joined: Sep 1999
Posts: 76
Power User
|
Power User
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: if ($inputTitle) { $breadcrumb .= " » $inputTitle"; } and change to: if ($inputTitle != $forum_title) { $breadcrumb .= " » $inputTitle"; } So now, when viewing a forum, you get: site >> Forums >> Fooand when viewing a thread, you get: site >> Forums >> Foo >> Thread Title as it should be!
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
I like it, great job; and I agree completely on seeing where this could be annoying lol
|
|
|
|
Joined: Feb 2002
Posts: 2,286
Veteran
|
Veteran
Joined: Feb 2002
Posts: 2,286 |
nice simple change - thanks 
Fans Focus - Focusing on Fans of Sport (Okay - mainly football (the British variety at the moment - but expanding all the time....)
|
|
|
|
Joined: Nov 2003
Posts: 329
Beta Tester
|
Beta Tester
Joined: Nov 2003
Posts: 329 |
Nice one, I say youve just fixed a bug 
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 
|
|
|
|
Joined: Feb 2007
Posts: 10
Newbie
|
Newbie
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: $breadcrumb .= " » <a href=.... if ($inputTitle) { Revised: 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 
Fans Focus - Focusing on Fans of Sport (Okay - mainly football (the British variety at the moment - but expanding all the time....)
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
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  agreed
|
|
|
|
Joined: Feb 2007
Posts: 10
Newbie
|
Newbie
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
Joined: May 1999
Posts: 3,039 |
Thanks Myke. I'll be making this change for 7.1.1.
UBB.threads Developer
|
|
|
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.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|