-
Author
-
September 24, 2013 at 20:49 #3268RonPParticipant
Hi again, C-=
I want to change the fields these items are taken from in the memberlist profiles32 / Man / Single / Strathroy Area
I want to remove single and man , and put in my custom field Proffession
Also the text is pink in the “Profile Search results” title. How do I edit that ?
September 24, 2013 at 20:59 #3270TenshiParticipant1) https://archived.seventhqueen.com/forums/topic/member-directory-page-about-me-text-does-not-display
2) I forgot how I did that on mine. Sorry! Just wait for support response!
September 24, 2013 at 22:12 #3271RonPParticipantI used that code and got this error
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘ kleo_my_member_data’ not found or invalid function name in /home/newbuddy/public_html/wp-includes/plugin.php on line 406
September 30, 2013 at 00:05 #3520SQadminKeymasterHi, Sorry for the late reply. Don’t know why they didn’t come up in our priority list
That code is good. Just add this in sweetdate-child/functions.phpCOPY CODEadd_action('after_setup_theme',' kleo_my_member_data'); function kleo_my_member_data() { global $kleo_config; //this is the details field, right now it take the "About me" field content $kleo_config['bp_members_details_field'] = 'About me'; //this display the fields under the name, eq: 36 / Woman / Divorced / Berlin. Modify with the names of the fields you want to appear there $kleo_config['bp_members_loop_meta'] = array( 'Proffession' ); }
For the color add this in Sweetdate -> Styling options -> Quick css box:
.pink-text { color: #F00056;}
Change the #HEX with your own colorHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 1, 2013 at 17:39 #3651RonPParticipantParse error: syntax error, unexpected ”City” (T_CONSTANT_ENCAPSED_STRING), expecting ‘)’ in /home/newbuddy/public_html/wp-content/themes/sweetdate-child/functions.php on line 138
October 1, 2013 at 17:41 #3652RonPParticipantadd_action(‘after_setup_theme’,’ kleo_my_member_data’);
I added a comma after Proffession and uplaoded my backupfunction kleo_my_member_data()
{
global $kleo_config;
//this is the details field, right now it take the “About me” field content
$kleo_config[‘bp_members_details_field’] = ‘About me’;
//this display the fields under the name, eq: 36 / Woman / Divorced / Berlin. Modify with the names of the fields you want to appear there
$kleo_config[‘bp_members_loop_meta’] = array(
‘Proffession’,
‘City’
);}
I now have this in my header
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘ kleo_my_member_data’ not found or invalid function name in /home/newbuddy/public_html/wp-includes/plugin.php on line 406October 1, 2013 at 17:53 #3654RonPParticipantI just changed my main sweetdate functions code.
I can’t figure out for the life of me why I can’t work in this damn wordpress enviroment.October 2, 2013 at 01:08 #3692SQadminKeymasterHi, This should be your code. I saw some extra spaces and bad quotes
COPY CODEadd_action('after_setup_theme','kleo_my_member_data'); function kleo_my_member_data() { global $kleo_config; //this is the details field, right now it take the “About me” field content $kleo_config['bp_members_details_field'] = 'About me'; //this display the fields under the name, eq: 36 / Woman / Divorced / Berlin. Modify with the names of the fields you want to appear there $kleo_config['bp_members_loop_meta'] = array( 'Proffession', 'City' ); }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.