Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: fapencio - huhtikuu 12, 2014, 01:53:09 IP

Otsikko: How to remove the lower area of the forum index
Kirjoitti: fapencio - huhtikuu 12, 2014, 01:53:09 IP
Hello, I need help, I want to delete the lower area of the forum index, to understand me, I want to remove this:



and instead put another quick login:



for the forum is 2 quick login on the board index,

my forum is 2.0.7 and my theme is default, my lenguages ​​are english utf8 and spanish_es-utf8, I have not yet installed mods, Greetings

thanks in advance
Otsikko: Re: How to remove the lower area of the forum index
Kirjoitti: Herman's Mixen - huhtikuu 12, 2014, 02:01:24 IP
we have also Specific language support, see board http://www.simplemachines.org/community/index.php?board=16.0 maybe your questions are all to be found there ;)
Otsikko: Re: How to remove the lower area of the forum index
Kirjoitti: fapencio - huhtikuu 12, 2014, 02:44:10 IP
please help
Otsikko: Re: How to remove the lower area of the forum index
Kirjoitti: Sir Osis of Liver - huhtikuu 12, 2014, 04:08:38 IP
Don't know why you'd want to do that, but here it is:

In BoardIndex.template.php find this -



// Show the mark all as read button?
if ($settings['show_mark_read'] && !empty($context['categories']))
echo '<div class="mark_read">', template_button_strip($mark_read_button, 'right'), '</div>';
}
else
{
echo '
<div id="posting_icons" class="flow_hidden">
<ul class="reset">
<li class="floatleft"><img src="', $settings['images_url'], '/new_none.png" alt="" /> ', $txt['old_posts'], '</li>
<li class="floatleft"><img src="', $settings['images_url'], '/new_redirect.png" alt="" /> ', $txt['redirect_board'], '</li>
</ul>
</div>';
}

template_info_center();



Change to this -



// Show the mark all as read button?
if ($settings['show_mark_read'] && !empty($context['categories']))
echo '<div class="mark_read">', template_button_strip($mark_read_button, 'right'), '</div>';
}
else

///`add quick login
{
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="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><br />
</div>';
}


template_info_center();



Backup the file before you tinker with it.
Otsikko: Re: How to remove the lower area of the forum index
Kirjoitti: fapencio - huhtikuu 12, 2014, 04:45:36 IP
AWESOME!!!   :laugh:  works!  master you're the best, you do not know how much you appreciate your help, saying thank you is not enough, best regards and problem solved  :D
Otsikko: Re: How to remove the lower area of the forum index
Kirjoitti: kat - huhtikuu 13, 2014, 12:50:30 IP
Smooth, Krash, Smooth. :)