Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Dwev on November 09, 2017, 07:36:17 AM

Title: How do I remove the path on the top of my forum
Post by: Dwev on November 09, 2017, 07:36:17 AM
I'm testing SMF and things are going well.

But there's one thing that bothers me, on the top there's a navigation that's always visible (right now on this forum it's "Simple Machines Community Forum » SMF Support » SMF 2.1.x Support » Start new topic").

I'm pretty sure that there's a place where I can switch this off, but after looking for it waaaay too long already.
So I'm turning to all of you for help, because it seems to elude me.
Title: Re: How do I remove the path on the top of my forum
Post by: Illori on November 09, 2017, 07:37:49 AM
there is no "switch" to turn off the linktree. for many they find it useful to have it where it is. you would need to modify the templates to remove it.
Title: Re: How do I remove the path on the top of my forum
Post by: Arantor on November 09, 2017, 08:16:12 AM
Especially when in 2.1 if you're using 2.1, it contains the links for unread topics and unread replies, really useful features.
Title: Re: How do I remove the path on the top of my forum
Post by: Steve on November 09, 2017, 08:55:56 AM
Personally, I couldn't stay on a forum that didn't have it. That (and the jump box) is how I navigate around.
Title: Re: How do I remove the path on the top of my forum
Post by: Dwev on November 09, 2017, 10:02:56 AM
Ok, I'll keep it, and from now on I know it's called the link tree.

But that decision leads to a new question: my link tree is mostly hidden under my navigation of the theme on my test site: www.robert-benschop.nl/smf/index.php

Does anyone have a tip how to move the link tree further down, so that it would be visible?
Title: Re: How do I remove the path on the top of my forum
Post by: Dzonny on November 09, 2017, 10:46:26 AM
Which theme is that you're using? Looks like your linktree doesn't actually contain links, but just text, for some crazy reason.
Title: Re: How do I remove the path on the top of my forum
Post by: Dwev on November 09, 2017, 10:50:35 AM
The theme is called Morning: https://custom.simplemachines.org/themes/index.php?lemma=2872

The Link Tree does have links, but it's almost completely hidden under the menu.
Title: Re: How do I remove the path on the top of my forum
Post by: Illori on November 09, 2017, 10:56:40 AM
there used to be an option in SMF Show current position in forum as link instead of text in current theme in admin, but for the most part this was removed over time. it may still work in this case.

can you provide a screenshot of the issue you are seeing?

you may be better off posting in the themes support topic to get help from the author.
Title: Re: How do I remove the path on the top of my forum
Post by: Dwev on November 09, 2017, 11:25:35 AM
I've added a screenshot, you can see the Link Tree just sticking out on the bottom of the Menu, less than 10 percent visible.

And 'Dzonny' was right, Index in the Link Tree is clickable, but the rest of the Tree isn't.

Last but not least: I think 'Illori' is right as well, I just changed to one of the standard themes and the Link Tree works immediately.  :'(
Title: Re: How do I remove the path on the top of my forum
Post by: Steve on November 09, 2017, 12:03:21 PM
Quote from: Dwev on November 09, 2017, 11:25:35 AM'Illori' is right as well, I just changed to one of the standard themes and the Link Tree works immediately.  :'(

Which means you'll have to do as Illori suggested, post in the Theme's thread for help. Morning (https://www.simplemachines.org/community/index.php?topic=555787.0)
Title: Re: How do I remove the path on the top of my forum
Post by: Dwev on November 09, 2017, 04:57:30 PM
I just realised that it's a problem specific for Safari, the Link Tree is visible in Chrome, Firefox and Opera.

Does that still mean that I should write this in the Theme section, or does the problem belong here after all?
Title: Re: How do I remove the path on the top of my forum
Post by: Illori on November 09, 2017, 05:27:56 PM
you can try to ask the theme author to fix the issue but if it is only in safari it may be harder to fix.
Title: Re: How do I remove the path on the top of my forum
Post by: Dwev on November 10, 2017, 10:25:43 AM
I haven't found the solution for Safari yet, but did get the answer to my original question.

If you open index.css and under .navigate_section ul you change display: block to display: none the Link Tree disappears completely.

I'll try to fix the problem later, but since this is for a Mac forum it's rather essential that it works right in Safari.
Title: Re: How do I remove the path on the top of my forum
Post by: Sir Osis of Liver on November 10, 2017, 12:10:09 PM
Just took a quick look, the problem is in the div structure around theme_linktree().  You have to separate the linktree div so the stuff above it doesn't overlap.  Don't have time to tinker with it now, and can't see it in safari anyway, but look at the code in Curve, you should be able to modify the Morning theme so that part works the same in all browsers.
Title: Re: How do I remove the path on the top of my forum
Post by: Dzonny on November 10, 2017, 07:33:50 PM
And still, that linktree will actually be just a a text with a names of boards-categories-topic, without actual link, which is nonsense IMO.
Shouldn't linktree(); be defined in Sources files, if so, this is custom-made function unrelated to default linktree, right?
Title: Re: How do I remove the path on the top of my forum
Post by: Sir Osis of Liver on November 10, 2017, 09:45:54 PM
Nothing wrong with theme_linktree(), it's just buried in a nest of divs.  If you drop it below the header, like this -



</header>
<div class="container">
<div id="content_section">';

// Show the navigation tree.
theme_linktree();

}

function template_body_below()



  it should work fine in all browsers.  Will have to wait for OP to view it in safari.
Title: Re: How do I remove the path on the top of my forum
Post by: Dwev on November 11, 2017, 10:02:47 AM
A friend of mine (who knows much more about css than I do) added the following code to the theme.css, now it shows ok in all browsers:


#bottombar
{
background: #ebedf0 none repeat scroll 0 0;
border-bottom: 1px solid #e4e6e9;
margin-top: -30px;
min-height: 60px;
text-align: left;
margin-bottom: 20px;
}



@ Sir Osis of Liver: thanks a lot for solving this problem as well, I'm actually curious which solution would be considered the best one.
Title: Re: How do I remove the path on the top of my forum
Post by: Sir Osis of Liver on November 11, 2017, 11:36:42 PM
Simpler is always better.  The Morning theme uses way too many divs in the index header, but unless you want to do a more extensive rewrite, use whichever fix works best.  I've used negative margins, but they can cause problems.  Android browsers are especially fussy, if you have mobile users check the theme in android chrome, silk, and whichever browsers iphone uses.