Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remove <navigation> from Forum Index
#1
Question 
Hi,

I'd like to remove the <navigation> from my Forum's header but only from the HOME page yet keep navigation in all the other threads. Currently my board shows the CSS styling for the nav even though I don't use it on the Index.

Thanks!
Reply
#2
http://community.mybb.com/thread-62629.html
http://community.mybb.com/thread-35415.html

Either one of the methods will work just fine.
Reply
#3
In your root folder, open global.php, find the following,

$navbits = array();
$navbits[0]['name'] = $mybb->settings['bbname_orig'];
$navbits[0]['url'] = $mybb->settings['bburl']."/index.php"; 

Replace with,

if(THIS_SCRIPT != "index.php") {
$navbits = array();
$navbits[0]['name'] = $mybb->settings['bbname_orig'];
$navbits[0]['url'] = $mybb->settings['bburl']."/index.php";
} 
[Image: hdoE.png]
m1ne.net - coming soon
Reply
#4
+rep to both of you, thanks!
Reply
#5
(07-10-2011, 10:23 PM)Solidus Wrote: In your root folder, open global.php, find the following,

$navbits = array();
$navbits[0]['name'] = $mybb->settings['bbname_orig'];
$navbits[0]['url'] = $mybb->settings['bburl']."/index.php"; 

Replace with,

if(THIS_SCRIPT != "index.php") {
$navbits = array();
$navbits[0]['name'] = $mybb->settings['bbname_orig'];
$navbits[0]['url'] = $mybb->settings['bburl']."/index.php";
} 
that is good but can you remove a portion of the array so if you had gone catagory /forum ( home / catagory /forum) to read just (home / forum) ?
Not in this land alone,
But be God's mercies known,
From shore to shore!
Lord make the nations see,
That men should brothers be,
And form one family,
The wide world ov'er

Reply
#6
I'm just curious, but why not just use a css attached to index to hide like home breadcrumb?
Seems easier than doing a core edit.

#breadcrumb {
display:none;
}
Hey man, what's up?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)