Page breaks when changing tabs if using CB avatars
Lets say I'm looking at "All Discussions", and I decide to click on "Featured"...
Once I do that I get this code that shows up right before the avatar of the user on the top post.
I also had this same problem with the previous version of easydiscuss.
Any ideas? Screen shot
Selected answer for this question
Ah, sorry about that. I wanted to wait for an official reply form the Community Builder dev's about their API before altering the codes internally. Still waiting for a reply from them at https://www.joomlapolis.com/forum/147-potential-bug/186872-getfield-generating-script-tags#186979
Anyway this is what you can do, edit the file /components/com_easydiscuss/helpers/integrate.php and locate the line 177,
$field = $user->getField( 'avatar', null, 'php', 'none', 'list' ); $avatarLink = $field['avatar'];
Replace the codes above with the following,
$avatarLink = $user->avatarFilePath();MrBlackBoot likes this post.