Customizing SMF > Theme Site Themes
Meridian
h33f:
Thanks Adren. There's a few bugs.
First, the quick login only shows AFTER I log in to the forum, but not before. It should show before too.
Second, after logging in, it stays the same, but it should say something like:
Hello [USERNAME]
Show unread posts since last visit.
Show new replies to your posts.
July 01, 2012, 02:44:34 PM
h33f:
--- Quote from: h33f on July 03, 2012, 02:53:02 PM ---Thanks Adren. There's a few bugs.
First, the quick login only shows AFTER I log in to the forum, but not before. It should show before too.
Second, after logging in, it stays the same, but it should say something like:
Hello [USERNAME]
Show unread posts since last visit.
Show new replies to your posts.
July 01, 2012, 02:44:34 PM
--- End quote ---
Trying to fix this but still have no clue how, please help.
tbbf:
Hello!
I'm becoming increasingly frustrated with the New.gif addition? I've created the necessary directories [some were missing?] and still nothing.
Any guidance would be absolutely splendid.
Adren:
--- Quote from: tbbf on July 06, 2012, 09:52:05 PM ---Hello!
I'm becoming increasingly frustrated with the New.gif addition? I've created the necessary directories [some were missing?] and still nothing.
Any guidance would be absolutely splendid.
--- End quote ---
copy/paste "new" directory (english for axample) from default theme images directory.
--- Quote ---Thanks Adren. There's a few bugs.
--- End quote ---
--- Code: ---if (!empty($context['user']['is_logged']))
{
echo '
<div class="floatright fast_login">
<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>
</div>';
}
--- End code ---
replace this:
--- Code: ---// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '<div class="floatright">';
if (!empty($context['user']['avatar']))
echo '
<div class="avatar floatleft">', $context['user']['avatar']['image'], '</div>';
echo '
<ul class="reset">
<li class="greeting">', $txt['hello_member_ndt'], ' <span>', $context['user']['name'], '</span></li>
<li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>';
echo '
<li>', $context['current_time'], '</li>
</ul></div>';
}
else
{
echo '
<div class="floatright fast_login">
<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>
</div>';
}
--- End code ---
and add index.css:
--- Code: ---div.avatar {
margin-right: 10px;
}
--- End code ---
h33f:
Thanks so much!! It works now.
One last thing, how can I position this lower?
--- Quote ---Hello [USERNAME]
Show unread posts since last visit.
Show new replies to your posts.
July 01, 2012, 02:44:34 PM
--- End quote ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version