1. Вариант 1 для Fino ( кнопки будут на всех страницах сайта) в header.php 60 строка после тега </nav> вставить например такой код:
<?php if( !osc_is_web_user_logged_in() ) { ?>
<script src="http://ulogin.ru/js/ulogin.js"></script>
<div style="float:right;">
<div id="uLogin" data-ulogin="display=panel;fields=first_name,email;providers=vkontakte,odnoklassniki,mailru,facebook;hidden=twitter,google,yandex,livejournal,openid;redirect_uri=http://site.ru/sn_login.php">
</div></div>
<form style="display:none;" id="login" name="login_post_form" action="<?php echo osc_base_url(true); ?>" method="post">
<fieldset>
<input type="hidden" name="page" value="login" />
<input type="hidden" name="action" value="login_post" />
<label for="email"><?php _e('E-mail', 'fino'); ?></label><br/>
<input id="email" type="text" name="email" value="<?php echo $_POST ["post_em"]; ?>" /><br/>
<label for="password"><?php _e('Password', 'fino'); ?></label><br/>
<input id="password" type="password" name="password" value="<?php echo $_POST ["post_pass"]; ?>" />
<?php if ($_POST ["post_em"]) echo '<script type="text/javascript">document.login_post_form.submit();</script>';?>
</form>
<?php } ?>
site.ru в коде заменить на адрес своего сайта.
2. Вариант 2 - кнопки авторизации через соцсети будут только на страницах авторизации и регистрации.
В header.php 60 строка после тега </nav> добавить код:
<?php if( !osc_is_web_user_logged_in() ) { ?>
<form style="display:none;" id="login" name="login_post_form" action="<?php echo osc_base_url(true); ?>" method="post">
<fieldset>
<input type="hidden" name="page" value="login" />
<input type="hidden" name="action" value="login_post" />
<label for="email"><?php _e('E-mail', 'modern'); ?></label><br/>
<input id="email" type="text" name="email" value="<?php echo $_POST ["post_em"]; ?>" /><br/>
<label for="password"><?php _e('Password', 'modern'); ?></label><br/>
<input id="password" type="password" name="password" value="<?php echo $_POST ["post_pass"]; ?>" />
<?php if ($_POST ["post_em"]) echo '<script type="text/javascript">document.login_post_form.submit();</script>';?>
</form>
<?php } ?>
Файл user-login.php строки 38-50
<form action="<?php echo osc_base_url(true); ?>" method="post">
<input type="hidden" name="page" value="login" />
<input type="hidden" name="action" value="login_post" />
<fieldset>
<input class="contact-inpt gen-title" type="text" name="email" id="email" placeholder="<?php _e('E-mail', 'fino'); ?>">
<input class="contact-inpt gen-title" type="password" name="password" id="password" placeholder="<?php _e('Password', 'fino'); ?>">
<p class="check"><?php UserForm::rememberme_login_checkbox();?> <label for="remember"><?php _e('Remember me', 'fino'); ?></label></p>
<button type="submit" class="ui-button"><?php _e("Log in", 'fino');?></button>
<div class="more-login">
<a href="<?php echo osc_register_account_url(); ?>"><?php _e("Register for a free account", 'fino'); ?></a> · <a href="<?php echo osc_recover_user_password_url(); ?>"><?php _e("Forgot password?", 'fino'); ?></a>
</div>
</fieldset>
</form>
Меняем на следующий код:
<script src="http://ulogin.ru/js/ulogin.js"></script>
<div id="uLogin" data-ulogin="display=panel;fields=first_name,email;providers=vkontakte,odnoklassniki,mailru,facebook;hidden=twitter,google,yandex,livejournal,openid;redirect_uri=http://site.ru/sn_login.php">
</div>
<form name="login_post_form" action="<?php echo osc_base_url(true); ?>" method="post">
<fieldset>
<input type="hidden" name="page" value="login" />
<input type="hidden" name="action" value="login_post" />
<input class="contact-inpt gen-title" type="text" name="email" id="email" value="<?php echo $_POST ["post_em"]; ?>" placeholder="<?php _e('E-mail', 'fino'); ?>">
<input class="contact-inpt gen-title" type="password" name="password" id="password" value="<?php echo $_POST ["post_pass"]; ?>" placeholder="<?php _e('Password', 'fino'); ?>">
<?php if ($_POST ["post_em"]) echo '<script type="text/javascript">document.login_post_form.submit();</script>';?>
<p class="check"><?php UserForm::rememberme_login_checkbox();?> <label for="remember"><?php _e('Remember me', 'fino'); ?></label></p>
<button type="submit" class="ui-button"><?php _e("Log in", 'fino');?></button>
<div class="more-login">
<a href="<?php echo osc_register_account_url(); ?>"><?php _e("Register for a free account", 'fino'); ?></a> · <a href="<?php echo osc_recover_user_password_url(); ?>"><?php _e("Forgot password?", 'fino'); ?></a>
</div>
</fieldset>
</form>
Файл user-register.php код с 41-57 строки:
<form name="register" id="register" action="<?php echo osc_base_url(true); ?>" method="post" >
<input type="hidden" name="page" value="register" />
<input type="hidden" name="action" value="register_post" />
<fieldset>
<label for="name"><?php _e('Name', 'fino'); ?></label> <?php UserForm::name_text(); ?><br />
<label for="password"><?php _e('Password', 'fino'); ?></label> <?php UserForm::password_text(); ?><br />
<label for="password"><?php _e('Re-type password', 'fino'); ?></label> <?php UserForm::check_password_text(); ?><br />
<p id="password-error" style="display:none;">
<?php _e('Passwords don\'t match', 'fino'); ?>.
</p>
<label for="email"><?php _e('E-mail', 'fino'); ?></label> <?php UserForm::email_text(); ?><br />
<?php osc_run_hook('user_register_form'); ?>
<?php osc_show_recaptcha('register'); ?>
<button type="submit" class="ui-button"><?php _e('Create', 'fino'); ?></button>
</fieldset>
</form>
Меняем на код :
<script src="http://ulogin.ru/js/ulogin.js"></script>
<div id="uLogin" data-ulogin="display=panel;fields=first_name,email;providers=vkontakte,odnoklassniki,mailru,facebook;hidden=twitter,google,yandex,livejournal,openid;redirect_uri=http://site.ru/sn_login.php">
</div>
<form name="register" id="register" action="<?php echo osc_base_url(true); ?>" method="post" >
<input type="hidden" name="page" value="register" />
<input type="hidden" name="action" value="register_post" />
<fieldset>
<label for="name"><?php _e('Name', 'fino'); ?></label> <?php UserForm::name_text(); ?><br />
<label for="password"><?php _e('Password', 'fino'); ?></label>
<input id="s_password" name="s_password" value="<?php echo $_POST ["post_pass"]; ?>" autocomplete="off" type="password"><br />
<label for="password"><?php _e('Re-type password', 'fino'); ?></label>
<input id="s_password2" name="s_password2" value="<?php echo $_POST ["post_pass"]; ?>" autocomplete="off" type="password"><br />
<p id="password-error" style="display:none;">
<?php _e('Passwords don\'t match', 'fino'); ?>.
</p>
<label for="email"><?php _e('E-mail', 'fino'); ?></label>
<input id="s_email" name="s_email" value="<?php echo $_POST ["post_em"]; ?>" type="text"><br />
<?php osc_run_hook('user_register_form'); ?>
<?php if ($_POST ["post_em"]) echo '<script type="text/javascript">document.login_post_form.submit();</script>';?>
<?php osc_show_recaptcha('register'); ?>
<button type="submit" class="ui-button"><?php _e('Create', 'fino'); ?></button>
</fieldset>
</form>
Не забывайте везде в коде заменить site.ru на адрес домен своего сайта.