Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 3,701 through 3,725 (of 4,122 total)
  • Author
    Search Results
  • #58823
    Anonymous User 96400
    Inactive

    Not 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.

    #58737
    Kate
    Participant

    Thanks 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!

    #58728
    Anonymous User 96400
    Inactive

    I’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.

    #58569

    rfauster has the right idea.

    #58566
    Roland Fauster
    Participant

    I 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;

    David Lewis
    Participant

    No 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.

    #58109

    In reply to: BP Member Filter

    h4x3d
    Participant

    I 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 174

    the 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

    #58033
    Bowe
    Participant

    Hi 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 :)

    #58031

    I 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.

    #58019
    Paul Wong-Gibbs
    Keymaster

    For the benefit of anyone who finds this post via Google, you can view the current Roadmap here: https://buddypress.org/about/roadmap/

    #58013
    kellerbrooke
    Participant

    Thanks John – can’t wait!

    #57998
    h4x3d
    Participant

    I figured it out, somehow:

    http://paste2.org/p/546483 (dirty)

    works :)

    #57992
    h4x3d
    Participant

    or 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 }

    #57991
    h4x3d
    Participant

    This 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?

    #57968

    Not yet, but this is on the roadmap for probably 1.3.

    #57912
    designodyssey
    Participant

    There’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.

    #57704

    In reply to: Profile menu links

    lsddesign
    Participant

    Links, 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

    #57448
    Fairweb
    Participant

    Thanks for the tip.

    Paul Wong-Gibbs
    Keymaster

    Bug which I think has been fixed. They’ll need to ‘edit’ their profile after registrations and mysteriously things will appear…

    vividbreeze
    Participant

    no, 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?

    Andy Peatling
    Keymaster

    Probably because you need to fill them in as a user first. You will see them on the edit profile screen.

    #57408
    Nightlyfe
    Participant

    I’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..

    #57371
    closed account
    Participant

    @mlovelock

    Thanks 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

    #57368
    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.

    #57364
    r-a-y
    Keymaster

    I use a plugin by Boone Gorges called Custom Profile Filters:

    http://dev.commons.gc.cuny.edu/2009/06/21/updated-version-02-of-custom-profile-filters-for-buddypress/

    Needs some manual configuration in the $social_networking_fields array, but you should be able to do what you need.

    Give that a shot.

Viewing 25 results - 3,701 through 3,725 (of 4,122 total)
Skip to toolbar