Author Topic: re-moving the login boxs from header.  (Read 1046 times)

Offline ewind

  • Full Member
  • ***
  • Posts: 195
    • BDM Webs
re-moving the login boxs from header.
« on: Apr 09, 2012, 11:16:15 »
Hello, I'm having some trouble trying to remove the login box's and submit box.

I like to keep the rest in tact. such as the poster info.  see images as too what I mean.

Image  0ne with it

Image 2 with out it.

trying to give it a little cleaner look, LOL I tried on my own and made a mess of it. maybe I took out something I shouldn't have.


« Last Edit: Apr 09, 2012, 11:18:16 by Orless »
One must remain twisted to keep a valid perspective on those around him.
That's why dogs look at you sideways.

Customizing SMF Themes

Offline agent47

  • Support Team
  • Hero Member
  • *
  • Posts: 818
  • At your service?
    • Superhero Alliance
Re: re-moving the login boxs from header.
« Reply #1 on: Apr 09, 2012, 14:31:45 »
Find:
Code: [Select]
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo '
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
<form id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
<div class="info">', sprintf($txt['welcome_guest'], $txt['guest_title']), '</div>
<input type="text" name="user" size="17" class="input_text" />
<input type="password" name="passwrd" size="17" class="input_password" />
<input type="submit" value="', $txt['login'], '" class="button_submit" />';

if (!empty($modSettings['enableOpenID']))
echo '
<br /><input type="text" name="openid_identifier" id="openid_url" size="25" class="input_text openid_login" />';

echo '
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}

Replace with:
Code: [Select]
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo '
<form id="guest_form">
<div class="info">', sprintf($txt['welcome_guest'], $txt['guest_title']), '</div>
</form>';
}
« Last Edit: Apr 09, 2012, 14:37:38 by agent47 »

Wedge is the way to go

Offline ewind

  • Full Member
  • ***
  • Posts: 195
    • BDM Webs
Re: re-moving the login boxs from header.
« Reply #2 on: Apr 09, 2012, 15:52:27 »
thanks I about beat my head into the desk over that.  :uglystupid2:
One must remain twisted to keep a valid perspective on those around him.
That's why dogs look at you sideways.

Customizing SMF Themes

Offline agent47

  • Support Team
  • Hero Member
  • *
  • Posts: 818
  • At your service?
    • Superhero Alliance
Re: re-moving the login boxs from header.
« Reply #3 on: Apr 09, 2012, 15:54:05 »
thanks I about beat my head into the desk over that.  :uglystupid2:
;) :cheers:

Wedge is the way to go

Offline ARG

  • GFX Designer
  • DS Friend
  • Hero Member
  • *
  • Posts: 5652
  • Civilian Support
    • Files4Design
Re: re-moving the login boxs from header.
« Reply #4 on: Apr 09, 2012, 19:55:18 »
 :cheers:
I no longer work here. Please stop sending me messages asking for premium theme support. That is what the Support Boards are for. Thank You!