Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 27, 2012, 06:17:43 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter
hier
und auf unserer
neuen Webseite
.
155555
Posts in
21715
Topics by
7737
Members
Latest Member:
gx-world
WebsiteBaker Community Forum
English
Templates, Menus & Design
(Moderator:
Argos
)
Put the login form/signup and account in the default template
Pages: [
1
]
Go Down
Author
Topic: Put the login form/signup and account in the default template (Read 1512 times)
Bloody
Offline
Posts: 6
Put the login form/signup and account in the default template
«
on:
January 22, 2008, 07:16:45 AM »
Hi,
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.
Logged
Benoît V.
Chantdeleau.com : French tropical fish hobbyist website
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7973
Re: Put the login form/signup and account in the default template
«
Reply #1 on:
January 22, 2008, 07:50:02 AM »
Hello,
make a WYSIWYG Page, choose the source view of the editor and put there the code from below adapted to your page:
Code:
<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
Logged
Bloody
Offline
Posts: 6
Re: Put the login form/signup and account in the default template
«
Reply #2 on:
January 22, 2008, 08:46:32 PM »
Thanks a lot ruebenwurzel.
Works fine;
How could put a link on the frontend to admin panel if a admistrator is log.
Logged
Benoît V.
Chantdeleau.com : French tropical fish hobbyist website
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7973
Re: Put the login form/signup and account in the default template
«
Reply #3 on:
January 23, 2008, 04:41:00 AM »
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
Logged
Bloody
Offline
Posts: 6
Re: Put the login form/signup and account in the default template
«
Reply #4 on:
January 23, 2008, 03:35:23 PM »
Wonderful !
Thanks Ruebenwurzel for your fast answers.
I use the php code of Allcss template.
Code:
<?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
}
?>
Logged
Benoît V.
Chantdeleau.com : French tropical fish hobbyist website
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...