Topic-icon Social Stream link to post

Active Subscriptions:

None
9 years 4 months ago #49866 by cperrot
There was an support entry www.sourcecoast.com/forums/jfbconnect/jf...-stream-link-to-post.

This is my take on it in Joomla 3.x and JFBConnect 6.2.4.

<joomla-folder>/components/com_jfbconnect/libraries/provider/facebook/channel/page.php

find this line
$post->updatedTime = (array_key_exists('updated_time', $data)?$data:"");
and add this after
$post->fbArticleLink = $data[0];

***** begin note *****
there is probably another more reliable place to take the link from.
for my purpose this $data[0]; sufficed.
***** end note *****

//do the same for
<joomla-folder>/components/com_jfbconnect/libraries/provider/facebook/channel/group.php
if you need it.

<joomla-folder>/media/sourcecoast/themes/scsocialstream/default/facebook.php

find this line
if ($stream->options->get('show_date'))
and change
echo '<div class="date">' . $date . '</div>';
to this
echo '<a href="' . $this->fbArticleLink . '" target="_blank"><div class="date">' . $date . '</div></a>';

This is so easily implemented that I would have expected this to be in the module with an option to switch it on.

Cheers

Cedric
The topic has been locked.
Support Specialist
9 years 4 months ago #49880 by mel
Replied by mel on topic Social Stream link to post
SCSocialStream is a relatively new module, so we are still improving the functionality of the module based on user input, like this. We already have this as an issue in our tracker to address in the next release.

Thanks
-Melissa
The topic has been locked.