Topic-icon [Resolved] JFBConnect code appearing above article: {JFBCGraph...

Support Specialist
Jerry,
Just wanted to let you know that we were finally able to recreate this on our local site (after a little testing on your site). The setting is still disabled on your site, but check to make sure everything is working normally otherwise. I didn't make any great changes, but always nice to let you know.

We're trying to figure out the cause of the problem now, and will post a fix here once we have it. We had a report of one other user with this issue as well, so we'll be inviting them here as well.

Thanks for your patience,
Alex
The topic has been locked.
Support Specialist
Hi Jerry,

As Alex mentioned, we were able to reproduce the issue on our local site. I have made a small code update that appears to fix the issue on my local sites. Could you please add the following code and re-test on your pages to make sure that everything is working properly? Note, once you add the code and re-enable the JFBConnect setting in your backend, please clear your cache.

For Joomla 1.7, in plugins/content/jfbccontent/jfbccontent.php around line 644, change this snippet:
(For Joomla 1.5 - plugins/content/jfbccontent.php line 657)
$articleText = strip_tags($articleText);
$articleText = str_replace('{K2Splitter}', '', $articleText);
to
$articleText = strip_tags($articleText);
$articleText = preg_replace( '/\s+/', ' ', $articleText ); // Add this line
$articleText = str_replace('{K2Splitter}', '', $articleText);

Essentially, the bug appeared to be that newlines/carriage returns in the article text were not properly being stripped, which caused JFBConnect to have problems inserting the proper Open Graph tags.

Let us know if this update works for you. It's already checked in and will be included in the next release, assuming there are no further problems.
Thanks
-Melissa
The topic has been locked.
Active Subscriptions:

None
Mel and Alex,

This fix worked perfectly for me on my site (posted earlier by Melissa). Thank you guys so much!!
The topic has been locked.
Support Specialist
Mike,
You made our day! We hate bugs, and glad we could fix (and have confirmation of) this one. Thanks for the quick response.

Jerry- Hope the same works for you.

If everything else is good, please consider leaving a rating and review on the Joomla Extension Directory for JFBConnect or our support. It's certainly not required, but very appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

Best of luck,
Alex
The topic has been locked.
Active Subscriptions:

None
Hey Alex and Melissa
Woohoo! Good work. You found the gremlin and exorcized it. I installed the code and it works across all pages as expected.
Thank you for your devotion to what you have built.

Be well,

Jerry
The topic has been locked.
Support Specialist
Jerry,
Very glad to hear that worked for you. This will definitely be in the next release of JFBConnect, so you won't have to worry about it. Not sure when the next release will be as we're not considering this critical (which means we'd put out a release specifically for it).

Either way though, thanks again for your patience and feedback throughout the process.

Best of luck,
Alex
The topic has been locked.
Active Subscriptions:

None
I have to chime in as well. I have been trying all day to figure out why the errant code was showing at the top of my articles. I'm so glad I found this article. Added in the line of code provided by Melissa and it worked like a charm. Thanks!
The topic has been locked.
Support Specialist
We just released 4.1.2 which has this fix included, so it shouldn't be necessary to modify the code any more.

Glad this is going for everyone, and hope you don't run into any other issues!

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
Hey Alex
Hope this finds you well and happy.
I notice since I upgraded to Joomla 2.5.1 that the tags under Disqus are in a jumble again. The code
.clr {clear: both}
is still on the style.css page, but the update appears to have disabled it. I even moved it up a line and re-saved it, to no avail.
Any thoughts?

Jerry
The topic has been locked.
Support Specialist
Jerry,
The style.css file that's being included on the page is:
writingpractice.com/templates/yoo_downto.../green/css/style.css

There is no .clr statement in there defining that it should be clear:both. Can you check what file has that style definition and see if it needs to be be moved to the file linked above?

Hope that helps,
Alex
The topic has been locked.