Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 05:24:39 PM

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.
155516 Posts in 21712 Topics by 7738 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Improved signup page  (Read 788 times)
klok_pm

Offline Offline

Posts: 28


« on: September 02, 2009, 11:57:41 AM »

I was not entirely happy with the default signup page of website baker. I think there are 2 issues:
- The default script makes use of the default error function of wb. This function is  designed for the backend of the website ( see bug ticket 769) and not for the front end. It gives a lot of errors/ issues such as incomplete rendering of a page.
- The form does not remember the provided values once the form errors. It gives you an option to go back to the form but all  fields are cleared and the visitors needs to fill in the form all over again.

In order to fix this i had to combine the files signup_form.php and signup2.php to one single file. please find it attached.  You can place this in the account folder of your wb installation.

Also you need to make one small adjustment in signup.php. Replace:
if(isset($_POST['username'])) {
    define('PAGE_CONTENT', WB_PATH.'/account/signup2.php');
} else {
    define('PAGE_CONTENT', WB_PATH.'/account/signup_form.php');
}
with the following:
define('PAGE_CONTENT', WB_PATH.'/account/signup_new.php');
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6975


WWW
« Reply #1 on: September 04, 2009, 04:42:55 PM »

Hi klock_pm,

why don't you additionally post this solution to the ticket you mentioned?

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

sky writer

Offline Offline

Posts: 285



« Reply #2 on: October 15, 2009, 09:38:06 PM »

Great work!

This solves my problem with my template not displaying when one of the required criteria is not entered, and an error page displays.

BUT... when the signup form is completed correctly, the email I receive is blank.  Both the subject and the body.

Any ideas how to fix this?

Thanks
Logged
LordDarkman
Development Team
*****
Offline Offline

Posts: 343


WWW
« Reply #3 on: October 16, 2009, 06:12:12 PM »

I attached it. I can't test it at the moment but maybe it helps.

CU Moritz
Logged
sky writer

Offline Offline

Posts: 285



« Reply #4 on: October 16, 2009, 11:05:32 PM »

CU Moritz, thanks, but I don't see your attachment?
Logged
LordDarkman
Development Team
*****
Offline Offline

Posts: 343


WWW
« Reply #5 on: October 18, 2009, 12:57:22 PM »

I attached it at the Projekt page under the Ticked. You can't see it here.

CU Moritz
Logged
klok_pm

Offline Offline

Posts: 28


« Reply #6 on: October 22, 2009, 12:13:26 PM »

Great thanks!.
Logged
mr-fan

Offline Offline

Posts: 1556


WWW
« Reply #7 on: October 22, 2009, 03:14:28 PM »

hi - may interesting..... rolleyes

http://www.websitebaker2.org/forum/index.php/topic,15692.msg101780.html#msg101780

regards martin
Logged

 
klok_pm

Offline Offline

Posts: 28


« Reply #8 on: October 22, 2009, 03:25:54 PM »

Interesting. Are the other issues also solved?
- The default script makes use of the default error function of wb. This function is  designed for the backend of the website ( see bug ticket 769) and not for the front end. It gives a lot of errors/ issues such as incomplete rendering of a page.
- The form does not remember the provided values once the form errors. It gives you an option to go back to the form but all  fields are cleared and the visitors needs to fill in the form all over again.

My script does not have a seperation of html/ php, but it fixes the issues above.
Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« Reply #9 on: October 22, 2009, 04:01:30 PM »

Hello Klok,
I was aware of your solution before uploading my files to the forum.

The reason why I doesn't implement this into my patch is just because I don't wanted to be too confusing at once.
So my patch provides a straight rework and split of php and html with the oportunity to restyle those areas without touching the core files.

But I can see, that your aproach is a good idea and I guess it would be a good addition.

Regards,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
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!