Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 5,151 through 5,175 (of 5,755 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.

    #7981
    Kate
    Participant

    This is my third post recently, and it may very well be another one that makes you seasoned WPMU developers scratch your head and say “Is she for real?” Truth is, I don’t just pop in and ask questions. Believe me, it’s preceded by scouring through Google and reading countless posts. So, maybe I’m just that dense. :) Or, maybe I’m not fully understanding the use of each of these… I don’t know. But, I’m hoping I can get some input on this.

    I’m creating a site that will have three types of users: Paid Subscribers, Free Subscribers, and Trial Subscribers. The features available to each will depend on which category they fall into. I’ll need to refer back to their user type both for payment tracking, as well as what features they do or don’t see. Would it be easier to do this via:

    1) assigning each to a group (they don’t have control over changing this). Or, is this misuse of groups?

    2) creating a custom role for each of these three types, with capabilities that differ for each one.

    3) Just adding a three option drop-down at registration that lets them select which they want to be. Then, that value would be stored in their profile. (My only concern is how easily could that value be destroyed? eg: If the drop down somehow got deleted?)

    4) Custom fields

    5) Or, maybe there’s a plugin that accomplishes what I want? I came across several, but wasn’t sure if they were what I needed.

    Thanks for your input. I really appreciate it!

    dwpers
    Participant

    I have a sports networking site, and instead of having a users profile link to all members who have a favorite sports team chosen in their profile, I would like to customize it, so as to display their choice but instead of linking to members/?s=CHOICE – link it to a custom php team page I have created for each team (ex: /sports/football/nygiants.php )

    Is this possible? Thanks

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

    #7948
    gregfielding
    Participant

    I am using the “supporter” plugin and wanted to create a directory of supporters. Basically, it would be just like the members directory, but limited to paying supporters.

    Ideally, it would be navigated by the profile fields…location, business type, etc.

    Any thoughts on how to do this?

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

    Bowe
    Participant

    Hi everyone,

    I’m trying to modify the profile-loop in such a way that I can call for certain groups and display them under different tabs.

    I want to have 3 tabs; Basic, Personal and Medical which shows the xprofile fields from those 3 categories. In the admin panel you can already create those groups, but how can I display them nicely on a profile seperated by tabs?

    A screenshot from what I have right now:

    http://www.bp-tricks.com/wp-content/uploads/tabs_profile.png

    So the question: how can I fill the other tabs with the content from the different profile groups?

    btw my current (modified) profile loop looks like this:

    <?php if ( function_exists('xprofile_get_profile') ) : ?>

    <?php if ( bp_has_profile() ) : ?>

    <?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>

    <?php if ( bp_profile_group_has_fields() ) : ?>

    <?php do_action( 'bp_before_profile_field_content' ) ?>

    <table class="profile-fields">
    <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>

    <?php if ( bp_field_has_data() ) : ?>
    <tr<?php bp_field_css_class() ?>>

    <td class="label">
    <?php bp_the_profile_field_name() ?>
    </td>
    <td class="data">
    <?php bp_the_profile_field_value() ?>
    </td>

    </tr>
    <?php endif; ?>

    <?php do_action( 'bp_profile_field_item' ) ?>

    <?php endwhile; ?>
    </table>

    <?php do_action( 'bp_after_profile_field_content' ) ?>

    <?php endif; ?>

    <?php endwhile; ?>

    <?php do_action( 'bp_profile_field_buttons' ) ?>

    <?php else: ?>

    <p><?php _e( 'Sorry, this person does not have a public profile.', 'buddypress' ) ?></p>

    <?php endif;?>

    <?php else : ?>

    <?php bp_core_get_wp_profile() ?>

    <?php endif; ?>

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

    Jerry Helms
    Participant

    A lot of data entered into profile fields is automatically creating a hyperlink. Look at the members on http://www.wfbni.com.

    How can I turn this off?

    How can I get the web site address to hyperlink to the actual web site?

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

    #7834
    kellerbrooke
    Participant

    Is there a way I can limit the characters entered for extended profile fields? For example, I have a field where users can write something about themselves. I don’t want them to enter more than 250 characters.

    #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

    #7752
    romanwarrior109
    Participant

    When information is entered into the fields for the individual user profiles, the words come up as links to the members listing. Is there a way to have the words NOT link anywhere and just be simple, happy, lazy words?

    #7726
    jj_75
    Participant

    Hi,

    I’m looking for a Buddypress developer to help turn Buddypress into a paid members dating style site. My budget for this project is up to US$1000. However, you must be warned, the project is of an adults only nature, so if that is a problem for you, then it’s not for you.

    The plugin/s will need to accomplish the following:

    1. Ability to set different membership levels and assign member accounts to these membership levels

    2. Ability to accept credit card transactions which then set expiry dates on member accounts.

    3. Ability to specify which of the buddypress custom profile fields appear for the different membership levels.

    4. Ability to control which of the Buddypress modules are enabled for each membership level.

    5. Create the ability to batch message all friends on your list.

    6. Create or adapt a gallery plugin which allows images and videos.

    7. Ability to set different amounts of images/videos allowed depending on the membership type.

    8. A system that allows ‘Gold’ accounts to be trialled for free for a designated time, with specified intervals for reminder emails to be sent requesting payment to keep the account as ‘Gold’.

    9. Changes to Buddypress sorting which will put ‘Gold’ members at top of sort screens.

    10. Possibly some minor changes to Buddypress profile css and layout.

    If you’re interested, please PM or email me at webbie.jay@gmail.com

    Timeframe for delivery would be no later than January 31 2010, but preferably sooner.

Viewing 25 results - 5,151 through 5,175 (of 5,755 total)
Skip to toolbar