× Joomla Facebook Connect support forum

Topic-icon Regsitration for shows even after log in with facebook

Active Subscriptions:

None
10 years 8 months ago #34884 by nitmen1
Dear Alex,

your last reply is not clear to me kindly check the photos there are two photos one screen shot of my website profile page without jfb comment . Second one how i want the page to look like.I want to put jfb comment box after every post .i am using jom social , after evry post there is jomsocial comment and like option instead of this or along with this i want jfb comment also to show
File Attachment:


File Attachment:
The topic has been locked.
Support Specialist
Nitish,
Thanks for your patience and for the picture, it helped us determine what you were looking for. You didn't mention the JomSocial version you are using, but I believe these steps should work for any release between about JomSocial 2.2-2.8.

Hopefully, the steps below are pretty clear, but if not, let us know.
* Copy /components/com_community/templates/default/activities.index.php to /templates/<YOUR_TEMPLATE>/html/com_community/activities.index.php (creating any directories as necessary)
** This creates a 'template override' so that any changes you make to that file won't be overridden if you update JomSocial
* Edit the file you just created in the /templates/ folder
* Search for the following code (at line 258 in my file):
</div>
                                                <?php endif; ?>
                                         </div>
                                 <?php } ?>
                         </div>
                         <!-- /NEWS FEED DATE, ICON & ACTIONS -->
Update that to as below, adding the {JFBCComments..} tag:
</div>
                                                <?php endif; ?>
                                         </div>
                                 <?php } ?>
                                 {JFBCComments width=300}
                         </div>
                         <!-- /NEWS FEED DATE, ICON & ACTIONS -->
I hope that helps, but if not, let us know.

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

None
10 years 8 months ago #34897 by nitmen1
Dear Alex,

thanks for your support it really looks cool,but in ur reply one thing i did not understand its higlighted
" Hopefully, the steps below are pretty clear, but if not, let us know.
* Copy /components/com_community/templates/default/activities.index.php to /templates/<YOUR_TEMPLATE>/html/com_community/activities.index.php (creating any directories as necessary) "

Can u explain little bit more about the highlighted wod. should i create a folder and then copy that file ...?

Regards
Nitish Menon
The topic has been locked.
Support Specialist
You need to copy the /components/com_community/templates/default/activities.index.php file to /templates/<YOUR_TEMPLATE>/html/com_community/activities.index.php

The directory /templates/<YOUR_TEMPLATE> definitely exits, because that's your site's template. However, the following directories may or may not exist yet:
/templates/<YOUR_TEMPLATE>/html/
/templates/<YOUR_TEMPLATE>/html/com_community
If they don't exist, you'll need to create them before you can copy the activities.index.php file into that final directory of /templates/<YOUR_TEMPLATE>/html/com_community.

I hope that helps, but if not, let us know.

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

None
10 years 8 months ago #34953 by nitmen1
Dear Alzander,

I made the changes as per your instruction.But when ever i comment on a particular post it shows in every post in my website.For example
my friend Rakesh messaged me on my website and i replied him using facebook comment but that comment is showing every where..I want people to able to comment on a particular post. When we comment post gets updated in facebook but instead of showing the post we commented on it shows Kindly check the photos. The photo comment6 shows the where and on which post i commented Photo comment 7 & comment 8 shows the result of that comment. Iis showing every where i have facebook comment on my website

I want this comment to be shown under jomsocial photo view also >For example i have aded photos in to my website when i or some one view this photo or video i have uploaded i want them to be able to comment on this photo and video using facebook comment please check photo " comment9 " & " comment 10 "
File Attachment:


File Attachment:




File Attachment:


File Attachment:


File Attachment:



for this

Thank you

Regards
Nitish Menon
The topic has been locked.
Support Specialist
The comment box works by letting the user comment on a specific URL. Unfortunately, each post in the JomSocial activity stream doesn't have a specific URL where you can view just that update.

You could update the JFBCComment tag to make it so it links to a user's profile by updating the {JFBCComments} tag I provided above to look like:
{JFBComments width=300 href=<?php echo CRoute::_('index.php?option=com_community&view=profile&userid='.$act->actor.'&act='.$act->id); ?> }
That will make each comment box unique for update, and when posted to Facebook, will link to the user's profile.

I hope that helps, but if you need anything else, just let us know.

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

None
10 years 8 months ago #34962 by nitmen1
Dear Alzander,

after changing the code my jfbcomment is not working properly it only shows code on website.Kindly check screenshot
File Attachment:
The topic has been locked.
Support Specialist
There's a missing C in the JFBCComments tag above. Please update it to:
{JFBCComments width=300 href=<?php echo JUri::base() . CRoute::_('index.php?option=com_community&view=profile&userid='.$act->actor.'&act='.$act->id); ?> }
That code adds the extra C and also uses JUri::base() to include the full domain of your site in the URL.

Please test that, and hopefully that will get you going.

Alex
The topic has been locked.