Advertisement:

Author Topic: Removing the Linktree from Login  (Read 715 times)

Offline Ilkharnos

  • Jr. Member
  • **
  • Posts: 106
  • Gender: Male
    • Kara Miğfer Hanı
Removing the Linktree from Login
« 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.

Offline richardwbb

  • Jr. Member
  • **
  • Posts: 300
  • currently reading; '$smcFunc'
Re: Removing the Linktree from Login
« Reply #1 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...
If my post in this topic looks ambiguous to you, then I'm with Murphy's law and General Stupidity. In other words, trial and error.

Offline Ilkharnos

  • Jr. Member
  • **
  • Posts: 106
  • Gender: Male
    • Kara Miğfer Hanı
Re: Removing the Linktree from Login
« Reply #2 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.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 7,829
  • 'Tis the gift to be simple (duh)
Re: Removing the Linktree from Login
« Reply #3 on: December 20, 2017, 11:30:19 AM »
Don't recognize the theme.  Attach your index.template.php.

Offline Ilkharnos

  • Jr. Member
  • **
  • Posts: 106
  • Gender: Male
    • Kara Miğfer Hanı
Re: Removing the Linktree from Login
« Reply #4 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.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 7,829
  • 'Tis the gift to be simple (duh)
Re: Removing the Linktree from Login
« Reply #5 on: December 22, 2017, 12:39:04 PM »
Code: [Select]

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



Offline Ilkharnos

  • Jr. Member
  • **
  • Posts: 106
  • Gender: Male
    • Kara Miğfer Hanı
Re: Removing the Linktree from Login
« Reply #6 on: December 25, 2017, 02:10:13 AM »
Worked perfectly. Thank you very much! I am grateful.