Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 03:29:35 AM

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.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Standard login page  (Read 2216 times)
Wernerdegroot

Offline Offline

Posts: 3


« on: May 23, 2008, 07:06:04 PM »

First things first: I'm busy creating a website using WebsiteBaker (first time user) and I have to admit that is a truely wonderful experience.

My question is as follows: When you visit a page that you are not authorized to see, WebsiteBaker redirects you to a standard login page (as is mentioned in the tutorial). Is there any way to modify this standard login page or is there a way to influence this redirection? I know how to redirect using the
Code:
?redirect=
option but I don't know if I can use this option to do what I described above.

Thank you in advance.

Edit: Now I see that this isn't the right forum to post support questions  embarassed
Logged
lausianne
WebsiteBaker Org e.V.

Offline Offline

Posts: 155


WWW
« Reply #1 on: May 25, 2008, 12:31:32 PM »

Why would this not be the right forum for support questions?


I don't know about redirecting, but modifying the standard login page is easy:

There's a template in /admin/login: template.html

Cheers, Ralf.
Logged
Wernerdegroot

Offline Offline

Posts: 3


« Reply #2 on: May 26, 2008, 12:35:47 PM »

Thank you for your reply. I kind of figured it out myself.

I was to edit /httpdocs/account/login_form.php.
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #3 on: May 26, 2008, 02:08:04 PM »

Hello,

think better as to edit core files wich prevents you from common updates it will be to add the redirect to the login code in the index.php of the template. Basically the same changes that you have done in core files. Simply add the redirect to the login url in index.php.

Matthias
Logged
Wernerdegroot

Offline Offline

Posts: 3


« Reply #4 on: May 26, 2008, 07:08:35 PM »

Hello,

think better as to edit core files wich prevents you from common updates it will be to add the redirect to the login code in the index.php of the template. Basically the same changes that you have done in core files. Simply add the redirect to the login url in index.php.

Matthias
What code specifically should I add to index.php in my template?
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #5 on: May 27, 2008, 05:43:49 AM »

Hello,

search for

Code:
"<?php echo LOGIN_URL?>/account/login.php"

and simply add the redirect

Code:
"<?php echo LOGIN_URL?>/account/login.php?redirect=http://www.yourdomain.com/pages/redirectpage.php"

adapt the redirect url to your wishes.

Matthias
Logged
lawalty

Offline Offline

Posts: 16



WWW
« Reply #6 on: July 10, 2008, 08:14:43 PM »

I'm kinda looking for the same thing. For example: When someone registers for the first time on my website, they are told that their 'Username' and 'Password' is emailed to them, then they are redirected to an online application form for them to fill out. It's like a continuation of a sign-up process.

My question - which i can't seem to find the solution in this forum. What is the code, and where do i put it - to achieve this. I already have the link sent via email to the new users to the online form, but i want it to go there automatically right after they sign-up.

Any help from anyone would be greatly accepted.

 cheesy
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!