Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: Ilkharnos on December 19, 2017, 02:41:43 AM

Title: Removing the Linktree from Login
Post by: Ilkharnos on December 19, 2017, 02:41:43 AM
Hi,

I would like to remove the linktree in SMF's "Login" page. Its presence creates an unnecessary gap at the top. Is it possible to do it without removing the linktrees in the forum? (We use them when navigating inside the forum).

Thank you in advance.
Title: Re: Removing the Linktree from Login
Post by: richardwbb on December 19, 2017, 11:25:06 AM
Maybe if you post a link of this gap you mention, wouldn't that be possible to solve with css. Also if this gap is visible in the generated html everywhere on your forum but showing on screen @ login page then this all would  be a  better solution.

if you really must do what you have asked, the only way I know is php coding and not a clean.solution and I don't know about your php skills. mine... are... slow...
Title: Re: Removing the Linktree from Login
Post by: Ilkharnos on December 20, 2017, 01:57:08 AM
https://karamigfer.com/index.php?action=login

Look at the lefternmost side of the forum body. You will see "Giriş" (Login) as a linktree. I find it unnecessary to have it in the login page. I know that it occupies a horizontal line, and it creates an unnecessary gap in addition to the one which is already there.

I know this is a minor concern but it still disturbs me.
Title: Re: Removing the Linktree from Login
Post by: Sir Osis of Liver on December 20, 2017, 11:30:19 AM
Don't recognize the theme.  Attach your index.template.php.
Title: Re: Removing the Linktree from Login
Post by: Ilkharnos on December 22, 2017, 02:00:18 AM
It was "Darkbreak" theme 7-8 years ago. I have been modifying it since then. I think it eventually became my own theme.
Title: Re: Removing the Linktree from Login
Post by: Sir Osis of Liver on December 22, 2017, 12:39:04 PM


// Show the navigation tree.
if (!$context['current_action'] == 'login')
theme_linktree();



Title: Re: Removing the Linktree from Login
Post by: Ilkharnos on December 25, 2017, 02:10:13 AM
Worked perfectly. Thank you very much! I am grateful.