× Joomla Facebook Connect support forum

Topic-icon jomsocial Comment and like

Active Subscriptions:

None
14 years 2 days ago #23511 by donsco
I'm trying to get the facebook comment and like button to work in my jomsocial template but they do not show up at all. I have looked all over and cannot find anything on this. can you help me and tell me how do i get this to show? PLEASE AND THANK YOU
The topic has been locked.
Active Subscriptions:

None
14 years 2 days ago #23521 by donsco
Replied by donsco on topic jomsocial Comment and like
Can i get some help on this. can it be done or not. This was the whole reason why i bought this component. So likes and comment can be posted back to facebook...
The topic has been locked.
Support Specialist
14 years 2 days ago #23530 by alzander
Replied by alzander on topic jomsocial Comment and like
Don,
I just went to a random user's profile on your site and couldn't see anywhere that the Comment or Like box was supposed to be. Can you tell me:
* Do I need to be logged in to see them?
* How are you trying to add them to the page? That will help us figure out where the possible issue lies.

Thanks,
Alex
The topic has been locked.
Support Specialist
14 years 2 days ago #23531 by alzander
Replied by alzander on topic jomsocial Comment and like
I just re-read your top post and see you said you added them to the JomSocial template. I'm assuming you edited a file and added the {JFBCComments} and {JFBCLike} tags. If so, also check that you're editing the correct file. Mainly, you should be creating a template override by copying the JomSocial template file you're editing to /templates/<YOUR_TEMPLATE>/html/com_community/<file>.php
Then, edit it there.

If you don't see the widgets still, try adding extra text, like "TEST HERE" around the tags. That should definitely appear on the page. If not, you're likely editing the wrong file or have caching enabled.

Alex
The topic has been locked.
Active Subscriptions:

None
14 years 2 days ago #23532 by donsco
Replied by donsco on topic jomsocial Comment and like
I'm sorry you need to be logged in to see the comments and like box.... I think i have everything set correctly.... I was not trying to put the tags in the file. I am under the assumption that when i enable the jomsocial to wall plugin that it would work am i right in saying that. if so it is not working for me. i'm trying to find out how to get it to work....
The topic has been locked.
Support Specialist
14 years 1 day ago #23541 by alzander
Replied by alzander on topic jomsocial Comment and like
Sounds like there's some confusion, so let me explain :)

The Post To Wall plugin will post status updates that users make to JomSocial to their Facebook wall as well. It does not automatically add a Comment or Like button to their profile.

To add the Comment box or Like button to a user's profile page, you'll need to either use the JFBCLike or JFBCComments modules and have them enabled in a position that would appear on those pages. Alternatively, you can edit the template files for JomSocial and add the {JFBCLike} and {JFBCComments} tag wherever you want each to display. This second method is more flexible as you can target individual pages very well and can put the widgets in the page wherever you want.

If you are confused on how to do any of this, or I'm mis-understanding what you're looking to do, definitely let us know and we'll help how we can!

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

None
14 years 1 day ago #23547 by donsco
Replied by donsco on topic jomsocial Comment and like
I thought that is what i had to do was edit the template file and add the widget. I do not have to much experience with php files. I looked through the files in jomsocial and could not for the life of me figure out which files i needed to edit i'm using jomsocial 2.6. If at all possible can you tell me which files i need to edit and were in the files i need to add the widget, i can follow direction real well... Please and Thank You....
The topic has been locked.
Support Specialist
14 years 1 day ago #23553 by alzander
Replied by alzander on topic jomsocial Comment and like
Don,
No problem with not being a PHP expert. That's what we're here for :)

We can gladly give you some pretty step-by-step instructions to get you close to where you need to be (some templates are different, so we likely won't be exact). However, I'm still unsure where you want to add the buttons. Can you tell me:
* The non-SEF URL of a page you'd like the widgets to appear? Just the index.php?option... portion is necessary
* Where on that page you'd like the widgets to appear

With that, I think we can help get you going!

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

None
14 years 1 day ago #23558 by donsco
Replied by donsco on topic jomsocial Comment and like
First you have to be logged in to see where i would like the comment and like to show on the recent activity page bookfaceradio.com/index.php?option=com_c...frontpage&Itemid=231 you will see on Don Scott post the words like and comment.

Also on the video page where you can make comments bookfaceradio.com/index.php?option=com_c...ideoid=52&Itemid=231 this where i would like for them to show up...

Is this enough info for you to help me.
The topic has been locked.
Support Specialist
14 years 21 hours ago #23566 by alzander
Replied by alzander on topic jomsocial Comment and like
Don,
Completely new question for us, so thanks for your patience. We've determined how to add the Like and Comment box. I'm going to give directions for the Like only right now, though the commenting is similar. The code below will add a unique Like button to each activity stream update posted. When "Liked", the link that would appear in a users FB wall will link to the original user's profile that posted the stream update in JomSocial. Unfortunately, there's no way to link directly to the activity stream update, so hopefully the link to the user's profile is good enough for now. If you have suggestions on where you'd prefer the link in FB to go, let me know.

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 201 in my file):
<!--	<?php if($act->userLiked!=COMMUNITY_LIKE) { ?>
						&#x2022; <a id="like_id<?php echo $act->id?>" href="#like" onclick="jax.call('community','system,ajaxStreamAddLike', '<?php echo $act->id; ?>');return false;"><?php echo JText::_('COM_COMMUNITY_LIKE');?></a>
					<?php } else { ?>
						&#x2022; <a id="like_id<?php echo $act->id?>" href="#unlike" onclick="jax.call('community','system,ajaxStreamUnlike', '<?php echo $act->id; ?>');return false;"><?php echo JText::_('COM_COMMUNITY_UNLIKE');?></a>						
					<?php } ?>-->
Update that to as below, adding the {JFBCLogin..} tag on the second line, the <!-- on the next and the --> at the end :
<!--	<?php if($act->userLiked!=COMMUNITY_LIKE) { ?>
                    {JFBCLike href=<?php echo CRoute::_('index.php?option=com_community&view=profile&userid='.$act->actor.'&act='.$act->id); ?>}
<!--
						&#x2022; <a id="like_id<?php echo $act->id?>" href="#like" onclick="jax.call('community','system,ajaxStreamAddLike', '<?php echo $act->id; ?>');return false;"><?php echo JText::_('COM_COMMUNITY_LIKE');?></a>
					<?php } else { ?>
						&#x2022; <a id="like_id<?php echo $act->id?>" href="#unlike" onclick="jax.call('community','system,ajaxStreamUnlike', '<?php echo $act->id; ?>');return false;"><?php echo JText::_('COM_COMMUNITY_UNLIKE');?></a>						
					<?php } ?>-->
-->
I'm going to skip the code for the comments now to focus on one thing at a time. Also, with Comments, there's not an easy way I can think of to 'drop-down' the comment box like it's done in JomSocial. Therefore, the comment box for FB will be there for every post, and that may be a little overwhelming.

So, start with the Likes and see if that works for you and we can go from there.

Thanks,
Alex
The topic has been locked.