https://www.icyphoenix.com/viewtopic.php?f=35&t=7959&p=53273#p53273
-----------------------------------
Codi
Wed 27 Jul, 2011 07:42

Re: Trying To Develop New User Profile
-----------------------------------
@ spydie and Informpro

No, I found the already existing vars {PHONE}{ICQ}{OCCUPATION}, etc, in usercp_register.php and in  usercp_viewprofile.php.

Here's what I did:

1. Went to profile_add.tpl and, just for a test, created two new fields above the "Phone" field, and for their input, I set values {FIELDONE} and {FIELDTWO}, let's say.

2. I went then to usercp_register.php and usercp_viewprofile.php and made a "fieldone" and "fieldtwo" copy for everything that had the word "phone", putting those always next to where the "phone" tags existed (there were maaaany of them, each one for a special situation I figure, but all the same I wrote many fieldone, $fieldone, $user_fieldone, FIELDONE and so on, following the pattern of phone always.

3. I then headed to my new view_profile_body.tpl and put the {FIELDONE} and {FIELDTWO} for the fields that I wanted.

4. I changed my profile, putting something random in those new fields.

And...

It yet didn't work. I had an error message, saying that there was found an unknown profile field. Guess the name? $user_fieldone.
There must be somewhere else where to put the vars to call to else than usercp_register.php and usercp_viewprofile.php!

Thanks, anyways. =/


