Hi, :wink:
I'm want to Put the login form in the default template and a welcome text.
I search on WB ste but i found nothing at all.
I see the files : login_form.php, signup.php and preferences.php.
But I don't know to include in my defaul template. :oops:
Hello,
make a WYSIWYG Page, choose the source view of the editor and put there the code from below adapted to your page:
<form class="login_table" method="post" action="http://www.yourdomain.com/account/login.php?redirect=http://www.yourdomain.com/pages/thepage where users hould be redirected after login.php" name="login">
<table width="50%" cellspacing="0" cellpadding="5" border="0" align="center">
<tbody>
<tr>
<td style="text-align: right;">User:</td>
<td><input type="text" name="username" /></td>
</tr>
<tr>
<td style="text-align: right;">Password:</td>
<td><input type="password" name="password" /></td>
</tr>
<tr>
<td style="text-align: left;"> </td>
<td><input type="submit" value="Login" name="submit" /></td>
</tr>
<tr align="left">
<td style="text-align: center;" colspan="2"><a href="http://www.yourdoamain.com/account/forgot.php">Forgot your Login?</a></td>
</tr>
</tbody>
</table>
</form>
Have fun
Matthias
Thanks a lot ruebenwurzel.
Works fine; :)
How could put a link on the frontend to admin panel if a admistrator is log.
Hello,
simply place a link to admin panel on your page. Look in the index.php of the builtin templates like round or allcss for example code.
Matthias
Wonderful ! :-D
Thanks Ruebenwurzel for your fast answers. :)
I use the php code of Allcss template. <?php
if(FRONTEND_LOGIN == 'enabled' AND VISIBILITY != 'private' AND $wb->get_session('USER_ID') == '') {
?>
<form name="login" action="<?php echo LOGIN_URL; ?>" method="post" class="login_table">
<h1><?php echo $TEXT['LOGIN']; ?></h1>
<?php echo $TEXT['USERNAME']; ?>:
<input type="text" name="username" style="text-transform: lowercase;" />
<?php echo $TEXT['PASSWORD']; ?>:
<input type="password" name="password" />
<input type="submit" name="submit" value="<?php echo $TEXT['LOGIN']; ?>" style="margin-top: 3px; text-transform: uppercase;" />
<a href="<?php echo FORGOT_URL; ?>"><?php echo $TEXT['FORGOT_DETAILS']; ?></a>
<?php if(is_numeric(FRONTEND_SIGNUP)) { ?>
<a href="<?php echo SIGNUP_URL; ?>"><?php echo $TEXT['SIGNUP']; ?></a>
<?php } ?>
</form>
<?php
} elseif(FRONTEND_LOGIN == 'enabled' AND is_numeric($wb->get_session('USER_ID'))) {
?>
<form name="logout" action="<?php echo LOGOUT_URL; ?>" method="post" class="login_table">
<h1><?php echo $TEXT['LOGGED_IN']; ?></h1>
<?php echo $TEXT['WELCOME_BACK']; ?>, <?php echo $wb->get_display_name(); ?>
<br />
<input type="submit" name="submit" value="<?php echo $MENU['LOGOUT']; ?>" />
<br />
<a href="<?php echo PREFERENCES_URL; ?>"><?php echo $MENU['PREFERENCES']; ?></a>
<a href="<?php echo ADMIN_URL; ?>/index.php"><?php echo $TEXT['ADMINISTRATION']; ?></a>
</form>
<?php
}
?>
</div>
<?php } ?>