WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • General Community »
  • Global WebsiteBaker 2.8.x discussion »
  • Pages for members
  • Print
Pages: [1]   Go Down

Author Topic: Pages for members  (Read 7093 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
Logged

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
Logged

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
Logged

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
Logged

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
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • General Community »
  • Global WebsiteBaker 2.8.x discussion »
  • Pages for members
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2