Search Results for 'profile fields'
-
AuthorSearch Results
-
December 15, 2009 at 10:53 pm #58823
In reply to: Groups vs Roles vs Custom Profile Fields
Anonymous User 96400
InactiveNot exactly what I meant. There are BP profile fields (added through the backend) and then there are usermeta (which you will have to code yourself and is WP core). Stuff that’s in your profile will be displayed publicly on your profile. Usermeta can be displayed, but doesn’t have to necessarilly.
December 15, 2009 at 3:20 am #58737In reply to: Groups vs Roles vs Custom Profile Fields
Kate
ParticipantThanks so much for the reply Travel-Junkie. So, basically option 3: a custom profile field added to the registration form? I added a couple of these for other purposes and saw how the data is stored. Again, may be a stupid question, but I’m a WPMU/BP newbie! My only concern was that I assume the data would be erased if the drop-down itself were somehow removed by my client.
BTW: Users can only create accounts for the main blog. They don’t have blogging privileges themselves.
Thanks again!
December 15, 2009 at 12:44 am #58728In reply to: Groups vs Roles vs Custom Profile Fields
Anonymous User 96400
InactiveI’d give them the choice during registration, then store that value as usermeta and check for each bp-component for that value and then either display the contents of that component or a nice little reminder with a link to upgrade their account.
Not sure how well roles would work as you can have different roles in different blogs.
December 13, 2009 at 12:27 am #58569In reply to: calling specific profile fields individually
John James Jacoby
Keymasterrfauster has the right idea.
December 12, 2009 at 11:24 pm #58566In reply to: calling specific profile fields individually
Roland Fauster
ParticipantI wanted to do the same thing as h4x3d and tried his dirty trick which works..
Anyhow here is how I did it (dunno if this is less dirty)
$platforms = xprofile_get_field_data('Plattformen');
$data = xprofile_format_profile_field('checkbox', $platforms);
echo $data;December 12, 2009 at 10:32 pm #58562David Lewis
ParticipantNo need for a plugin… just make your own copy of the registration template in your child theme and delete the optional fields. Or maybe even just use CSS to hide them.
December 6, 2009 at 11:44 am #58109In reply to: BP Member Filter
h4x3d
ParticipantI think I narrowed the problem down:
the output seems to go bust when there are more than one results.
I can query the members for different profile fields, but as soon as there are more than one hit, the function halts (cut off in html when viewing source).
with error reporting on it shows: (sorry for breaking the lines)
Notice: Undefined variable: field_filter_last_users in
/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/bp-filter.php on line 150
Notice: Undefined variable: temp_array in
/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/bp-filter.php on line 170
Catchable fatal error: Object of class stdClass could not be converted to string in
/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/bp-filter.php on line 174the fatal line is:
// Remove duplicate user_id's<br />
$temp_array = array_unique( $temp_array );any clues or tipps?
YAY!! uncommenting that line fixes it!!
… but still… the selectbox issue remains, no select boxes for me with this release!
in bp-filter.php there is a line commented out in regards to selectboxes. when “activating” it,
it returns:
Fatal error: Call to undefined function bp_filter_the_profile_field_options() in /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/bp-filter.php on line 257
– this function is not added yet, correctly?
now the problem is: dropdown boxes work, but when saving profiles the data is not saved when using dropdown boxes (I have to use selectboxes there). when using selectboxes with this filter, the selectboxes are not displayed!
anything I am missing?
thanks
December 5, 2009 at 9:12 am #58033Bowe
ParticipantHi John,
The tabs are already working and are powered by jQuery Tools (http://static.flowplayer.org/tools/). The JS only weighs 50kb and works a treat.. I’ve also used it for the welcome slider tut op BP-Tricks.com. See an example here: http://cfcommunity.net/FOK2009.
I think I’m getting the idea (I can’t write php so this makes this all the more difficult) and if I understand correctly you can call the groups already under a different tab? How would I format the code for every tab?
I’m guessing I need to modify
<?php if ( bp_profile_group_has_fields() ) : ?>
and say that *if user fills in something from profile group “medical” show it in this tab*. Right? haha sorry for asking me to basically spell it out for me, hope to get there some day
December 5, 2009 at 5:46 am #58031John James Jacoby
KeymasterI think to do this correctly, your loop will need a few more logic checks and error traps in the event that all of the info under a tab may be totally empty, or that some of the fields are empty and others are not. This might not be a problem if all of the fields are required, but you’ll need to modify the idea to taste. Example would be taking…
<?php if ( bp_field_has_data() ) : ?>
…and displaying something if the field actually is empty. Same with<?php if ( bp_profile_group_has_fields() ) : ?>
I’d also check around the web for a lightweight JavaScript tab library, or do a quick Google for jQuery tabs and use the jQuery library that comes bundled with WP, and then follow the examples. I know there’s a few that just wrap the tabbed content in a container div and use an H3 or some other logical element as the clickable “tab.”
Otherwise the code above should be sufficient to output the profile data into tables, you just need to find the engine to make your tabs go.
December 4, 2009 at 11:18 pm #58019In reply to: Character Limit in Extended Profile Fields?
Paul Wong-Gibbs
KeymasterFor the benefit of anyone who finds this post via Google, you can view the current Roadmap here: https://buddypress.org/about/roadmap/
December 4, 2009 at 6:31 pm #58013In reply to: Character Limit in Extended Profile Fields?
kellerbrooke
ParticipantThanks John – can’t wait!
December 4, 2009 at 11:41 am #57998In reply to: calling specific profile fields individually
h4x3d
ParticipantDecember 4, 2009 at 10:59 am #57992In reply to: calling specific profile fields individually
h4x3d
Participantor maybe something with unserialize&stripslashes?
I found this in reference to the code mentioned above:
* xprofile_format_profile_field()<br />
955 *<br />
956 * Formats a profile field according to its type. [ TODO: Should really be moved to filters ]<br />
957 *<br />
958 * @package BuddyPress Core<br />
959 * @param $field_type The type of field: datebox, selectbox, textbox etc<br />
960 * @param $field_value The actual value<br />
961 * @uses bp_format_time() Formats a time value based on the WordPress date format setting<br />
962 * @return $field_value The formatted value<br />
963 */<br />
964 function xprofile_format_profile_field( $field_type, $field_value ) {<br />
965 if ( !isset($field_value) || empty( $field_value ) )<br />
966 return false;<br />
967<br />
968 $field_value = bp_unserialize_profile_field( $field_value );<br />
969<br />
970 if ( 'datebox' == $field_type ) {<br />
971 $field_value = bp_format_time( $field_value, true );<br />
972 } else {<br />
973 $content = $field_value;<br />
974 $content = apply_filters('the_content', $content);<br />
975 $field_value = str_replace(']]>', ']]>', $content);<br />
976 }<br />
977<br />
978 return stripslashes( stripslashes( $field_value ) );<br />
979 }and this
function bp_unserialize_profile_field( $value ) {
522 if ( is_serialized($value) ) {
523 $field_value = maybe_unserialize($value);
524 $field_value = implode( ', ', $field_value );
525 return $field_value;
526 }
527
528 return $value;
529 }
December 4, 2009 at 10:33 am #57991In reply to: calling specific profile fields individually
h4x3d
ParticipantThis works great on single field entries, but for checkboxes it outputs stuff like
a:3:{i:0;s:19:”Beschaffung/Einkauf”;i:1;s:26:”Marketing & -kommunikation”;i:2;s:20:”Strategie/Innovation”;}
where as in the sidebar (random member) it comes through just fine.
How can I fix this?
thanks
the random profile data function does some magic like this:
function bp_the_site_member_random_profile_data() {
1138 global $site_members_template;
1139
1140 if ( function_exists( 'xprofile_get_random_profile_data' ) ) { ?>
1141 <?php $random_data = xprofile_get_random_profile_data( $site_members_template->member->id, true ); ?>
1142 <?php echo wp_filter_kses( $random_data[0]->name ) ?>
1143 <?php echo wp_filter_kses( $random_data[0]->value ) ?>
1144 <?php }
1145 }
How can I apply that to James’ code above to fix the output?
December 3, 2009 at 10:37 pm #57968In reply to: Character Limit in Extended Profile Fields?
John James Jacoby
KeymasterNot yet, but this is on the roadmap for probably 1.3.
December 2, 2009 at 8:30 pm #57912In reply to: “My Favorites” Plugin
designodyssey
ParticipantThere’s a plugin in the WP repository to favorite posts (https://wordpress.org/extend/plugins/wp-favorite-posts/). The favorites are stored in the database so they can be retrieved with the user id for the profile. I agree this concept should be expanded to other components (groups, blogs) in BP. I plan to create a custom post type and use this plugin (possibly modified) to show favorites of that post-type on the profile (e.g. favorite bars). For example, Tastykitchen.com could use to track favorite recipes as recipes are just posts with custom fields.
This functionality is needed and if it doesn’t exist when I get to that stage of my project, I’ll add it and shsre. The more people think of WP/BP as a CMS, the more the need for these types of functionalities becomes apparent.
November 30, 2009 at 8:29 am #57704In reply to: Profile menu links
lsddesign
ParticipantLinks, im working on a support center plugin, and i want a link to that in their member profile fields.
can anyone help me out?
what file should i edit to insert the links where i want them on their member pages?
cheers,
aron
November 25, 2009 at 2:25 pm #57448In reply to: Displaying Profile Fields in Blog Posts
Fairweb
ParticipantThanks for the tip.
November 25, 2009 at 10:51 am #57437Paul Wong-Gibbs
KeymasterBug which I think has been fixed. They’ll need to ‘edit’ their profile after registrations and mysteriously things will appear…
November 25, 2009 at 9:30 am #57436vividbreeze
Participantno, im saying I have custom profile fields and when someone registers, and i go to their profile page there is nothing there its blank.
any ideas?
November 25, 2009 at 9:19 am #57434Andy Peatling
KeymasterProbably because you need to fill them in as a user first. You will see them on the edit profile screen.
November 24, 2009 at 11:39 pm #57408In reply to: My BP plugin ideas; anyone want to develop with me?
Nightlyfe
ParticipantI’m most in need of a way to import contacts into a member’s profile. While it would be nice for them to not have to fill in all fields again, initially I don’t plan on having all those fields on my site. The one field that matters is the friend list (or address book).
http://bp-dev.org/plugins/invite-friends/
http://sourceforge.net/projects/freshmeat_openinviter/
In other words, If you would preface #2 with a friend import function, and you would move #2 to #1, I’m on board.
I find the growl/spotlight style searching annoying — that said, predictive suggestions are nice. It would be ideal to set the weight of results, so that chosen links float to the top (even if they arent keyterm relevant).
As far as machine readable pages, I think a mobilepress style module to output your chosen spec would do just fine. Getting the data in is #1 though.
—
I can offer design, process modeling, testing, documentation and $.
Still waiting on your Achievements upgrade too..
November 24, 2009 at 12:41 pm #57371In reply to: Adding a URL to Profile Field Setup
closed account
ParticipantThanks for the tip. I’m pretty keen to establish clickable links if possible.
I tested this in the $social_networking_fields = array
'Website URL' =>'www.' ,
It seems to work for me as long as I make the instructions clear in the field description about how to format the url. i.e. with [mydomain.com] and no http:// or www.
My site is still in dev so i have no stats on user understanding of this.
cheers
Paul
November 24, 2009 at 11:30 am #57368In reply to: Adding a URL to Profile Field Setup
mlovelock
Participant@member11 – rather than enclosing your website URL in brackets (and making your users do the same) you’d be better off specifying the website URL field in the config file as @r-a-y suggests, so that it’s not linked to the search facility:
Open up the custom-profile-filters-for-buddypress.php file and in the $no_link_fields array (starting on line 14) add in your field, so mine looks like this:
$no_link_fields = array( // Enter the field ID of any field that you want to appear as plain, non-clickable text. Don’t forget to separate with commas.
‘Skype ID ‘ ,
‘Phone’ ,
‘IM’ ,
‘Web Site’
);
– where my web site field is called Web Site.
Also you may want to add in any social networking URLS that your site uses in the $social_networking_fields array that’s below this array. Same principle.
November 24, 2009 at 9:31 am #57364In reply to: Adding a URL to Profile Field Setup
r-a-y
KeymasterI use a plugin by Boone Gorges called Custom Profile Filters:
Needs some manual configuration in the $social_networking_fields array, but you should be able to do what you need.
Give that a shot.
-
AuthorSearch Results