Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: dopeitspaul on July 23, 2014, 05:00:24 PM

Title: How do I Remove Tree Link on Top
Post by: dopeitspaul on July 23, 2014, 05:00:24 PM
Hey everyone I'm new to the SMF. I'm currently in the process of customizing my theme and I was wondering how I can remove the tree link above

Here's a pic
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi218.photobucket.com%2Falbums%2Fcc263%2Fxguillotinezx%2Fphpbb%2FScreenshot2014-07-23at15245PM_zps6678f627.png&hash=a651e08c6b3bec376038b505d395c10f38205d8d)

I was trying to remove it and have the one on the bottom remain

Is there a solution to thiss? Thanks
Title: Re: How do I Remove Tree Link on Top
Post by: Chalky on July 23, 2014, 05:09:45 PM
You could have a play with this mod. http://custom.simplemachines.org/mods/index.php?mod=3899  :)
Title: Re: How do I Remove Tree Link on Top
Post by: dopeitspaul on July 23, 2014, 06:02:18 PM
Thanks for the help

Just installed the mod successfully but none of the options on the mod helped. The Link Tree above is still displayed above.
Title: Re: How do I Remove Tree Link on Top
Post by: margarett on July 23, 2014, 06:03:53 PM
It should work, I'm using it.

Anyway you can easily remove the associated code in index.template.php (I'd tell you exactly where if I was on the computer...)
Title: Re: How do I Remove Tree Link on Top
Post by: dopeitspaul on July 23, 2014, 06:14:35 PM
Quote from: margarett on July 23, 2014, 06:03:53 PM
It should work, I'm using it.

Anyway you can easily remove the associated code in index.template.php (I'd tell you exactly where if I was on the computer...)

For some reason it's not working on mine.
On the Menu of the mod, which one did you check?

And if you have time on the computer, can you show me where exactly? Thanks!
Title: Re: How do I Remove Tree Link on Top
Post by: margarett on July 23, 2014, 06:31:07 PM
The last option, hide it completely.
Title: Re: How do I Remove Tree Link on Top
Post by: dopeitspaul on July 23, 2014, 06:37:18 PM
Quote from: margarett on July 23, 2014, 06:31:07 PM
The last option, hide it completely.

Sorry it didn't work. It just removed everything



What I wanted was to have the link tree that's shown above of the page to be removed.

and

I only want the link tree on the bottom of the page to be displayed
Title: Re: How do I Remove Tree Link on Top
Post by: margarett on July 23, 2014, 06:39:33 PM
Ah, you are right, I'm sorry. Yes it does remove both because they use the same CSS class.
I'm that case you really need to remove the linktree call in index.template.php (because the lower one is added by each template)
Title: Re: How do I Remove Tree Link on Top
Post by: dopeitspaul on July 23, 2014, 07:19:50 PM
Quote from: margarett on July 23, 2014, 06:39:33 PM
Ah, you are right, I'm sorry. Yes it does remove both because they use the same CSS class.
I'm that case you really need to remove the linktree call in index.template.php (because the lower one is added by each template)

Thanks!

And what do you mean "linktree call"?
Title: Re: How do I Remove Tree Link on Top
Post by: Hj Ahmad Rasyid Hj Ismail on July 23, 2014, 08:30:42 PM
I noted this. I will update the mod so that it will add an option to remove only top linktree and not all of them. I will update later.
Title: Re: How do I Remove Tree Link on Top
Post by: dopeitspaul on July 23, 2014, 08:39:30 PM
Quote from: ahrasis on July 23, 2014, 08:30:42 PM
I noted this. I will update the mod so that it will add an option to remove only top linktree and not all of them. I will update later.

Nice! Thank you, let me know
Title: Re: How do I Remove Tree Link on Top
Post by: Sir Osis of Liver on July 24, 2014, 12:17:08 AM
If you want to do it yourself -

index.template.php



// Show the navigation tree.
theme_linktree();



Just comment it out, will remove top linktree only.
Title: Re: How do I Remove Tree Link on Top
Post by: Hj Ahmad Rasyid Hj Ismail on July 24, 2014, 04:04:36 AM
Yes. That's the manual mod for it. Or you can use the updated version (#1.1) of MLT: Modify Linktree Mod (http://custom.simplemachines.org/mods/index.php?mod=3899).
Title: Re: How do I Remove Tree Link on Top
Post by: dopeitspaul on July 24, 2014, 04:56:47 AM
Thanks guys it worked. Appreciate all the help. Might have more questions on the way since I'm new to SMF
Title: Re: How do I Remove Tree Link on Top
Post by: Bounty_y2k on November 11, 2014, 01:43:09 PM
Quote from: Krash on July 24, 2014, 12:17:08 AM
If you want to do it yourself -

index.template.php



// Show the navigation tree.
theme_linktree();



Just comment it out, will remove top linktree only.

This is working good. But,what do I need to comment out to remove only the bottom one? :P
Title: Re: How do I Remove Tree Link on Top
Post by: Hj Ahmad Rasyid Hj Ismail on November 13, 2014, 02:05:37 AM
Quote from: ahrasis on July 24, 2014, 04:04:36 AM
Yes. That's the manual mod for it. Or you can use the updated version (#1.1) of MLT: Modify Linktree Mod (http://custom.simplemachines.org/mods/index.php?mod=3899).