Author Topic: Pages for members  (Read 2846 times)

Offline aladin38

  • Posts: 6
Pages for members
« 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

doc

  • Guest
Re: Pages for members
« Reply #1 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

Offline aladin38

  • Posts: 6
Re: Pages for members
« Reply #2 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

smtotman

  • Guest
Re: Pages for members
« Reply #3 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

doc

  • Guest
Re: Pages for members
« Reply #4 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

 

postern-length