marcin.lawrowski on "[Plugin: Wise Chat] Buddypress Avatars"

ساخت وبلاگ

I read the prior thread regarding avatars and decided I'd give a shot at making the plugin more suitable for my needs.

In WiseChatRender.php, I changed:

$encodedName = htmlspecialchars($channelUser->getUser()->getName(), ENT_QUOTES, 'UTF-8'); $usersList[] = sprintf( '<span class="wcUserInChannel %s" %s>%s</span>', $currentUserClassName, $styles, $encodedName ).$flag.$cityAndCountry;

to

$encodedName = htmlspecialchars($channelUser->getUser()->getName(), ENT_QUOTES, 'UTF-8'); $userAvatar = '<a href="'.bp_core_get_user_domain( $channelUser->getUser()->getID() ).'" title="'.bp_core_get_user_displayname( $channelUser->getUser()->getName() ).'">'.bp_core_fetch_avatar ( array( 'item_id' => $channelUser->getUser()->getID(), 'type' => 'full', 'width' => '32', 'height' => '32' ) ); $usersList[] = sprintf( '<span class="wcUserInChannel %s" %s>'.$userAvatar.'%s</a></span>', $currentUserClassName, $styles, $encodedName ).$flag.$cityAndCountry;

While I realize this isn't exactly a supported function, I was wondering if I could get clarification on why the following message is appearing:

Maintenance corrupted data: Unexpected token F

When removing my edits, everything goes back to normal, no error message. With my edits, the error retus.

Any help provided is most appreciated!

https://wordpress.org/plugins/wise-chat/

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 97 تاريخ : يکشنبه 19 ارديبهشت 1395 ساعت: 5:46