Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 25, 2012, 09:31:47 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Interested in joining the WebsiteBaker team?
For more Information read
here
or on our
new website
.
155528
Posts in
21713
Topics by
7737
Members
Latest Member:
chris85
WebsiteBaker Community Forum
English
Help & Support
(Moderators:
Argos
,
badknight
)
Account signup login logout
Pages: [
1
]
Go Down
Author
Topic: Account signup login logout (Read 1618 times)
daydreamer
Offline
Posts: 252
Account signup login logout
«
on:
November 06, 2009, 11:21:03 AM »
Hi I want user login only for the jk-forum on the forum page, but every time user signs up or logs in they get redirected to the home page. How can I keep it just to the forum page?
Thanks
Logged
kweitzel
Forum administrator
Offline
Posts: 6975
Re: Account signup login logout
«
Reply #1 on:
November 06, 2009, 11:31:58 AM »
maybe this here is a better place to post:
http://www.websitebaker2.org/forum/index.php/topic,12307.msg74628.html
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
Primoz
Offline
Posts: 37
Re: Account signup login logout
«
Reply #2 on:
November 06, 2009, 12:32:36 PM »
daydreamer, did you already solve the problem? I have the same problem.
Logged
daydreamer
Offline
Posts: 252
Re: Account signup login logout
«
Reply #3 on:
November 06, 2009, 04:56:57 PM »
No not solved
Logged
daydreamer
Offline
Posts: 252
Re: Account signup login logout
«
Reply #4 on:
November 09, 2009, 08:49:11 AM »
Someone must have done this???
Logged
daydreamer
Offline
Posts: 252
Re: Account signup login logout
«
Reply #5 on:
November 14, 2009, 09:32:14 PM »
Can anyone please help with this, all I need to know is what to change to make the login stay on the same page other than index page please.
Thanks in advance
Logged
Luisehahne
Board Member
Development Team
Offline
Posts: 3146
Re: Account signup login logout
«
Reply #6 on:
November 14, 2009, 09:57:43 PM »
we all have the same problem, but in moment there is no chance to solve it
Dietmar
Logged
We are human beings - and nobody is perfect at all.
Stefek
WebsiteBaker Org e.V.
Offline
Posts: 4884
Re: Account signup login logout
«
Reply #7 on:
November 15, 2009, 12:57:53 AM »
Quote from: daydreamer on November 06, 2009, 11:21:03 AM
Hi I want user login only for the jk-forum on the forum page, but every time user signs up or logs in they get redirected to the home page. How can I keep it just to the forum page?
Hello,
how do you call the loginbox?
From your template?
Or do they have to visit the
www.yourdomain.tld/account/login.php
page?
I think I can help you, but letme know first.
Regards,
Stefek
Logged
"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
daydreamer
Offline
Posts: 252
Re: Account signup login logout
«
Reply #8 on:
November 15, 2009, 05:37:22 PM »
I am using the php front end login in my template as below, I have the login form on a forum page
so it is /pages/forum.php but when you login it takes you back to the home page.
<?php
// CODE FOR FRONTEND LOGIN
if (FRONTEND_LOGIN == 'enabled' && VISIBILITY != 'private'
&& $wb->get_session('USER_ID') == '') { ?>
<!-- login form -->
<br />
<form name="login" id="login" action="<?php echo LOGIN_URL; ?>" method="post">
<fieldset>
<legend><?php echo $TEXT['LOGIN']; ?></legend>
<label for="username" accesskey="1"><?php echo $TEXT['USERNAME']; ?>:</label>
<input type="text" name="username" id="username" style="text-transform: lowercase;" /><br />
<label for="password" accesskey="2"><?php echo $TEXT['PASSWORD']; ?>:</label>
<input type="password" name="password" id="password" /><br />
<input type="submit" name="wb_login" id="wb_login" value="<?php echo $MENU['LOGIN']; ?>"/><br />
<!-- forgotten details link -->
<a href="<?php echo FORGOT_URL; ?>"><?php echo $TEXT['FORGOT_DETAILS']; ?></a>
<!-- frontend signup -->
<?php
if (is_numeric(FRONTEND_SIGNUP)) { ?>
<a href="<?php echo SIGNUP_URL; ?>"><?php echo $TEXT['SIGNUP']; ?></a>
<?php } ?>
</fieldset>
</form>
<?php
} elseif (FRONTEND_LOGIN == 'enabled' && is_numeric($wb->get_session('USER_ID'))) { ?>
<!-- logout form -->
<br />
<form name="logout" id="logout" action="<?php echo LOGOUT_URL; ?>" method="post">
<fieldset>
<legend><?php echo $TEXT['LOGGED_IN']; ?>:</legend>
<?php echo $TEXT['WELCOME_BACK']; ?>, <?php echo $wb->get_display_name(); ?>
<input type="submit" name="wb_logout" id="wb_logout" value="<?php echo $MENU['LOGOUT']; ?>" />
<!-- edit user preferences -->
<a href="<?php echo PREFERENCES_URL; ?>"><?php echo $MENU['PREFERENCES']; ?></a>
</fieldset>
</form>
<?php
} ?>
Logged
Stefek
WebsiteBaker Org e.V.
Offline
Posts: 4884
Re: Account signup login logout
«
Reply #9 on:
November 15, 2009, 06:04:32 PM »
Hello,
first, please use the BBC Tags
[ code ][ /code ]
to display your code.
It is much easier to read the code.
Second:
You have to define a redirect to your Page in the "action" Attribute of your Login Form like:
Code:
<?php
// CODE FOR FRONTEND LOGIN
if (
FRONTEND_LOGIN
==
'enabled'
&&
VISIBILITY
!=
'private'
&&
$wb
->
get_session
(
'USER_ID'
) ==
''
) {
?>
<!-- login form -->
<br />
<form name="login" id="login" action="
<?php
echo
LOGIN_URL
;
?>
?redirect=
<?php
echo
WB_URL
;
?>
/pages/forum.php" method="post">
Instead of :
Code:
<form name="login" id="login" action="
<?php
echo
LOGIN_URL
;
?>
" method="post">
I hope it helps.
Regards,
Stefek
Logged
"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
Luisehahne
Board Member
Development Team
Offline
Posts: 3146
Re: Account signup login logout
«
Reply #10 on:
November 15, 2009, 06:18:49 PM »
Nur das Problem ist, dass nicht jede Serverkonfiguration einen redirect zulässt. Ist bei mir der Fall. Ich knacke aber auch noch an diesem Problem.
Dietmar
Logged
We are human beings - and nobody is perfect at all.
Luisehahne
Board Member
Development Team
Offline
Posts: 3146
Re: Account signup login logout
«
Reply #11 on:
November 15, 2009, 06:20:27 PM »
Hmm, evtl ist es möglich den referer zu bekommen, um dann einen header send zu kreieren. Muss ich testen.
Dietmar
Logged
We are human beings - and nobody is perfect at all.
mr-fan
Offline
Posts: 1556
Re: Account signup login logout
«
Reply #12 on:
November 15, 2009, 06:23:12 PM »
translation of Luisehahne....
a problem could be that some serverconfiguration
s don't allow such a redirect...
regards martin
Logged
daydreamer
Offline
Posts: 252
Re: Account signup login logout
«
Reply #13 on:
November 18, 2009, 09:25:02 AM »
your password as been sent to your email... How to show this message for longer???
Logged
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...