Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 05:45:07 AM

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
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Pages for members  (Read 1614 times)
aladin38

Offline Offline

Posts: 4


« on: September 29, 2007, 08: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
Logged
doc
Guest
« Reply #1 on: September 29, 2007, 01: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:
<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
Logged
aladin38

Offline Offline

Posts: 4


« Reply #2 on: September 29, 2007, 02:37:25 PM »

 grin Yes.... !
I did it !
Code:
<form name="login" action="<?php echo LOGIN_URL.'?redirect='.WB_URL.'/pages/membres.php'?>" method="post">

Thanks a lot Christian
Logged
smtotman

Offline Offline

Posts: 12


« Reply #3 on: September 24, 2008, 09: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
Logged
doc
Guest
« Reply #4 on: September 25, 2008, 08:23:38 AM »

Hello,

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

Regards Christian
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!