Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 5,576 through 5,600 (of 5,755 total)
  • Author
    Search Results
  • #41157
    Andy Peatling
    Keymaster

    All the fields are sanitized as long as you are using the correct template tags and functions.

    #41153
    Andy Peatling
    Keymaster

    User fields are sanitized if you are using the standard BuddyPress template tags or function calls.

    #41151
    Burt Adsit
    Participant

    If you haven\’t altered any of the profile filtering mechanisms then the js will get removed. It gets filtered out by the standard wp filters which get run on the profile fields. The profile fields don\’t show up in the wp backend. If you have a user trying to insert js into a profile field I would delete that user. Now.

    What version of bp are you running? I see all sorts of filtering going on in trunk.

    bp-xprofile-filters.php

    #41150
    halfpint
    Participant

    I went into the data base and deleted it, but this wont stop people from injecting malicous code into “unsanatised” user fields…

    #4120
    halfpint
    Participant

    Hi I had a member sign up and he sent me a message saying that there are unsanitised fields in the profile editor, He could inject any code he wanted into these fields so is this a site vunrulbilty and does anybody know how to stop this

    thanks

    thebigk
    Participant

    Hi,

    I’d be happy if someone can spend an hour or so making a plugin that will provide me with ‘Add More’ option to the set of input fields.

    Currently I am setting up a alumni website for my alma mater. Following would be the fields user needs to enter –

    Company Name: < > | Designation: < > | Duration: From: <> Till: <>

    [Add More] (button) -> When clicked, presents the users with above fields and lets them enter data into it.

    Can anyone code this useful plugin? I’ll be very thankful!

    :)

    #41121
    takuya
    Participant

    thanks for the reference, but I’d like it fixed within the next releases. In fact, it’s the only “about me” section, and I like the auto linking for other fields.

    #4101
    jam24
    Participant

    Following problem:

    The Adminbar in front-end is German and in the back-end in English?

    and the buddypress the links (Profile Fields,Groups etc…), under “Admin” is not in German?

    I would like everything in german

    how can I fix this??

    #4099
    2222427
    Inactive

    There’s a sort_by_name(user_ids) that work specifically in displaying “My Friends” alphabetically.

    Looking for a similar function for the members widget on the home page.

    Wrote a function yesterday, but is not working. Here’s my function below.

    function get_alpha_users($limit = null, $page = 1 ) {

    global $wpdb, $bp;

    if ( !function_exists(‘xprofile_install’) )

    return false;

    if ( $limit && $page )

    $pag_sql = $wpdb->prepare( ” LIMIT %d, %d”, intval( ( $page – 1 ) * $limit), intval( $limit ) );

    $total_users = count( $wpdb->get_results( $wpdb->prepare( “SELECT DISTINCT u.ID user_id FROM {$wpdb->base_prefix}users u LEFT JOIN {$bp->profile->table_name_data} pd ON u.ID = pd.user_id LEFT JOIN {$bp->profile->table_name_fields} pf ON pd.field_id = pf.id WHERE u.spam = 0 AND u.deleted = 0 AND u.user_status = 0 ORDER BY pd.value ASC”, BP_XPROFILE_FULLNAME_FIELD_NAME ) ) );

    $paged_users = $wpdb->get_results( $wpdb->prepare( “SELECT DISTINCT u.ID as user_id FROM {$wpdb->base_prefix}users u LEFT JOIN {$bp->profile->table_name_data} pd ON u.ID = pd.user_id LEFT JOIN {$bp->profile->table_name_fields} pf ON pd.field_id = pf.id WHERE u.spam = 0 AND u.deleted = 0 AND u.user_status = 0 ORDER BY pd.value ASC{$pag_sql}”, BP_XPROFILE_FULLNAME_FIELD_NAME ) );

    return array( ‘users’ => $paged_users, ‘total’ => $total_users );

    }

    #41051
    enlightenmental1
    Participant

    @ Manoj

    thanks for answering me on your site… I\’ll move my issues to this thread

    while the \”Full Name\” field cannot be changed, I was able to change it by duplicating the url to change a different field…

    example:

    when you edit any of the xprofile fields, the url shows somwthing like this:

    http://mysite.com/wp-admin/?edit=profile_pageID=2

    i just changed the \”2\” to a \”1\” and hit refresh…that allowed me to change the \”Full Name\” field to \”first name\”

    my install is very customized, so I simpley can\’t \”roll back\” to a fresh install…

    I will try changing the profile name back to \”Full Name\” and see if that works….

    (more to follow)

    @ theBigK

    Well that would be bit difficult but not impossible because we have about 2200 users to be imported from old database. I also need to import their other profile data. Is this possible?

    it doesnt look like you can add any additional information currently, however this plugin isn\’t super-complex, so you could probably add the functionality to add more user data by adjusting the PHP code (not sure how though)

    you may also be able to export your SQL file in a | \”pipe\” delimited fashion

    something like this:

    \’

    SELECT * FROM TABLE

    ORDER BY ID INTO OUTFILE \’out.file\’

    FIELDS TERMINATED BY \’|\’;

    \’

    I dont know much about this, but google it and Im sure you\’ll find something

    #4094

    Topic: Profile Completion

    in group forum Requests & Feedback
    Arun
    Participant

    How about a Bar below every profile pictures (should be visible only to that user) indicating that how much percentage of profiles that he completed.

    the percentage can be determind with respect to the no of profiles fields each installation has.

    (Ex:- if there are 25 profile fields then each field can carry 4 percentage and if it has only 10 ,then each should have 10 percentage and so on..)

    it can also allow admins to distribute the 100 percentage amoung the profile fields with respect to their weight.

    for ex: birthday – 5perentage , work – 10 percentage and so on..but it has to make sure that the total is always 100 percent.

    this will increase the chance of every user to fill the fields very soon…

    #40923
    fishbowl81
    Participant

    1. congrats on the members

    2. I don’t believe it has been done yet.

    Depending on your mysql abilities, you may find it easier to just write a quick and dirty php file with a mysql connect to show members. The overhead that wordpress and buddypress would add to this process wouldn’t be worth the minimal gains of the buddypress functions.

    But if you don’t know much mysql, then you may be forced to do it inside of an admin plugin.

    Here are a few quick and dirty sql lines to get you started:

    find all users:

    SELECT user_nicename FROM wp_users;

    find all users, and show full name (from profile fields)

    SELECT users.user_nicename , profile.value FROM wp_users users, wp_bp_xprofile_data profile WHERE users.ID = profile.user_id AND profile.field_id =1

    #40849
    gpo1
    Participant

    Thanks for the effort…please create a plugin for it. Also is it a ebay widget,so if can one get lastFM widget?

    #40829
    enlightenmental1
    Participant

    thank you

    #4061
    enlightenmental1
    Participant

    echo 'Welcome' . ??????????????(field_7, $curauth->the_user). ' , How Are You' ;

    notice the ????????????? above…. what do i put there to get Xprofile fields?
    here is what I use on regular wordpress profile field…

    if( get_user_option(first_name, $curauth->the_user) ):
    
    echo 'Welcome'. get_user_option(first_name, $curauth->the_user) .' ' ;
    
    endif;
    #40821
    keston
    Participant

    I’ll try to set a little plugin or something later, but for the moment you can follow this method, it’s the Fishbowl81’s code adapted for ebay editor kit:

    Edit your bp-xprofile-filters.php by placing the following code after the custom buddypress filters:

    /* Display ebay listings field */

    function bp_profile_ebay_display( $field_value ="", $field_type = "", $field_id = "" ) {

    { // clean up input

    return "<script language='JavaScript' src='http://lapi.ebay.com/ws/eBayISAPI.dll?EKServer&ai=lwa%7Bfwvw%7Esa%7Cwsyw%60&bdrcolor=CCCCCC&cid=0&eksize=1&encode=UTF-8&endcolor=FF0000&endtime=n&fbgcolor=FFFFFF&fntcolor=000000&fs=0&hdrcolor=FFFFFF&hdrimage=1&hdrsrch=n&img=y&lnkcolor=75179C&logo=3&num=5&numbid=n&paypal=n&popup=n&prvd=9&r0=4&shipcost=n&si=".addslashes($field_value)."&sid=BP&siteid=0&sort=MetaEndSort&sortby=endtime&sortdir=asc&srchdesc=n&tbgcolor=FFFFFF&tlecolor=FFFFFF&tlefs=0&tlfcolor=000000&toolid=10004&track=5336248810&watchcat=63850&width=350'></script>";

    }

    }

    function bp_profile_ebay_groups( $group_name ="") {

    if($group_name == "My Ebay listings"){

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

    add_filter( 'bp_the_profile_field_value', 'bp_profile_ebay_display', 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_ebay_display', 2);

    }

    return $group_name;

    }

    add_filter( 'bp_the_profile_group_name', 'bp_profile_ebay_groups', 10, 1 );

    Also it depend of your css code but it can be useful to put this in your member theme’s stylesheet (base or your custom stylesheet).

    td.data table td{

    margin:0px;padding:0px;

    Then create a profile field group named “My Ebay listings” and a profile field like ebay username and you’re done!

    #40809
    enlightenmental1
    Participant

    @keston, I like your ebay plugin. Can you share it?

    #40803
    gpo1
    Participant

    @keston, I like your ebay plugin. Can you share it?

    #4045
    Decisionc
    Participant

    Is there a way to change the order of the profile fields?

    Also, is it possible to move one field from one group to another?

    Thanks!

    #40729
    keston
    Participant

    It did the same thing to me.I fixed that by deleting bp-music.php and puting the code directly in bp-xprofile-filters.php.I don’t know if it’s a good issue but it’s currently working, thanks Fishbowl81.

    I’ve also adapted the code to display user’s ebay listings: http://lesitedelasneaker.com/bp/users/members/admin/profile

    (Sorry for my english)

    #40559
    enlightenmental1
    Participant

    quick question:

    I uploaded the BP-music.php file to the mu-plugins folder

    and the styles/css for the entire site went crazy

    …almost like the “remove filter” removed everything from everything…

    I had not yet created a group called “Audio Details” when i uploaded the file…

    is that why it didn’t work?

    #40521
    fishbowl81
    Participant

    The magic line is this:

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

    I have started working on other versions, which could show netflix queue, hulu queue, or youtube streams. They all revolve around similar ideas.

    This method has sort of been replaced by custom boxes, but due to the profile loop showing all fields, there is no easy way to get the users “favorite song, artist, band”, without it also displaying inside of the loop

    #40464
    modemlooper
    Moderator

    it pulls from your text a keyword and gets the player from amazon

    #40454
    enlightenmental1
    Participant

    one more hint plz…. can you give an example of what would be entered into the profile field…. does it have to be a music file?

    so, http://mywebsite.com/mysong.mp3 ?

    I’m confused as to where the audio file is located/uploaded/pulled from….

    does the user upload a file? or simpley enter a link to an audio file? or enter artist names/song name and it’s pulled from amazon?

    (thanks)

    #40349
    bingoneighbour
    Participant

    Actually it’s pretty easy to see what profile fields are called in the DB – Check the wp_bp_xprofile_fields table and you’ll have an ID associated with each field which you should be able to use to call them.

Viewing 25 results - 5,576 through 5,600 (of 5,755 total)
Skip to toolbar