Keyword

Facebook comment box under every news feed?

More
10 years 6 months ago #55400 by Allan
I am making a news site: radiobalkan.net

I would like user to be able to comment each newsfeed and sharing it on Facebook, twiiter etc.

I use the Joomlaworks Simple Rss Feed Reader plugin. In the articles I use loadposition to display 10-15 feeds from each news source in columns.

But how do I place the comment box below each feed?

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #55412 by Lefteris
Replied by Lefteris on topic Facebook comment box under every news feed?
Hi. You need to implement a custom solution. I would just create a template override for the module and then in the loop which prints the item i would add the code for Facebook comments.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #55425 by Allan
Thank you

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #55436 by Lefteris
Replied by Lefteris on topic Facebook comment box under every news feed?
You are welcome.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #55503 by Allan
I can't get it working.

/templates/balkan24/html/mod_jw_srfr/default/default.php

I have tried to put the facebook comment code in the default.php file, but then the comment is displayed under every single feed?

Maybe you could help me out?

The facebook comment box code:
<div class="fb-comments" data-href="example.com/comments" data-numposts="5" data-colorscheme="light">

The modules default.php:
<?php
/**
* @version 3.0
* @package Simple RSS Feed Reader (module)
* @author JoomlaWorks - www.joomlaworks.net
* @copyright Copyright (c) 2006 - 2013 JoomlaWorks Ltd. All rights reserved.
* @license GNU/GPL license: www.gnu.org/copyleft/gpl.html
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

/* Here we call the stylesheet template.css from a folder called 'css' and located at the same directory with this template file. */
$filePath = JURI::root(true).str_replace(JPATH_SITE,'',dirname(__FILE__));
$document->addStyleSheet($filePath.'/css/template.css');

?>
<div class="srfrContainer <?php echo $moduleclass_sfx; ?>">

<?php if($feedsBlockPreText): ?>
<p class="srfrPreText"><?php echo $feedsBlockPreText; ?></p>
<?php endif; ?>

<ul class="srfrList">
<?php foreach($output as $key=>$feed): ?>
<li class="srfrRow<?php echo ($key%2) ? ' srfrRowIsEven' : ' srfrRowIsOdd'; ?>">
<?php if($feedItemTitle): ?>
<h3><a target="_blank" href="<?php echo $feed->itemLink; ?>"><?php echo $feed->itemTitle; ?></a></h3>
<?php endif; ?>

<?php if($feedTitle): ?>
<span class="srfrFeedSource">
<a target="_blank" href="<?php echo $feed->siteURL; ?>"><?php echo $feed->feedTitle; ?></a>
</span>
<?php endif; ?>

<?php if($feedItemDate): ?>
<span class="srfrFeedItemDate"><?php echo $feed->itemDate; ?></span>
<?php endif; ?>

<?php if($feedItemDescription || $feed->feedImageSrc): ?>
<p>
<?php if($feed->feedImageSrc): ?>
<a target="_blank" href="<?php echo $feed->itemLink; ?>">
<img class="srfrImage" src="<?php echo $feed->feedImageSrc; ?>" alt="<?php echo $feed->itemTitle; ?>" />
</a>
<?php endif; ?>

<?php if($feedItemDescription): ?>
<?php echo $feed->itemDescription; ?>
<?php endif; ?>
</p>
<?php endif; ?>

<?php if($feedItemReadMore): ?>
<span class="srfrReadMore">
<a target="_blank" href="<?php echo $feed->itemLink; ?>"><?php echo JText::_('MOD_JW_SRFR_READ_MORE'); ?></a>
</span>
<?php endif; ?>
<div class="clr"></div>
</li>
<?php endforeach; ?>

</ul>

<?php if($feedsBlockPostText): ?>
<p class="srfrPostText"><?php echo $feedsBlockPostText; ?></p>
<?php endif; ?>

<?php if($feedsBlockPostLink): ?>
<p class="srfrPostTextLink"><a href="<?php echo $feedsBlockPostLinkURL; ?>"><?php echo $feedsBlockPostLinkTitle; ?></a></p>
<?php endif; ?>

</div>

<div class="clr"></div>

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #55507 by Lefteris
Replied by Lefteris on topic Facebook comment box under every news feed?
How else it could be displayed? Facebook comments require a URL to work. Since you have a list of links you will get a facebook comment for each link.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #55510 by Allan
What I mean is, if I comment a picture and write :"That is nice" then my comment "That is nice" is also under the news: 50 people killed today.

Get it?

The same comment is under every news.

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #55513 by Lefteris
Replied by Lefteris on topic Facebook comment box under every news feed?
No i don't get it. First of all your site is locked so i cannot see exactly what you mean. Secondly, you cannot comment on a picture. You can only comment on pages. Facebook comments are tied with a page URL. This how it works. You need to put the correct URL to each comment box you generate. I am talking about the data-href attribute of each comment box.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #55635 by Allan
I would like to ask you, if you, for a small amount of money, would try to make a custom soulution?

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #55650 by Lefteris
Replied by Lefteris on topic Facebook comment box under every news feed?
No. Unfortunately we do not take over customizations. Maybe some other member of this forum is willing to do so.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum