How to delete log in

Started by Vonotna, September 04, 2015, 09:27:34 AM

Previous topic - Next topic

Vonotna

I am using a different space for loging in and the Welcome user part
How to delete the default log in space:

Thanks

Edit:
That also includes that I want to delete the


    Hey, Admin
    Show unread posts since last visit.
    Show new replies to your posts.
    September 04, 2015, 03:35:23 pm



That shows after you log in

JBlaze

Look in your current theme's index.template.php

It is located in /Themes/{theme_name}/index.template.php
Jason Clemons
Former Team Member 2009 - 2012

Vonotna

#2
Well I have located where it is but whenever I delete it or someparts of It I get 500 Internal Server Error.
echo !empty($settings['forum_width']) ? '
<div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', '
<div id="header">
  <div id="head-left">
<div id="head-right">
  <div id="userarea" class="smalltext">';
if ($context['user']['is_logged'])
{
if (!empty($context['user']['avatar']))
  echo '
<div id="my-avatar" class="clearfix">', $context['user']['avatar']['image'], '</div>';
echo '
<ul class="reset">
<li><b>', $txt['hello_member'], ' ', $context['user']['name'], '</b></li>';
  echo '
<li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>
  <li>', $context['current_time'],'</li>
</ul>';
}

// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo sprintf($txt['welcome_guest'], $txt['guest_title']);
echo '
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
  <form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" style="margin: 4px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
<input type="text" name="user" class="userlog"  size="10" />
<input type="password" name="passwrd" class="userlog"  size="10" />
<select name="cookielength">
<option value="60">', $txt['one_hour'], '</option>
<option value="1440">', $txt['one_day'], '</option>
<option value="10080">', $txt['one_week'], '</option>
<option value="43200">', $txt['one_month'], '</option>
<option value="-1" selected="selected">', $txt['forever'], '</option>
</select>
                    <input type="submit" value="', $txt['login'], '" class="button_submit" />
<input type="hidden" name="hash_passwrd" value="" />
</form>', $context['current_time'],'<br />';
  }
  echo '


I think this is it but which parts should I delete, or what should I replace it with.
Thanks.

margarett

Just change this
         // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
         else

To, eg:
         // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
         elseif (isset($how_on_earth_should_such_variable_exist))

Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Kindred

Also -- please use code tags instead of "sub" tags?

ummm....   you could just use CSS

add
userarea { display: none; }
to the bottom of your index.css

that would also force them to use the login menu link rather than the quick login form
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Vonotna

And again you guys save the day :D

Advertisement: