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

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

I read some articles before posting as I had this chunk of code appear at the top of one of my articles: {JFBCGraph description=View Comments

So I read a post where where there may be competing libraries (JS) and I turned off the two plugins for Disqus. Cleared the sever cache. The code text disappeared. It would be great if I didn't have to choose between the two.
I'm using: Joomla 1.7.3, Yootheme Downtown (template), Warp 6.1, Widgetkit 1.0, the site is http://writingpractice.com
I have attached a photo of the code on the site page.
http://www.sourcecoast.com/components/com_agora/img/members/7708/Screen-Shot-2012-01-16-at-10.png
Thanks for any insights you may have.

jerjaz
Jerry
useravatar
Offline
27 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: [Resolved] JFBConnect code appearing above article: {JFBCGraph...

Jerry,
The problem you were having probably wasn't from a competing Javascript library, but probably a competing plugin. Try re-enabling the plugins, but re-order them so either JFBConnect is higher or lower than them. Hopefully, one of those combinations will work.

We've seen quite a few sites use Disqus and JFBConnect at the same time, so they can work together.. but I haven't set up many sites with both. If the above plugin re-ordering doesn't work though, let us know, and we'll do what we can to help. To get us going, leave the plugins enabled, but add that tag to a more obscure page (if possible) and send us a link to that so we can take a look.

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23813 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: [Resolved] JFBConnect code appearing above article: {JFBCGraph...

Hey Alex,
Thanks for the fast response. Reordering the 2 Disqus plugins to load after JFBC plugins solved the errant code display. But just on one page. I can't discover a correlation between whether the post has a comment and the code display. I'll try the opposite load sequence and report back.

The FB and LI buttons are in kind of a jumble at the bottom of the Disqus comment box. Is there a way to make them appear before the comment box, but still at the end of the article? I imagine they would sort themselves into a single row.
Not sure if I should open a new comment, but when I use FB login, it goes through the process, and welcomes me, but delivers me to the registration form which is only populated with my name, none of the other info (email, city, state etc). I don't have redirection enabled.

jerjaz
Jerry
useravatar
Offline
27 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: [Resolved] JFBConnect code appearing above article: {JFBCGraph...

Let us know what you find about the different ordering. The plugin that parses out the {JFBCxxx} tags is the JFBCSystem plugin, so that's the only one you should really need to mess with the ordering on. If you're using the System - Cache plugin, that must be ordered last (or very near to it). Ordering it earlier won't save the results of any of the plugins that fire after it, like the JFBCSystem (but also others), and can cause a lot of weird issues on your site.

For the ordering of the social buttons, that's likely the ordering of your disqus and jfbc content plugins. Simply order the JFBCContent plugin before (above) the Disqus, and I think you should be good. For the "jumble", I think that's because the style your using for the buttons is too wide for the area you're putting them in. Try changing from standard to "button count" in the Social config area of JFBConnect and hopefully that will get you going.

Finally, for the login, a new post might be good. In general, make sure you have the profile plugin for the system you're integrating with enabled. Then, make sure the mappings are setup properly. Once that's all done, you won't see the fields during registration, the data will just be filled in automatically upon registration.

Hope that helps,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23813 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: [Resolved] JFBConnect code appearing above article: {JFBCGraph...

Hey Alex
Thanks for the suggestions. When you say the System Cache plugin should be almost last, is that of the other "System" plugins, or all of the plugins? Below is a photo of the end of the plugins in order. "User - Joomla is the last plugin.
http://www.sourcecoast.com/components/com_agora/img/members/7708/Plugin-order.png
I used your suggestion about the button sizes, it took care of FB but not LinkedIn, Couldn't find a similar wording for it. I tried "No Count" but it had no effect. the buttons now look fine when not with a comment box, but the Tweet doesn't render a button. With Disqus, it looks like this.
http://www.sourcecoast.com/components/com_agora/img/members/7708/Buttons-at-bottom.png
I'll start a new message for the login not mapping.

jerjaz
Jerry
useravatar
Offline
27 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: [Resolved] JFBConnect code appearing above article: {JFBCGraph...

The System - Cache plugin just needs to be at the end of it's group (System). Your image looks correct for ordering there.

For the buttons showing up in a line, I just looked a little further, and the Disqus module isn't displayed in a 'block'. It does have a div after it with a class of "clr", but that's not defined in your CSS file anywhere. Therefore, any contents after the module will show up to the right and will wrap if too long. It looks like if you add the following code to your CSS file, it will fix the wrapping issue:

Code:

.clr {clear: both}

The best guess location for this, if you don't have a preferred CSS file, is: /templates/yoo_downtown/css/style.css

Finally, for the Tweet button, there's a minor bug if both JFBConnect and JLinked are installed. It's easily fixable if you order the JFBCSystem plugin ahead/before (lower number) the JLinked System plugin. That will hopefully fix that issue, and may fix the JFBCGraph tags showing up.

Hope that gets you going, but as always, if not, just let us know!

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23813 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: [Resolved] JFBConnect code appearing above article: {JFBCGraph...

Hey Alex
Thanks for the code snippet, I put it at the end of the style.css page and it changed the button arrangement for the better. Safari handles them perfect, Firefox slightly different. The photos below show Safari first, then Firefox:
http://www.sourcecoast.com/components/com_agora/img/members/7708/Safari-Buttons.png
http://www.sourcecoast.com/components/com_agora/img/members/7708/Firefox-Buttons.png
I placed the plugin order as you said, so that JFCBSystem loads before Jlinked System. Fixed the Tweet button image in both browsers, but the LinkedIn button still lacks the "Share" word in Firefox.
Also, with the plugins arranged thus, the pages load much faster (they must have been slugging it out behind the scene). Safari is superfast, Firefox faster than it was before.
Alas, the plugin arrangement did not solve the errant code appearance at the head of the articles with comments.
Here is a page which when there are comments in Disqus, displays code:
http://writingpractice.com/index.php/why-type-it-up

I am very appreciative of your accuracy and swift responses.

jerjaz
Jerry
useravatar
Offline
27 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: [Resolved] JFBConnect code appearing above article: {JFBCGraph...

Hey Alex
After looking into the plugins and the errant code on the page, I find it appears whether or not Disqus plugins are active. It only disappears when I turn off the Content-JFCBContent plugin. I put it at the beginning and at the end with and without Disqus active, no effect. I purge the cache after each change. I'm baffled
http://writingpractice.com/index.php/why-type-it-up is a good example. Every page does this except the front page where, for some reason, the buttons do not appear at the bottom of the posts. I'd appreciate any more ideas you might have. I have sent you a private message with super admin access.
Be well,

Jerry

jerjaz
Jerry
useravatar
Offline
27 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: [Resolved] JFBConnect code appearing above article: {JFBCGraph...

Jerry,
I think we're both going nuts now current/smile I just clicked on (I think) every page of your site and was unable to see the tag anywhere. I definitely saw it yesterday, but can't recreate it now. I didn't make any changes, so it's not something I did.

The System - Cache plugin saves the page's output, and it's possible the 'bad' stuff was saved from before you re-ordered things. If you were actually hitting the "Purge Expired Cache" button and not the "Clear Cache" button, that would explain it. If you were actually clearing the cache though, it wouldn't.

Either way, please let us know if you can see it on another page, and we'll investigate again. Don't touch anything if you see it though current/big_smile

Hopefully, you're all fixed up, but if not, we will get you there.

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23813 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: [Resolved] JFBConnect code appearing above article: {JFBCGraph...

Hey Alex
Haha, we are not going mad, I posted my discovery in a related thread, but not this one, the original. I think this code appearing on the web page is related to Ryaarm's Open Graph Error post.

This is the problem I mis-identified as a Disqus conflict.
http://www.sourcecoast.com/components/com_agora/img/members/7708/Screen-Shot-2012-01-16-at-10.png
When I turn off my Open Graph in the admin settings, it stops placing the code on the page.
I tried removing the default info:
"title=Writing Practice
type=activity
site_name=Writing Practice
description=Writing practice information, tools and activities to encourage timed writing practice"
but it had no effect on the code appearing on the page (it was still there). When I turn off the radio button: "Use beginning text in article for default" the code goes away. I hope this helps to track it down. My site is http://writingpractice.com
Be well,
Jerry

PS I sent you a message with admin credentials so you could turn it on and off yourself to experiment. Let me know what I can do to help. It is off right now.

jerjaz
Jerry
useravatar
Offline
27 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: [Resolved] JFBConnect code appearing above article: {JFBCGraph...

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

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23813 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: [Resolved] JFBConnect code appearing above article: {JFBCGraph...

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)

Code:


$articleText = strip_tags($articleText);
$articleText = str_replace('{K2Splitter}', '', $articleText);

to

Code:


$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

Want to stay up-to-date on new releases and development efforts?
Follow us on Twitter @sourcecoast and @mandreae

mel
Melissa
useravatar
Online
3545 Posts
Website 
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: [Resolved] JFBConnect code appearing above article: {JFBCGraph...

Mel and Alex,

This fix worked perfectly for me on my site (posted earlier by Melissa).  Thank you guys so much!!

mikcro
Mike
useravatar
Offline
12 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: [Resolved] JFBConnect code appearing above article: {JFBCGraph...

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:
http://extensions.joomla.org/extensions … ation/7215

Best of luck,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23813 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: [Resolved] JFBConnect code appearing above article: {JFBCGraph...

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

jerjaz
Jerry
useravatar
Offline
27 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: [Resolved] JFBConnect code appearing above article: {JFBCGraph...

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

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23813 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: [Resolved] JFBConnect code appearing above article: {JFBCGraph...

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!

trawel
Tracy
useravatar
Offline
39 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: [Resolved] JFBConnect code appearing above article: {JFBCGraph...

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

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23813 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: [Resolved] JFBConnect code appearing above article: {JFBCGraph...

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

jerjaz
Jerry
useravatar
Offline
27 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: [Resolved] JFBConnect code appearing above article: {JFBCGraph...

Jerry,
The style.css file that's being included on the page is:
http://writingpractice.com/templates/yo … /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

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23813 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11498
Total Polls:
0
Total Posts:
48409
Posts today:
8
User Info
 
Total Users:
47473
Newest User:
martinpleon
Members Online:
3
Guests Online:
986

Social Stream
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program