News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Delete login and register

Started by Aportadordelmix, June 12, 2010, 01:29:34 AM

Previous topic - Next topic

Aportadordelmix

Hello

I want to delete the image Indicates where

Theme: default

Matthew K.

You want to remove the whole login form in the header, correct? What version of 1.x?

Aportadordelmix

Quote from: Labradoodle-360 on June 12, 2010, 01:33:45 AM
You want to remove the whole login form in the header, correct? What version of 1.x?

Correct

header only

avatar also

Version 1.1.11

Matthew K.

./Themes/default/index.template.php
Code (Find and Remove) Select

// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo ' </span>
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>

<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">', $txt['smf53'], '</option>
<option value="1440">', $txt['smf47'], '</option>
<option value="10080">', $txt['smf48'], '</option>
<option value="43200">', $txt['smf49'], '</option>
<option value="-1" selected="selected">', $txt['smf50'], '</option>
</select>
<input type="submit" value="', $txt[34], '" /><br />
<span class="middletext">', $txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}

Aportadordelmix

June 11, 2010, 09:44:13 PMWelcome, Guest. Please login or register.

delete also

Matthew K.

./Themes/default/index.template.php
Code (Find and Remove) Select
// Otherwise they're a guest - send them a lovely greeting...
else
echo $txt['welcome_guest'];


Edit: In addition, also complete the following edit.

./Themes/default/languages/index.english.php
Code (Find and Remove) Select

$txt['welcome_guest'] = 'Welcome, <b>' . $txt[28] . '</b>. Please <a href="' . $scripturl . '?action=login">login</a> or <a href="' . $scripturl . '?action=register">register</a>.';

Aportadordelmix

Thanks  ;D


How I can leave a space to put an image in that part?

Matthew K.

Do you want the image to show up just for guests?

Aportadordelmix


Matthew K.

If you're logged in, I believe, other things will be in that place.

Aportadordelmix

Quote from: Labradoodle-360 on June 12, 2010, 01:59:50 AM
If you're logged in, I believe, other things will be in that place.

if only for everyone.

guest and users

Advertisement: