× Joomla Facebook Connect support forum

Topic-icon Facebook Comment Box under the Existing Jcomments coamments

Active Subscriptions:

None
Hi I am trying to add the Facebook Comment Box under the Existing Jcomments comments (my idea is to remove the Jcomments submition form, but keep the comments of it).

So in the place of the Jcomments form i want to add the facebook comment box, I know that i can easiky do that by adding a coomand like this: {JFBCComments width=550 } in the file components/com_jcomments/tpl/default/tpl_form.php which has the actual Jcomments form,

but the issue is this: this way when a user opens the same article from two different paths (example: the same link inside tha site can have the following two urls:
/index.php?option=com_content&view=article&id=36443%3A2011-09-30-05-34-24&catid=37%3Aellada&Itemid=4
/index.php?option=com_content&view=article&id=36443&Itemid=4

Both of them are the same article, but the Facebook comment box cant understand this and so it doesnt show the commnets from one article to the other.


So is there any way for me to fix this issue?
The topic has been locked.
Support Specialist
Stiffler,
I'm not too familiar with JComments, but the below may work for you. I'm really not sure why the 2 different URLs are being generated by Joomla, but the code below will hopefully help you to create a unique URL for each link:
{JFBCComments width=550 href=<?php echo JRoute::_('index.php?option=com_content&view=article&id='.JRequest::getInt('id')); ?>}
The above is basically just trying to create the URL for the current page using some of the information from the URL, but doing so dynamically, so that you can add it to the template file like you're trying.

Hope that helps, but if you have any questions, or run into other issues, let us know!
Alex
The topic has been locked.
Active Subscriptions:

None
Ah thank you, I will try that.
I have also a serious problem. My site has lots of visitors, so it is absolutely necessary for me to use the build in page cache plugin of joomla.
But when I enable that plugin, then the comments box doesnt work and just shows the default {JFBCComments ...}

Is there any way to fix this issue?
The topic has been locked.
Support Specialist
Make sure the System Cache plugin is ordered after/higher than the JFBCSystem plugin. That should be all you need.

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

None
Both suggestions solved my problems

Alex, thank you again for everything

George
The topic has been locked.
Support Specialist
George,
Glad to hear we got you going. As always, if you need anything else, just let us know!

Alex
The topic has been locked.