Topic-icon Share a Jomsocial Post

Active Subscriptions:

None
8 years 10 months ago #62171 by sitiemozionali
I've seen on forum the solutions proposed by mel for share o jomsocial post

can to be a little help for edit my action.php


ty ty ty and ty :-)


In /components/com_community/templates/jomsocial/layouts/stream/action.php around line 57, add the following few lines of PHP code after the anchor tag for the joms-button-liked link:
Code:
<?php /* SourceCoast - Add JFBCShare button */
$link = CRoute::getExternalURL('index.php?option=com_community&view=profile&userid='.$act->actor.'&actid='.$act->id);
echo '{JFBCShare href='.$link.'}';
?>
It should look like this once added:
Code:

<?php if ($allowLike) { ?>
<?php $userLiked = $act->userLiked == COMMUNITY_LIKE; ?>
<a href="javascript:"
class="joms-button--liked<?php echo $userLiked ? ' liked' : '' ?>"
data-lang-like="<?php echo JText::_('COM_COMMUNITY_LIKE'); ?>"
data-lang-unlike="<?php echo JText::_('COM_COMMUNITY_UNLIKE'); ?>"
onclick="joms.api.stream<?php echo $userLiked ? 'Unlike' : 'Like' ?>('<?php echo $act->id; ?>');">
<svg viewBox="0 0 16 16" class="joms-icon">
<use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-thumbs-<?php echo $userLiked ? 'down' : 'up' ?>"></use>
</svg>
<span><?php echo JText::_($userLiked ? 'COM_COMMUNITY_UNLIKE' : 'COM_COMMUNITY_LIKE'); ?></span>
</a>
<?php /* SourceCoast - Add JFBCShare button */
$link = CRoute::getExternalURL('index.php?option=com_community&view=profile&userid='.$act->actor.'&actid='.$act->id);
echo '{JFBCShare href='.$link.'}';
?>
<?php } ?>
The topic has been locked.
Support Specialist
8 years 10 months ago #62176 by mel
Replied by mel on topic Share a Jomsocial Post
Please see my PM for request for FTP access.
The topic has been locked.
Support Specialist
8 years 10 months ago #62183 by mel
Replied by mel on topic Share a Jomsocial Post
Please see the change that I made to /httpdocs/components/com_community/templates/jomsocial/layouts/stream/actions.php. At line 110, I added the block of code from our Common Support Questions for "How do I add Like / Share buttons to JomSocial feeds".

To test, I created a user with my FB credentials and posted a status to my own feed. It showed properly in my FB feed. Please test and let me know if you have any questions.

-Melissa
The topic has been locked.
Active Subscriptions:

None
8 years 10 months ago #62199 by sitiemozionali
ty Mel for ur great assistence!

i stay test it good day for u :-)
The topic has been locked.