Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 3,326 through 3,350 (of 3,880 total)
  • Author
    Search Results
  • #67014
    gregfielding
    Participant

    I’m having that problem too…I’ve got profile fields set up for full contact information…phones, fax, address, etc. And all are clickable and search within buddypress.

    It would be nice to have a simple check box next to the profile field to choose if the field should be searchable.

    #66984
    Nick Watson
    Participant

    Hmm well, I did a search, and that name seems very familiar, but it appears that it’s the same plugin as the one I have installed:

    https://wordpress.org/extend/plugins/custom-profile-filters-for-buddypress/

    my problem is getting them to be NOT links, unless someone uses the tags

    Thanks, I think that was maybe the old name for it??

    #66970
    joshmac
    Participant

    I think what you are looking for is the Custom CUNY Academic Commons Profile Filters plugin.

    Sofian J. Anom
    Participant

    I just found the same thing, and I change it manually through the database, the _bp_xprofile_fields table.

    #66708
    Peter Anselmo
    Participant

    The only way I know to do this, is to log in as an administrator, and then visit the member’s profile edit url (/members/username/profile/edit). You can then edit the fields.

    Admittedly, this is clunky. I was toying with the idea of writing a plugin to make this easier, but I’ve also heard talk that this may be addresed in 1.3. Someone else might know more.

    Roger Coathup
    Participant

    @gyonis – the post has only been up 21 hours, and also is quite intimidating to read through (it may have been better to ask each question individually!)

    Any some pointers:

    Q1. You’ll need to write some PHP code, and also understand the BuddyPress hook function concepts.

    There are already some posts on modifying the admin bar, e.g. https://codex.buddypress.org/how-to-guides/modifying-the-buddypress-admin-bar/

    If your list of blogs is fixed, it should be straightforward. If you want it to dynamically add newly created blogs to the dropdown list, I suggest taking a look at the code in /plugins/buddypress/themes/bp-default/blogs/index.php as a starting point

    Q2. I suggest setting up a blog in your install for the NGO Directory, with new users added as contributors… they would then be able to create posts in that blog, but it would need your admin approval before the post goes live.

    You could then use categories for each country, and tags to say what type of NGO they are (or simply have another set of orthogonal categories for type). For a simple ‘code free’ solution, you would then just put a sidebar widget in that provides a menu of all the categories and / or tags.

    [A more powerful solution (extra features for the NGO), would be to give them an entire blog, instead of a single post for their organisation… although tagging and categorising blogs is / was a nightmare (Burt Adsit did some work on this, but I think it is out of date now).]

    [Perhaps the best solution would be to add NGO’s as a different type of member in BuddyPress. i.e. users can register as themselves or as their NGO… Create a BuddyPress group to hold the NGO members, and have country, etc. as searchable fields in the profile. We gave up on a similar 2 types of member project, but there the challenges were considerable, yours may well work with this approach.]

    Q3.1.1 You can add additional fields using the ‘custom field’ area of the edit post form. This isn’t particularly user friendly though, so you might want to look instead at something like the flutter plugin, which lets you define separate fields.

    Q3.2 Posting from the front end is the ‘Holy Grail’ ! Check out P2 Blog… a theme that was developed by WordPress / Automattic, but seems to have gone very quiet. My wild speculation: @Andy (the developer of BuddyPress) wrote a blog post about P2… I wonder if that means we can look forward to the P2 blog front end features making an appearance in BuddyPress soon. Any comment @Andy?

    To do what you want, you’ll definitely need some development skills (PHP), a decent working knowledge of WordPress code, and an idea where to start investigating the BuddyPress code (I doubt if anyone apart from Andy has a good working knowledge of it).

    modemlooper
    Moderator

    When you put a url into the profile fields it auto links it.

    #66518
    rich! @ etiviti
    Participant

    google search for sql ISO 3166 country tables – as many sites provide a basic list

    #66509
    arnonel
    Participant

    @DJPaul

    Could you tell me where to do it in the DB?

    #66488
    Paul Wong-Gibbs
    Keymaster

    You need to add them in manually, either via the page or directly in the DB. I suppose this could be achieved with a plugin, or in a future BP version.

    I’m moving this post to the Ideas forum.

    #66486
    draganbabic
    Member

    I’d definitely like to see a solution to this as well.

    #66480
    draganbabic
    Member

    Thanks for the help r-a-y, I found this solution:

    [IN BP_CUSTOM.PHP]:

    function custom_xprofile( $field ) {

    echo bp_custom_get_member_list_xprofile_data( $field );

    }

    function bp_custom_get_member_list_xprofile_data( $field ) {

    global $site_members_template;

    return xprofile_get_field_data( $field, $site_members_template->member->id );

    }

    [IN CHILD THEME FILE]:

    <?php custom_xprofile('Header Image') ?>

    #66437
    draganbabic
    Member

    Hi guys,

    thanks for the ideas. So far I got this running:

    <?php if ( bp_has_profile('profile_group_id=2') ) : ?>

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

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

    <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>

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

    style="<?php bp_the_profile_field_value() ?>"

    <?php endif; ?>

    <?php endwhile; ?>

    <?php endif; ?>

    <?php endwhile; ?>

    <?php else: ?>

    <?php endif;?>

    And this indeed outputs the desired value, but it is also wrapped in a paragraph and autolinked. Please do note that I have no idea what I am doing here, weather it is valid, good or anything else, this just got the job done, so it’s a starting point.

    I have searched the forum and found this code that is supposed to remove the autolinking:

    <?php

    function remove_links(){

    remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 2 );

    }

    add_action( 'plugins_loaded', 'remove_links' );

    ?>

    However it doesn’t do that once placed in bp-custom.php

    Any pointers?

    #66422
    r-a-y
    Keymaster

    You can use an xprofile field, I see no harm in it.

    Of course, there are other ways.

    I believe, by default, all xprofile fields under “Base” are required.

    If you don’t want it required, create a new xprofile group to house this new field.

    To check the xprofile value of this new field, you’ll have to do a little manipulation in PHP with it. You could use substr() to check for file extensions.

    #66367
    Anointed
    Participant

    @blackphantom nope, I am absolutely positive that I have both the key fields filled in on the admin page. I even created new apps with new keys to test it out, but it made no difference. I still get the error when clicking the profile tweetstream user link.

    Here is a screenshot of the admin area:

    http://anointed.net/files/2010/03/tweetstream.jpg

    #66327
    Windhamdavid
    Participant

    All in all, here’s my approach that I use on MU/BP sites ~

    1) modify the register/register.php wp-signup.php hardcoded default text and url slugs.

    2) enable xprofile and require additional fields upon registration.

    2) use a captcha ~ i’m fond of ReCatcha

    3) make sure you and check the NO setting under “Allow blog administrators to add new users to their blog via the Users->Add New page. ” in wp-admin/wpmu-options.php “Admin > Site Options”

    4) I ban or limit the registration domains (also in Admin > Site Options) so that the commonly used spammer domains are blocked from registration and then I add an email contact for owners of these addresses to manually request registration. I hide the email address from bots with HiveLogic EnKoder

    5) I then firewall off entire blocks of IP’s from my servers from commonly used spammer IP ranges you can find at sources like spamhaus.org .. and considering that these are one language sites, the need for access for the IP blocks on the pan asia network or eastern europe are unlikely. If you have a multilingual site, this might cause issues to very few users. Cpanel, Plesk, BSD, etc have tools to do this.. if you’re on a shared server, ask your hosting provider if they can do it for you, and they may be likely doing it already.

    6) I also recommend using Askimet.

    #66291
    Sam Steiner
    Participant

    This is getting worse and worse. I just launched my first BuddyPress site and am getting spammer registrations although I have additional required profile fields and SI Captcha installed.

    Sadly, the article mentioned (linked) above is not available anymore (I guess the spammers took down that site) and judging by the responses here there still seems to be no known solution to the spammer problem with WPMU/BuddyPress.

    I spoke to someone on Twitter who confirmed that the spam problem started when activating BuddyPress – this would be in contradiction to remarks from Andy, I’m afraid. Anyhow: after reading comments here there seems to be a hole in the system somewhere.

    (I guess the spammers have been clever enough not to spam testbp.org :-) )

    #66211

    In reply to: Extending Profiles

    mlovelock
    Participant

    For more specific help you’d need to give more specific details –

    i want to do all sorts of things to profile fields…..

    … is a bit vague.

    Also, you’re effectively asking someone to teach you how to write code. What you’re after probably requires a more in-depth answer than you’re likely to get here in the forums.

    Perhaps you ought to download and break down / delve into the custom profile filters plugin and start from there – that’s an example of how to do these things in code – combined with the codex etc should get you started.

    #66169

    In reply to: Extending Profiles

    arnonel
    Participant

    What i want to do is add different html/css/etc for a particular field….

    eg: adding a map…

    i know there are these plugins,….but they are merely examples of what i want to achieve in code…

    i want to do all sorts of things to profile fields….. and need to know how to do things like this in code…

    #66141

    In reply to: Extending Profiles

    mlovelock
    Participant

    If you’re using the plugin I mentioned and you want to do exactly what you mentioned above, you could probably just add it into the SN arry in the plugin file, thus:

    $social_networking_fields = array( // Enter the field ID of any field that prompts for the username to a social networking site, followed by the URL that must be appended to username to create a link to the user's profile on that site. Thus, since the URL for the profile of awesometwitteruser is twitter.com/awesometwitteruser, you should enter 'Twitter' => 'twitter.com/'. Don't forget: 1) Leave out the 'http://', 2) Include the trailing slash (/) if needed to make a valid URL, and 3) to separate items with commas
    'Twitter' =>'twitter.com/' ,
    'Delicious ID' => 'delicious.com/' ,
    'YouTube ID ' => 'youtube.com/' ,
    'Flickr ID ' =>'flickr.com/' ,
    'FriendFeed ID' => 'friendfeed.com/',
    'Facebook' => 'facebook.com/',
    'MySpace' => 'myspace.com/',
    // your site's Company Field
    'Company' => 'google.co.uk/search?q='

    );

    // You shouldn't need to touch anything below this line.

    Of course I haven’t actually tried this myself. The alternative is to extend the plugin a little with a function that takes that company field and does whatever you want to do with it.

    #66069
    joshuarg
    Member

    This works great! But I am wondering if there is a way to have it call the value depending on the user that is currently logged-in.

    I thought something like this might work… <?php echo bp_loggedinuser_xprofile_get_field_data(’10’); ?> but no such luck.

    Any ideas?

    #65824

    In reply to: Location Profile Field

    xspringe
    Participant

    There used to be the possibility to use pre-built fields to the registration form (as described here: https://buddypress.org/forums/topic/what-happened-to-add-prebuilt-field), which would take care of at least part of this problem. But it appears this is no longer supported for 1.2.

    So I definitely support the request for the ability to add pre-built registration fields.

    r-a-y
    Keymaster

    Ahh sorry about that!

    I thought you were talking about the registration page!

    Move /bp-themes/bp-default/members/single/profile/profile-loop.php to your child theme and adjust.

    r-a-y
    Keymaster

    Move the /bp-themes/registration/register.php to your child theme.

    Edit as needed.

    #65679
    enzyad
    Participant

    any?

Viewing 25 results - 3,326 through 3,350 (of 3,880 total)
Skip to toolbar