Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Profile Custom Fields - list not showing
Avatar
audrey boss
Member
Free Members
sp_UserOfflineSmall Offline
Jun 3, 2013 - 6:05 am

Hi,

 

I am creating some custom profile fields for my forum members and it's all working fine apart from the 'list' function. When i try to create a custom field which is a list (i.e. m,embers have a multiple select choice), it automatically changes to 'select' when i save it. What am i doing wrong?

Also, can you point me in the right direction for the appropriate plugin to display the custom fields in the profiles online for other members so i can send it to my developer and he can set it up.

thanks,

Audrey

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 4, 2013 - 1:07 am

how are you creating a custom list? with the custom profile fields plugin? 

if so, that plugin can display them... have you seen:  http://codex.simple-press.com/.....le-fields/

if not, where is this custom list stored?  in wp usermeta? 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 4, 2013 - 2:31 am

I am sorry. I answered this post yesterday but i think I forgot to hit the 'submit reply' button!

The issue with the field type switching to 'select' I was able to replicate and I have fixed the problem. This will be in the next update due very, very soon. We only need WordPress 3.6 to be released and that is currently in it's third beta outing. So wont have to wait long we hope.

andy-signature.png
YELLOW
SWORDFISH
Avatar
audrey boss
Member
Free Members
sp_UserOfflineSmall Offline
Jun 6, 2013 - 6:36 am

Ok thanks, so effectively I cannot add this feature until the new realease comes out?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 6, 2013 - 4:31 pm

That is correct...

Andy made the change to the plugin, so will let him weigh in on whether the code change was small enough to post here and for you to make the same change yourself on your code base...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 6, 2013 - 5:00 pm

Sure. It is a fairly small and minor code change if you want to make it yourself...

The file (in the custom profile field plugin is /admin/sp-custom-profile-fields-admin.php

Down around line 56 in that code file you will find these 2 lines of code:

echo '<option value="select"'.$sselected.'>'.__('Select', 'cpf').'</option>';
echo '<option value="select"'.$lselected.'>'.__('List', 'cpf').'</option>';

That second line SHOULD read:

echo '<option value="select"'.$sselected.'>'.__('Select', 'cpf').'</option>';
echo '<option value="list"'.$lselected.'>'.__('List', 'cpf').'</option>';

and that's it.

andy-signature.png
YELLOW
SWORDFISH
Avatar
audrey boss
Member
Free Members
sp_UserOfflineSmall Offline
Jun 7, 2013 - 5:42 pm

thanks, very helpful!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 8, 2013 - 1:01 am

glad we could help!

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625