News:

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

Main Menu

how to remove login and search on top of rc2.0 curv

Started by eyo, December 31, 2010, 07:46:06 PM

Previous topic - Next topic

eyo

i already have login, register and search at the menu, the extra login and search look quite useless on the header section , is there a setting in smf to remove it?

cicka

Quote from: eyo on December 31, 2010, 07:46:06 PM
i already have login, register and search at the menu, the extra login and search look quite useless on the header section , is there a setting in smf to remove it?


You can remove this code at the index.template.php file.

// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
elseif (!empty($context['show_login_bar']))
{
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">', $txt['login_or_register'], '</div>
<input type="text" name="user" size="10" class="input_text" />
<input type="password" name="passwrd" size="10" class="input_password" />
<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" /><br />
<div class="info">', $txt['quick_login_dec'], '</div>';

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>';
}

echo '
</div>
<div class="news normaltext">
<form id="search_form" action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
<input type="text" name="search" value="" class="input_text" />&nbsp;
<input type="submit" name="submit" value="', $txt['search'], '" class="button_submit" />
<input type="hidden" name="advanced" value="0" />';

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="', $context['current_topic'], '" />';
// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';

echo '</form>';

eyo

will this remove the arrow, line news header, and the smf logo area on the upper right side( i just replaced smflogo.png with my own image)?

i only want to remove the login, welcome show unread stuff plus that ugly search bar

cicka

Quote from: eyo on December 31, 2010, 08:46:46 PM
will this remove the arrow, line news header, and the smf logo area on the upper right side( i just replaced smflogo.png with my own image)?

i only want to remove the login, welcome show unread stuff plus that ugly search bar

No, this will remove only what you asked.

eyo

worked fine. thanks a lot :)

oops sorry. one last question, how about that annoying arrow up and down thing on the right side?

Masterd

Quote from: eyo on January 01, 2011, 12:02:20 PM
worked fine. thanks man

She's a woman. 

If you solved your problem, mark this topic as solved.

Matthew K.

Marking topic resolved since the solution has been posted and it appears it has been solved.

Advertisement: