Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 3,526 through 3,550 (of 3,578 total)
  • Author
    Search Results
  • #37321
    Burt Adsit
    Participant

    Lets start from scratch here. Do you have the x-profile tables in you db? You should have:

    (tableprefix_)bp_xprofile_groups

    (tableprefix_)bp_xprofile_fields

    (tableprefix_)bp_xprofile_data

    Where (tableprefix_) is set to something like ‘wp_’ depending on how you specified it on wpmu install.

    When you look at the tables with phpMyAdmin is there any data in the bp_xprofile_groups table? There should be 1 record in there on a clean install. id == 1 and name == ‘Basic’.

    In the table bp_xprofile_fields there should be 1 record it should have id == 1, group_id == 1 and name == ‘Full Name’.

    If you don’t have all the above you will get the error you describe. If you don’t have all of that then the required tables for bp are not being created and populated properly.

    #37274
    westpointer
    Participant

    For now, I simply commented out the line

    add_filter( 'bp_the_profile_field_value', 'xprofile_filter_link_profile_data', 2, 3 );

    on line 14 of bp-xprofile/bp-xprofile-filters.php. The current fn simply makes way too many words into search hyperlinks.

    #36715
    Famous
    Participant

    I have been hoping to do this for at least 3 weeks now. Wouldn’t it be better if the profile fields could be broken up? The make searchable would work perfect for other data. When checking make searchable, the formatting of links would not apply allowing more data customization options such as links.

    However, this still leaves the issue of lumping data together. All data that is marked or shown under the profile leaves no way to truly customize it. So then it would be better if data was segmented to allow a type of include or not to include–that way you can post the data where you would like. Or how about the option of adding data to group segments? A drag and drop approach through the control panel.

    For instance, you could drag a field under PROFILE or if you would rather have it show up under LINKS then you have the option to drag it under that category.

    Then in the profile you would have to add the options for categories, not just:

    <?php if ( function_exists(‘xprofile_get_profile’) ) : ?>

    <?php xprofile_get_profile() ?>

    <?php else : ?>

    <?php bp_core_get_wp_profile() ?>

    <?php endif; ?>

    #36692
    Burt Adsit
    Participant

    Howdy. I don’t see any way to do this other than disabling the ‘make everything a search term’ filter which exists in bp-xprofile-filters.php. That filter is called ‘xprofile_filter_link_profile_data’ and you can disable it by creating a small plugin file which contains the following:

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

    Then the new ‘make clickable’ filter can take over and voila. You got a link if the user enters http://myblog.yoursite.org

    There are other ways of doing this but this seems to be the easiest and fastest.

    Create a profile field called ‘my blog’, make it a textfield and you’re done.

    You might want to post a bug ticket in trac that details your inability to do this. An enhancement ticket might suggest a ‘make searchable’ on/off button for all profile fields. ‘eh?

    #36607
    usergnome
    Member

    Absolutely agree with point #1 – ability to order fields and move between groups would be a nice usability feature.

    #36546

    In reply to: Hidden Profile Fields.

    nicolagreco
    Participant

    you’ve to add a filter in bp_get_item (if i remember good or a thing like that

    #36522
    Famous
    Participant

    1.) Okay, I see “add new group” under profile fields, that will enable to separate groups. How can I remove the automatic linking of text from let’s say, Group B and post Group B as an includes PHP function while removing it from the user profile?

    Any feedback is much appreciated… Thanks

    #36087

    In reply to: Google Map Integration

    Bergsten
    Participant

    Apart from the BP-profile integration, each user can easily add a Google Map on their blogs using the tags in http://www.ezbizniz.com/wordpress-plugins/google-maps

    I’ve also added the possibility to get markers from an XML-feed. If you, in the WP Google Maps settings, click on the “See example…”-link you see the URL to an XML-feed that will return markers for 20 of the users withint the viewport of the current map. You can use this to display a map on your front page displaying where the different members on your site lives.

    In the “Marker XML Feed Fields” input field you can specify the names of the different fields of the markers returned by the XML-feed.

    In the “Marker XML Feed HTML Pattern” you can set how the information will be presented when someone clicks on a marker.

    I will write a more detailed description on how things work on http://www.ezbizniz.com/wordpress-plugins/google-maps when I get the time to do so.

    #36077

    In reply to: Google Map Integration

    Meerblickzimmer
    Participant

    Hi bergsten!

    Plugin works fine so long. What´s your plan with the plugin? Mayby a profile-integration is possible (under profile fields under the wp-mu backend)?

    #35805
    yu
    Participant

    i’ve found this function –

    function xprofile_filter_link_profile_data( $field_value, $field_type, $field_id ) {
    if ( $field_type == 'datebox' )
    return $field_value;

    if ( !strpos( $field_value, ',' ) && ( count( explode( ' ', $field_value ) ) > 5 ) )
    return $field_value;

    $values = explode( ',', $field_value );

    if ( $values ) {
    foreach ( $values as $value ) {
    $value = trim( $value );

    if ( count( explode( ' ', $value ) ) > 5 )
    $new_values[] = $value;
    else
    $new_values[] = '<a href="' . site_url() . '/' . MEMBERS_SLUG . '/?s=' . $value . '">' . $value . '</a>';
    }

    $values = implode( ', ', $new_values );
    }

    return $values;
    }
    add_filter( 'bp_the_profile_field_value', 'xprofile_filter_link_profile_data', 2, 3 );

    so EVERY field is ‘link’ field.. i think this is not so good ;/

    next stape i think should be creation of new field_types, and applying filters to this field_types in this function. but where are this types and how to create new ones i don’t know..

    #35804
    yu
    Participant

    and other question – how to check user added info posted in this extra fields? cause i just saw hundreds spaces in ‘link’ field…

    #35801

    fishbowl81, thanks for the help.. am not sure of where exactly to put that code.. chk out my profile @ http://ignitte.in/members/admin/profile

    over here i would like everything in the contact group to be delinked except for the URL.. hw do i go about this?

    #35800
    gpo1
    Participant

    fishbowl81, I like your member theme.which file did you use to change the top bar ie to red & black.

    That is how did you do it?

    And also can you adapt it for lastFM widget?

    Link for lastfm api

    http://apps.sourceforge.net/mediawiki/phplastfmapi/index.php?title=Usage

    #35790
    fishbowl81
    Participant

    This post maybe a little more clear, as it has a full working music player.

    https://buddypress.org/forums/topic.php?id=604#post-3382

    #1, the 2 is priority of the filter.

    #2, I have been lazy and just made everything inside of the “social details” group active links. In the future I maybe validating them with some regular expressions or substring checking.

    #3, check for an @ and at least 1 period in the string and no spaces? There are some very complex regular expressions which can validate e-mail addresses, but regular expressions are slower then substrings.

    Brad

    http://gorgeousgamers.com/beta

    #35787
    Mike Pratt
    Participant

    Brad – nicely done. a few beginner questions:

    1. where are you applying this filter? I assume 2 was the field_id?

    2. For the web site link (non-bp link) in your example, do users need to merely enter a valid url? just http://www.example.com or what, specifically – I will need to steer them.

    3. How would you go about configuring a mailto: link (assuming they were safe behind the login walls form scrapers

    #35786
    fishbowl81
    Participant

    Here it is, save as bp-music.php and copy into your muplugins

    you must create a profile details group “Audio Details”, and all values will be replaced by a music player.

    Check out a working copy on:

    http://gorgeousgamers.com/beta/members/bradmkjr/

    Brad

    http://gorgeousgamers.com/beta/

    <?php

    /*

    * Created on Dec 29, 2008

    *

    * Project Buddypress Addons

    *

    * File bp-music.php

    *

    */

    function bp_profile_music_player( $field_value =””, $field_type = “”, $field_id = “” ) {

    if($field_value == “”)

    return “Nothing to show”;

    else

    { // clean up input

    return “<script type=’text/javascript’>

    var amzn_wdgt={widget:’MP3Clips’};

    amzn_wdgt.tag=’gorgeousgamers-20′;

    amzn_wdgt.widgetType=’ASINList’;

    amzn_wdgt.keywords='”.addslashes($field_value).”‘;

    amzn_wdgt.title=’What I’ve been listening to lately…’;

    amzn_wdgt.width=’250′;

    amzn_wdgt.height=’250′;

    amzn_wdgt.shuffleTracks=’True’;

    amzn_wdgt.marketPlace=’US’;

    </script>

    <script type=’text/javascript’ src=’http://wms.assoc-amazon.com/20070822/US/js/swfobject_1_5.js’&gt;

    </script>”;

    }

    }

    function bp_profile_music_groups( $group_name =””) {

    if($group_name == “Audio Details”){

    remove_filter( ‘bp_the_profile_field_value’, ‘xprofile_filter_link_profile_data’, 2);

    add_filter( ‘bp_the_profile_field_value’, ‘bp_profile_music_player’, 2, 3);

    }else{

    add_filter( ‘bp_the_profile_field_value’, ‘xprofile_filter_link_profile_data’, 2, 3);

    remove_filter( ‘bp_the_profile_field_value’, ‘bp_profile_music_player’, 2);

    }

    return $group_name;

    }

    add_filter( ‘bp_the_profile_group_name’, ‘bp_profile_music_groups’, 10, 1 );

    ?>

    #35784
    fishbowl81
    Participant

    very simple

    remove_filter( ‘bp_the_profile_field_value’, ‘xprofile_filter_link_profile_data’, 2);

    That removes the autolinking

    I have developed a nice plugin (now a pair) which changes profile values rendering depending on the name of the group. I have not yet released the code, as I’m offering it as beerware.

    Here is my profile on my beta site:

    http://gorgeousgamers.com/beta/members/bradmkjr/

    I made the social details, normally clickable so people can enter myspace, facebook, or personal sites.

    I also made a fun mp3 player plugin to allow people to suggest music for their profiles and listen to samples.

    Brad

    http://gorgeousgamers.com/beta

    #35755

    In reply to: show user email

    Mike Pratt
    Participant

    I have done the same. Shame that all profile fields deal with everything as plain text. Can’t make links look pretty or email addresses function as mailto links

    #35747
    Anonymous User 303747
    Inactive

    *bump*

    It would be helpful to see your code, Brad. Are you willing to share?

    #35356
    gpo1
    Participant

    when are you going to release it and also can you apply it for youtube media ?

    #35273
    Andy Peatling
    Keymaster

    Filters are very useful, I’ve tried to include filters on every template tag, so you can modify template tag output as you see fit.

    #35272
    David Bisset
    Participant

    This is a good solution (or hack) for when this has to be in the profile page. I can easily see this expanding into it’s own page for bigger sites. And I forgot about the filter hint from Andy. Good job.

    fishbowl81
    Participant

    Finished,

    Wrote it as a customization to the profile fields, managed to do it in about 10 or so lines of php. Read my complete post here:

    https://buddypress.org/forums/topic.php?id=604

    or check out the running example here:

    http://gorgeousgamers.com/beta/members/bradmkjr/

    Thanks,

    Brad

    http://gorgeousgamers.com/beta/

    #35217
    Mike Pratt
    Participant

    If I had the time, I’d build a plug-in that 1. added a section to the profile page that 2. worked like myBlogLog in that it showed a bunch of username/profile url fields for the various other social networks and then validated prior to 3. showing on a member profile as a nice icon/button to that site/platform/service. Otherwise, odds are many noob users won’t go the extra mile to paste links or do whatever it takes to make text look right.

    #35215
    oceandoctor
    Member

    lol! OK, I just did a clean install (1and1). Same symptom…tables not created. Here are the relevant fields from wp_sitemeta:

    bp-activity-version 1.0b1

    bp-core-version 1.0b1

    bp-xprofile-base-group-name Base

    bp-xprofile-fullname-field-name Full Name

    bp-xprofile-fullname-conversion 1

    bp-xprofile-version 1.0b1

    bp-messages-version 1.0b1

    bp-groups-version 1.0b1

    bp-friends-version 1.0b1

    bp-blogs-first-install 1

    bp-blogs-version 1.0b1

    P.S. Actually I liked the lady floating in space with the bowl on her head. I have exotic tastes. ;)

Viewing 25 results - 3,526 through 3,550 (of 3,578 total)
Skip to toolbar