× Joomla Facebook Connect support forum

Topic-icon Send box (when clicking on send) displaying underneath comment box

Active Subscriptions:

None
Hi, I have positioned my Like and Send buttons above the comment box (I use the modules). When I click on the send button, the Send box (describing the page and where you enter emails or groups you want to send the page to) appears underneath the comment box. How can I make it appear above the comment box so it's readable?
The topic has been locked.
Support Specialist
Those modules are loaded in iFrames, and when they overlap, weird things can happen. You can try the following, but I can't guarantee it will work. In your template's CSS file, try adding the following style, which should indicate that the Like/Send modules should be 'above' any other modules, even when they expand:
.jfbclike, .jfbcsend {
z-index: 100;
}

Keep us posted, and hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
Actually I am using the plugin now and not the modules anymore... How can I get the Like & Send buttons on top of the comment box rather than underneath? Is there a way to have a title on top of the like buttons like you can do with the modules?

Thanks
The topic has been locked.
Support Specialist
There's no easy way to add text above the Content Plugin widgets. They behave differently than the modules, and so it's a little more difficult to have a pre and post-text simply because we'd have to have parameters for all the different types of views and configurations, whereas the modules are generally pretty specific to an area of the site.

As for the ordering of the Like & Comments, you'll have to make a minor modification to our code to make that happen. Honestly, after looking at it, I agree that the Like box should come above the comments, at least at the bottom of the page. The change below will also re-order the widgets when at the top of a page, but don't think many/any people put the comments on top of an article. Anyways, here's the change:
In the /plugins/content/jfbccontent.php file, at line 148, you'll see an 'if' statement with a big block of text until line 161 inside { and }. Below that is another big 'if' block. Just swap the order of these two sections and it will swap the order of the Like & Comments.

Hope that's clear, but if not, just let us know. I put an issue in our tracker to re-order these as well, as I think that's better overall.. but we'll have to discuss internally, so no guarantees that this will be in the next release.

Keep us posted on your results, and good luck,
Alex
The topic has been locked.
Active Subscriptions:

None
Dear Alex, thanks for your prompt reply!
I did the change and it works fine. A little problem though, the buttons are too close to the comment box (almost underneath it) check it out here: off2colombia.com/bogota-events how can I had space between the 2 plugins?

Another question: I lost all the comments and likes that I had using the modules when I changed to using the plugin. Is there any way to retrieve this database? Where does this info go?
The topic has been locked.
Support Specialist
To add a space, there's a few easy options. The best/easiest is likely to simply add the following to your stylesheet:
.jfbclike {
margin-bottom:10px;
}

Another alternative is, in the same file you modified before, in the same section, you'll see a line of code that starts with $likeText = "{JFBCLike ... and goes on for a few lines. At the end of this, simply add a line break, so the line should end like: '}<br/>';

As for the comments themselves, they are stored on Facebook's servers. Each comment is associated with a specific URL on your page. When using the JFBCComments module, we will use whatever the current URL is (unless a specific one is specified in the parameters). With the content plugin though, we know we're in an article, so we try to determine the canonical URL for that article (which will work from blog views, section views, and the article itself). Generally, these the module and content plugin should create the same URL, but there are cases (depending on the configuration of your site), where they're different.

If you really need to save a few comments, you may have to enable the 'old' module on just those pages and tell the content plugin to exclude those articles. Then, going forward, use the content plugin on all new articles. Unfortunately, Facebook doesn't have a way to migrate comments from one URL to another.

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

None
Dear Alex. I have tried both ways, unfortunately it didn't work...
Strangely it is OK for 1 second and then the box moves up like if something in the CSS was forcing to take 10 pixels off between the 2 plugins...
Check it here : off2colombia.com/bogota-activities (and refresh)

Any idea?
The topic has been locked.