| Author |
Add ONE (1) registration field - Example |
Adnan
Super Administrator
Posts: 80
Location: Montreal, Canada
Joined: 23.03.06 |
| Posted on 05-08-2006 19:50 |
|
|
Sometimes the default settings in PHP-Fusion aren't always what we want, and that's the beauty of this open source software, you can change it to fit your needs and wants!!! Its not that hard either, once you know what you are doing.
This article is to show you how to add more fields to the registration form, and then subsequent changes in all the places where people's profiles are edited/viewed. I've tried to make it as simple and easy to follow as possible!
This is an example of the addition of ONE (1) field in the registration form, and all subsequent changes necessary. This is not an actual tutorial, which can be found here, but is an example of the doings of that tutorial.
Read Full Article => Add ONE (1) registration field - Example |
|
| Author |
Sponsored Link |
Advertisement
Location: Internet
|
|
|
|
| Author |
RE: Add ONE (1) registration field - Example |
petetheplumber
Member
Posts: 0
Joined: 02.08.06 |
| Posted on 07-08-2006 23:25 |
|
|
Hi Adnan
I have tried to follow the instructions but get the
Parse error: parse error, unexpected ',' in /web/sites/31/manfiday/www.manfiday.f2s.com/trial/php-files/register.php on line 70
which is odd as I didnt think we went near line 70. Any clues please ?
Also Im a bit stuck over what to use as an editor to get the same line numbers as you refer to. I tried using open office but the numbers dont tie up. What editor do you use ? |
|
| Author |
RE: Add ONE (1) registration field - Example |
Adnan
Super Administrator
Posts: 80
Location: Montreal, Canada
Joined: 23.03.06 |
| Posted on 07-08-2006 23:27 |
|
|
Adnan on August 02 2006 12:20:03
The line numbers mentioned are those from the CVS browser on the main site. I had some other modifications to the code, so I used the line numbers from the CVS so that I'd get the line numbers for a default installation (without any code being altered).
PM me the code around line 70 (make it like from 65 to 75), I'll have a quick look at it. [Grin]
Mike on August 03 2006 19:56:34
What is meant by a default file
Adnan on August 03 2006 23:49:14
One taken from a fresh download of PHP Fusion without any modifications done on it yet.
Mike on August 04 2006 04:56:50
Hi Thanks - my brain started slowing down a little at 2 this morning. I realise it may not have been that smartest question.
I have carefully gone through all the files and code. and all looks very good on the site I am however it does not keep the information in the admin forms.
I am not sure if it is not added to the database but I dont know.
any advice or assistance.
Adnan on August 04 2006 09:11:21
But if you do an edit profile does it save it ok? is it only giving problems when you edit the information from the admin table?
We all slow down a bit at 2 in the morning, its only normal ... hehe |
|
| Author |
RE: Add ONE (1) registration field - Example |
dtommy79
Member
Posts: 4
Joined: 07.09.06 |
| Posted on 23-01-2007 10:56 |
|
|
Hi Adnan,
I'm trying to do this mod but I keep getting this error message:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /register.php on line 123
this is my line 123:
"user_hobby" => $hobby
I've changed interests to hobby everywhere. I've checked and double checked everything I do as you instruct but still have the error message. Any idea?
thanks |
|
| Author |
RE: Add ONE (1) registration field - Example |
Adnan
Super Administrator
Posts: 80
Location: Montreal, Canada
Joined: 23.03.06 |
| Posted on 23-01-2007 22:09 |
|
|
|
at the end of the line above it, is there a comma? |
|
| Author |
Sponsored Link |
Advertisement
Location: Internet
|
|
|
|
| Author |
RE: Add ONE (1) registration field - Example |
dtommy79
Member
Posts: 4
Joined: 07.09.06 |
| Posted on 24-01-2007 08:09 |
|
|
oh, yeah that was the problem
Thanks |
|
| Author |
RE: Add ONE (1) registration field - Example |
dtommy79
Member
Posts: 4
Joined: 07.09.06 |
| Posted on 24-01-2007 13:34 |
|
|
Hi,
I have another problem. I modified all the files but I cannot edit existing profiles and also registering as a new user doesn't work I get this message
Unknown column 'user_hobby' in 'field list'
and the registration doesn't happen. Do I need to do anything in phpmyadmin?
Edited by on 24-01-2007 13:35 |
|
| Author |
RE: Add ONE (1) registration field - Example |
Adnan
Super Administrator
Posts: 80
Location: Montreal, Canada
Joined: 23.03.06 |
| Posted on 24-01-2007 21:32 |
|
|
Did you add the field user_hobby to the database using the code to preview in a custom page, as per Change #3?
http://www.theadnanahmed.com/add-more-registration-fields-r1.php |
|