WebsiteBaker Community Forum

General Community => Global WebsiteBaker 2.8.x discussion => Topic started by: aladin38 on September 29, 2007, 09:33:03 AM

Title: Pages for members
Post by: aladin38 on September 29, 2007, 09:33:03 AM
Hello,

Do you if i'ts possible to re-direct to a specific page when user is logged for the fist time... ?

exemple : I have a private page (it's not my homepage). When user log in i want a complete redirection to this private page... is it possible with wb ?

thank's
Title: Re: Pages for members
Post by: doc on September 29, 2007, 02:48:26 PM
Hello,

yes this is possible. You can add a redirect statement to the login form of your template (index.php).
Search for <form name="login"...> in the index.php of your template and change it as follows:
Code: [Select]
<form name="login" id="login" action="<?php echo LOGIN_URL?>?redirect=<?php echo WB_URL?>/pages/YOUR_PAGE.php" method="post">

Replace YOUR_PAGE with the page name you want to display after login.

Regards Christian
Title: Re: Pages for members
Post by: aladin38 on September 29, 2007, 03:37:25 PM
 :-D Yes.... !
I did it !
Code: [Select]
<form name="login" action="<?php echo LOGIN_URL.&#39;?redirect=&#39;.WB_URL.&#39;/pages/membres.php&#39;; ?>" method="post">
Thanks a lot Christian
Title: Re: Pages for members
Post by: smtotman on September 24, 2008, 10:00:25 PM
Can this be done conditionally for different user groups?  For example, I need one group of users directed to one page and another set of users directed to another.


Thanks in advance for any assistance.

Sue
Title: Re: Pages for members
Post by: doc on September 25, 2008, 09:23:38 AM
Hello,

you could link to a page of type code where you check e.g. the group id.

Regards Christian