Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Buddypress gifts component


warut
Participant

@warut

i think not update version in few day.

for temporary fix username bug# you can edit code in bp-gifts-ajax.php

change $bp->displayed_user->fullname to $bp->displayed_user->userdata->user_login

[from line 41]

$content = ‘<img class=”gift-image” src=”‘. $_POST[‘gift_path’] .'” />displayed_user->domain.'”>@’.$bp->displayed_user->fullname.’ ‘.$_POST[‘gift_message’];

[to]

$content = ‘<img class=”gift-image” src=”‘. $_POST[‘gift_path’] .'” />displayed_user->domain.'”>@’.$bp->displayed_user->userdata->user_login.’ ‘.$_POST[‘gift_message’];

Skip to toolbar