Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 09:31:47 PM

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
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Account signup login logout  (Read 1618 times)
daydreamer

Offline Offline

Posts: 252


« 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 Offline

Posts: 6975


WWW
« 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 Offline

Posts: 37


« 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 Offline

Posts: 252


« Reply #3 on: November 06, 2009, 04:56:57 PM »

No not solved  huh
Logged
daydreamer

Offline Offline

Posts: 252


« Reply #4 on: November 09, 2009, 08:49:11 AM »

Someone must have done this???
Logged
daydreamer

Offline Offline

Posts: 252


« 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 Offline

Posts: 3146



WWW
« 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 Offline

Posts: 4884



« Reply #7 on: November 15, 2009, 12:57:53 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 Offline

Posts: 252


« 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 Offline

Posts: 4884



« 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. wink

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 Offline

Posts: 3146



WWW
« 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 Offline

Posts: 3146



WWW
« 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 Offline

Posts: 1556


WWW
« 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 Offline

Posts: 252


« 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
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!