Page 1 of 1

[Kinda Solved] PCP End Game: no text output on new userfield

PostPosted: Sun Jan 13, 2008 3:15 pm
Author: spaniel
What I've done:

I created a new field for characters and called it user_roles and a language field called User_roles.

I set up a list_roles with 7 values each with a unique text for each role and added $lang values to lang_extend_profile_control_panel.php.

I added it to the profile registration page as a drop-list menu, and put the display on the Base profile page.


What has/hasn't happened:

The text is selectable from the drop-list on the registration page, but all that shows on the Base profile page is the Value number from the list_roles, not the text <img>


What I did next:

I went to PCP Validate files and it gave me the following errors:

Code: Select all
PCP.profil.profile_prefer.Registering_infouser_roles => Move 2 Fields => lang_key (Roles)  Validation def_userfields.phpuser_roles => Move 2 Fields =>  *  leg  (1)     * txt       (1)  



Question is: what have i missed? what have i done wrong? it works; it's just not showing the text from the list_roles, but is showing the value numbers instead...


This is quite technical to me so any help with this would be greatly appreciated. Thanks.

Re: PCP End Game: no text output on new userfield :(

PostPosted: Sun Jan 13, 2008 7:45 pm
Author: spaniel
What PCP is like for the average user:

[youtube:370b43jw]http://youtube.com/watch?v=WT_xpFZe20A[/youtube:370b43jw]


If i can't get it looking like an easy-to-use profile my sites are dead in the water.

Re: PCP End Game: no text output on new userfield :(

PostPosted: Mon Jan 14, 2008 12:17 am
Author: spaniel
Solved (kind of!)

I got the output to show by adding pcp_output_state to my user_role array in def/def_userfields.php !

That may not be the way Mr Ptirrik would have done it but I'm just a poor website owner trying to make a success online :D