Customizing SMF > Theme Site Themes

Meridian

<< < (2/23) > >>

Diego Andrés:
Very nice work

Adren:

--- Quote from: Joker™ on April 13, 2012, 01:05:48 PM ---Nice work, theme really looks great.

--- End quote ---

--- Quote from: Diego Andrés on April 14, 2012, 02:45:08 PM ---Very nice work

--- End quote ---
Thanks!=)

valgusepoiss:
Very nice theme, im using it for my forum. A question though. Can you show me how to add minimalistic (forever cookie) login form to top blue bar when user is guest? I want that users can login with just one click instead of clicking login and then ticking forever and clicking login.

Thank you!

Adren:

--- Quote from: valgusepoiss on April 22, 2012, 12:44:13 AM ---Very nice theme, im using it for my forum. A question though. Can you show me how to add minimalistic (forever cookie) login form to top blue bar when user is guest? I want that users can login with just one click instead of clicking login and then ticking forever and clicking login.

Thank you!

--- End quote ---
Thank you valgusepoiss.
1)download images.zip and extract 2 images in themes/meridian/images
2)open theme/meridian/index.template.php and find:

--- Code: ---<div class="floatright">&bull;  ', sprintf($txt['welcome_guest'], $txt['guest_title']), '</div>';
--- End code ---
replace this:

--- Code: --- <div class="floatright">
<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'] . '\');"' : '', '>
<input type="text" name="user" size="10" id="quick_username" class="input_text" />
<input type="password" name="passwrd" size="10" id="quick_userpass" class="input_password" />
', $txt['always_logged_in'], '?<input type="checkbox" name="cookieneverexp" class="input_check" onclick="this.form.cookielength.disabled = this.checked;" />
<input type="submit" value="', $txt['login'], '" class="button_submit" />
</div>';
--- End code ---
3) open meridian/css/index.css and add in the end:

--- Code: ---#quick_username, #quick_userpass  {
padding-left: 20px;
}
#quick_username {
background: url(../images/quick_username.png) top left no-repeat;
}
#quick_userpass {
background: url(../images/quick_userpass.png) top left no-repeat;
}
--- End code ---
done! :)

valgusepoiss:
Thank you so much! And how beautiful login boxes!! Great! :) I owe you one! Will be adding it tomorrow!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version