Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)

  • operapreneur
    Participant

    @operapreneur

    Still looking for any direction or examples where I can create a separate page (outside of the BP member registration or member profile) where members can upload and crop there avatar using the new BP_Attachment_Avatar introduced in 2.3.

    The most help/up-to-date info seems to stem from this post.


    @imath
    Would you be able to point me in the right direction? What is restricting the avatar from being uploaded on a page outside of the member profile?

    Thanks!


    operapreneur
    Participant

    @operapreneur

    I was successful at doing this. You can read about the results here on the forum.

    I would suggest starting this kind of thread on the “How to/troubleshooting” topic, not this thread since it’s all about showing off the finished product.


    operapreneur
    Participant

    @operapreneur

    I’ve finally had success getting videos to embed outside the member loop.

    Modemlooper’s suggested code worked. I’m not sure what I was doing wrong before but this works:

    $val = xprofile_get_field_data( ‘youtube’ , $user_id ); // outside members loop

    $embed = wp_oembed_get( $val, array( ‘width’ => 400 ) );

    echo $embed

    Thank you!


    operapreneur
    Participant

    @operapreneur

    Sorry here’s the code again.

    <?php $video_url =  bp_profile_field_data( 'field=22' );
    
    $embed = wp_oembed_get( $video_url, array( ‘width’ => 400 ) );
    
    echo $embed ?>

    operapreneur
    Participant

    @operapreneur

    @modemlooper I let this issue sit for a while but now I’m back at it and having trouble.

    The oembed works perfectly on the member’s profile page but when I try to use it else where it does not work.

    I’ve tried what you had suggested above inside and outside the member loop. I’m cool with just trying to get it to work inside the member loop… I’m not sure why this should be so difficult.

    The video link displays but does not embed. I’m using the same link that is successfully embedded in the profile. Here’s what I have:

    <?php $video_url =  bp_profile_field_data( 'field=22' );
    												$embed = wp_oembed_get( $video_url, array( ‘width’ => 400 ) );
    												echo $embed ?>

    I’m using bp_profile_field_data instead of bp_member_profile_data because it is at least displaying the link.

    Any other suggestions would be extremely appreciated, I feel like I’ve exhausted my options.


    operapreneur
    Participant

    @operapreneur

    @modemlooper

    Sorry, I’m going to need a little more guidance. I have more than two fields that need to use the oEmbed. I assumed that the filter you created were for specific field IDs but that doesn’t seem to be the case at all. At this point only one of the fields is embedded the rest are just links.

    Also, is this suppose to work with the bp_profile_field_data()? My main purpose on this support thread is to get the profile field to embed outside of the profile page. It’s awesome that it’s embedded in it now but it seems I’m missing something.

    Thanks for your help! Looking forward to getting this figured out.


    operapreneur
    Participant

    @operapreneur

    Still looking for some guidance.

    I’m not sure why an x_profile field is not treated exactly like meta data. It seems to me, this maybe specific to my project, that this would be very valuable. The Xprofile Custom Fields Type Plugin is very useful and is helping extend the functionality.

    Alas, videos are still not embedding via bp_profile_field_data()

    Any suggestions are welcome.


    operapreneur
    Participant

    @operapreneur

    Thanks for the clarification @aces. I’m new to buddypress and an amateur when it comes to php.

    I hadn’t heard of the bp-custom.php file before. I followed the steps mentioned on the page and I’m assuming there is something in the bp-core that checks for this file and contents.


    @Chouf1
    Unfortunately this function didn’t fix the problem – I’m still just getting only the URL and not the embedded video. Do I need to call this function or was my initial code going to work?

    I double checked video was all lowercase and I even tried it all by removing the wp_oembed_get from my code.

    Any other suggestions?

    Again, thanks.


    operapreneur
    Participant

    @operapreneur

    Hi @Chouf1

    I’m not following you, sorry. Are you suggesting to create a plugin?

    Thanks.


    operapreneur
    Participant

    @operapreneur

    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
Skip to toolbar