2012-05-14, 04:36 AM
2012-05-14, 04:46 AM
Remove the following from ./inc/functions.php around line 3300.
if($pforumcache[$forumnav['pid']])
{
build_forum_breadcrumb($forumnav['pid']);
}
2012-05-14, 04:51 AM
thanks
2019-10-24, 12:52 PM
Hi, this solution is compatible also with mybb 1.8?
I would like to remove "category" forum name from navigation breadcrumb (the second forum name in navigation).
Isn't possible edit it only in templates?
Thank you
I would like to remove "category" forum name from navigation breadcrumb (the second forum name in navigation).
Isn't possible edit it only in templates?
Thank you
2019-10-24, 01:50 PM
It is not possible to remove a category by jusrt editing templates, because cat and forum are treated as the same variable with no differentiation.
[ExiTuS]
[ExiTuS]
2019-10-24, 02:21 PM
(2019-10-24, 12:52 PM)niere8 Wrote: [ -> ]Hi, this solution is compatible also with mybb 1.8?
I would like to remove "category" forum name from navigation breadcrumb (the second forum name in navigation).
Isn't possible edit it only in templates?
Thank you
yes, but it's a code change, not template edit. Install the patches plugin if you don't want to make edits directly.
2019-10-24, 03:29 PM
A hard PHP code change to remove categories is made in /inc/functions.php (v 1.8.21) line 4458+:
Remove this (second) condition in if statement:
Edit
I you don't want to heavily modificate your code, you can just replace the 'c' by 'xyz' or any else weird string, that will never be a positive condition.
[ExiTuS]
// Set up link to forum in breadcrumb.
if($pforumcache[$fid][$forumnav['pid']]['type'] == 'f' || $pforumcache[$fid][$forumnav['pid']]['type'] == 'c')
{
$navbits[$navsize]['url'] = "{$base_url}forum-".$forumnav['fid'].".html";
}
Remove this (second) condition in if statement:
|| $pforumcache[$fid][$forumnav['pid']]['type'] == 'c'
to dismiss all categories.Edit
I you don't want to heavily modificate your code, you can just replace the 'c' by 'xyz' or any else weird string, that will never be a positive condition.
[ExiTuS]