Help with Basic Command to Add New Profile Fields
I’ve just been following this instruction – http://bbpress.org/forums/topic/adding-custom-profile-fields (and as per http://bbpress.org/forums/topic/add-new-fields-to-user-profile#post-14767) – to create a plugin of my own to add a couple of extra fields for my post/edit post, as per ardentfrost’s instructions.
I’m not overly familiar with php so wonder if anyone can see what is wrong with my code. The plugin I created for myself, which I’ve uploaded to /forums/my-plugins/jbs_own_plugin.php is as follows:-
Plugin Name: jbs_own_plugin
add_filter( ‘get_profile_info_keys’, array(‘user_email’ => array(1, __(‘Email’)), ‘user_url’ => array(0, __(‘Website’)), ‘from’ => array(0, __(‘Location’)), ‘occ’ => array(0, __(‘Occupation’)), ‘interest’ => array(0, __(‘Interests’)), ‘extra’ => array(0, __(‘Extra’)))
And when I try to activate it in bbPress plugins I get;
Parse error: syntax error, unexpected ‘;’ in /var/www/vhosts/wholelifewholeworld.com/httpdocs/forums/my-plugins/jbs_own_plugin.php on line 13
I’ve tried it with one less ), and with ; after, and a couple of other combos, but can anyone see what I’m doing wrong please? Just want to add a few extra fields that people can fill in from Edit profile and have displayed on the Profile page.
Also, I found out I don’t actually HAVE a functions.php page in bb-includes at all, so that is slightly worrying me (though everything else is working okay).
You must be logged in to reply to this topic.