Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: GleamPlay.com on November 30, 2013, 09:24:06 AM

Title: Remove Linktree in the bottom
Post by: GleamPlay.com on November 30, 2013, 09:24:06 AM
How to remove linktree in the bottom?
For example:
Simple Machines Community Forum » SMF Support » SMF 2.0.x » Support Remove bottom "Show Current Position"
Title: Re: Remove bottom "Show Current Position"
Post by: Kindred on November 30, 2013, 10:26:14 AM
The linktree is shown at the bottom and top of every thread page....

    Simple Machines Community Forum » SMF Support »  SMF 2.0.x Support »  Topic: Remove bottom "Show Current Position"

but nothing shows the way that you indicated...
it shows forum, category, board, thread
Title: Re: Remove bottom "Show Current Position"
Post by: Chas Large on November 30, 2013, 03:43:06 PM
Admin > Configuration > Current theme.

Uncheck the box next to

"Show current position in forum as link instead of text: "

This changes the Linktree trail to just text rather than hotlinks.

If you want to remove the Linktree trail completely then you'll need a mod but I can't find one.

I'm guessing you want to just remove the last item in the linktree - the topic title?

You'll need to edit code of the template, are you confident in editing php files?
Title: Re: Remove bottom "Show Current Position"
Post by: GleamPlay.com on November 30, 2013, 10:30:48 PM
Sorry, I may misunderstand you, what I mean is linktree in the bottom  :-[

I am trying to remove the linktree at the bottom but keep the linktree on the top

Can I remove some php code to remove it?
Title: Re: Remove Linktree in the bottom
Post by: Arantor on November 30, 2013, 10:36:00 PM
That depends where you want to remove it from. Unlike the top linktree, the bottom one is not shown everywhere.
Title: Re: Remove Linktree in the bottom
Post by: GleamPlay.com on November 30, 2013, 10:40:55 PM
I want to remove it from index.php?board=XXX
Title: Re: Remove Linktree in the bottom
Post by: Arantor on November 30, 2013, 10:59:17 PM
Is it not useful to have it there rather than being at the bottom of a list of topics and saving members from having to scroll back up?

Failing that, just those pages? Not topic pages as well?
Title: Re: Remove Linktree in the bottom
Post by: GleamPlay.com on November 30, 2013, 11:04:29 PM
actually, I will show you what I am trying to do :)
See this: http://gleam.tk/index.php?board=7.0

I am trying to make a Board News under Child Boards, and the bottom linktree may make it ugly, so I am trying to disable the bottom linktree

And for Topic Pages, I want to disable it too :)
so it makes the forum more uniform, bottom linktree disable in entire forum
Title: Re: Remove Linktree in the bottom
Post by: Arantor on November 30, 2013, 11:08:09 PM
Well, that would be a case of editing your theme's MessageIndex.template.php and Display.template.php for index.php?board=xxx and index.php?topic=xxx respectively, to remove the theme_linktree() calls.

I'd be more specific but you've already modified at least one of these files fairly heavily already since in the message index, the bottom linktree would be *under* all the topics.
Title: Re: Remove Linktree in the bottom
Post by: GleamPlay.com on November 30, 2013, 11:11:06 PM
nooo!

actually, I didn't modify anything.

What I did is just use Simple Portal to add a BoardNews Block on footer of sub-boards
Title: Re: Remove Linktree in the bottom
Post by: Arantor on November 30, 2013, 11:12:59 PM
I don't use Simple Portal, I wouldn't know how it works or how you configured it :P (I last used SP... briefly... in 2009? Certainly no later than 2010. I roll my own portals if I need them.)
Title: Re: Remove Linktree in the bottom
Post by: GleamPlay.com on November 30, 2013, 11:41:50 PM
So if I want to remove bottom linktree,
Do I edit my theme's MessageIndex.template.php and Display.template.php ?
What do I edit in it?
Title: Re: Remove Linktree in the bottom
Post by: Arantor on November 30, 2013, 11:46:10 PM
You remove the call to theme_linktree(); from them.
Title: Re: Remove Linktree in the bottom
Post by: GleamPlay.com on November 30, 2013, 11:50:44 PM
Thank you very much :)