|
How to make new user fields?
|
| tkondrup |
Posted on 16-05-2011 15:31
|

Newbie

Posts: 3
Joined: 16/05/2011
|
Hi.
Anyone who can tell me how to create new user fiels? - Eg. Adress, Postal code, city, Phone, and other fields. - And how to do, so only administrators and the user itself can see and edit these informations?
I hope you understand my question, and look forward to a reply.
Thanks a lot. |
| |
|
|
| gittedl |
Posted on 16-05-2011 16:57
|

Newbie

Posts: 9
Joined: 05/01/2007
|
Which version of PHP-fusion are you using?
Gitte
|
| |
|
|
| tkondrup |
Posted on 16-05-2011 17:17
|

Newbie

Posts: 3
Joined: 16/05/2011
|
Hi.
I use v7.01.02 |
| |
|
|
| gittedl |
Posted on 17-05-2011 18:24
|

Newbie

Posts: 9
Joined: 05/01/2007
|
I've made several for my own website also in PHP-Fusion v7.02.01
I've made Address, Zipcode, City, Phonenumber, Mobile Phonenumber, Job, Name and Diagnosis. I you would some of them just let me know, and I'll zip them and put them up in this thread.
Gitte
|
| |
|
|
| tkondrup |
Posted on 18-05-2011 06:04
|

Newbie

Posts: 3
Joined: 16/05/2011
|
Hi Gitte.
That would be very nice, I would like to.
But is there a way to make these informations anonymiously? So it only will be the Administrators and the user itself who can see the Informations?
Thank again. |
| |
|
|
| Ankur |
Posted on 18-05-2011 06:16
|

Admin

Posts: 1291
Joined: 02/11/2010
|
If you are going for PHP-Fusion v7.02, then there is a very Nice explanation given by Hans Kristian Flaatten(Starefossen) in the User Fields API 1.01.00 !
|
| |
|
|
| gittedl |
Posted on 18-05-2011 07:38
|

Newbie

Posts: 9
Joined: 05/01/2007
|
tkondrup wrote:
Hi Gitte.
That would be very nice, I would like to.
But is there a way to make these informations anonymiously? So it only will be the Administrators and the user itself who can see the Informations?
Thank again.
Maybe this mod is something for ya - http://www.php-fu...ddon_id=49 - It's called Restricted and with this you can keep guests from looking at the users profile. However alle users can look at all the profiles, but maybe that can be fixed by change something in the code maybe.
I'll put up the userfields for you later to day in this thread 
Merged on May 18 2011 at 14:09:15:
Well aparent I cant attach a zip file I've made with the user_fields, but you kan download them here: http://www.prinzm...ackage.zip
Edited by gittedl on 18-05-2011 14:18
Gitte
|
| |
|
|
| Craig |
Posted on 18-05-2011 14:26
|

Fusioneer

Posts: 3980
Joined: 27/09/2005
|
Hi,
Look...
http://www.php-fu...don_id=288
|
| |
|
|
| Quientir |
Posted on 17-11-2011 23:32
|

Newbie

Posts: 5
Joined: 08/11/2011
|
Hi. just starting up a site using php-fusion. clean install of 7.02.04.
I found a forum thread before that described how to make the files for new user fields, but cant find it now. Copied directly from the forum thread there and changed the name of the fields in the files as well as the file names to reflect the name of the field. (yes all are spelled the same exactly)
I edited the 3 files (2 in includes and 1 in locale) with what was said there. fields are basic text, and would like to make them 256 chars of text available.
I have the files uploaded in the correct folders, the site sees it correctly and displays it in the disabled user fields, but i can not enable the field.
What did i do wrong? |
| |
|
|
| Stewart-G0LGS |
Posted on 17-11-2011 23:55
|

Member

Posts: 77
Joined: 28/11/2010
|
I have added my own user field tonight (also on 7.02.04) by copying. renaming and editing the 3 files for the 'location' user field (two in /includes/user_fields and one in locale/English/user_fields).
I initially made a silly mistake with the file-names, but having corrected this it works perfectly - I suggest you check that you really have got all the names correct and have not overwritten one or more of the original files.
Stewart G0LGS
I DO NOT response to PM's regarding any posts on this Forum !
|
| |
|
|
| Quientir |
Posted on 18-11-2011 00:50
|

Newbie

Posts: 5
Joined: 08/11/2011
|
Thx stewart. code i copied was old i guess. next question, what is the max length for a textbox field? |
| |
|
|
| PolarFox |
Posted on 19-11-2011 03:27
|

Admin

Posts: 1479
Joined: 26/08/2008
|
max length of TEXT db-field is about 64 kb (65535 symbols)
|
| |
|
|
| lalvarez |
Posted on 21-11-2011 00:23
|

Newbie

Posts: 1
Joined: 26/06/2011
|
Stewart,
i just copied the three location files, changed a few things and didnt work out. Could you help me by describing what needs to be changed or by possibly posting some sample files?
thanks,
Lino |
| |
|