Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: {Jcomments on} showing in blog feed
Pages: [1]   Go Down
  Print  
Author Topic: {Jcomments on} showing in blog feed  (Read 4610 times)
0 Members and 1 Guest are viewing this topic.
lkron
Newbie
*

Karma: 0
Offline Offline

Posts: 4


« on: November 12, 2010, 02:44:32 »

Hi,

We added Jcomments to Joomla 1.15.17.  It seems to work well.  However, on our blog page the Ninja RSS feed extension now sends out blog postings with {jcomments on} at the beginning of the RSS text.  This isn't my blog but you see the same thing at this site:  http://www.theawayend.net/index.php?option=com_content&view=archive&Itemid=93 then part way down the page it disappears.  I see this on quite a number of sites were it seems like the person hosting the blog has figured out how to remove the tag.

How do we remove the {jcomments on} tag from the RSS feed?

Thanks,
Larry
Logged
lkron
Newbie
*

Karma: 0
Offline Offline

Posts: 4


« Reply #1 on: November 12, 2010, 03:11:53 »

Is it as simple as not turning on the commenting until after the post to the RSS feed?
Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #2 on: November 12, 2010, 15:18:40 »

What version of JComments you're using?
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
lkron
Newbie
*

Karma: 0
Offline Offline

Posts: 4


« Reply #3 on: November 12, 2010, 21:03:28 »

JComments 2.2.0.2 [12/09/2010]
Logged
lkron
Newbie
*

Karma: 0
Offline Offline

Posts: 4


« Reply #4 on: November 19, 2010, 02:03:44 »

Any further insights to this?

Our workaround seems to be not turning comments on until after the posting has hit the rss feed.  However, sometimes we time our postings for the future and it ruins the automation aspect to have to remember to go in to a posting that happened automatically and then turn on comments.
Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #5 on: November 22, 2010, 17:58:04 »

Open /plugins/system/jcomments.php, find code:

Code: (php)
function onAfterRender()
{
and add next code:

Code: (php)
$option = JRequest::getCmd('option');
if ($option == 'com_content') {
$document = & JFactory::getDocument();
if ($document->getType() == 'feed') {
$buffer = JResponse::getBody();
$buffer = preg_replace('#{jcomments\s+(off|on|lock)}#is', '', $buffer);
JResponse::setBody($buffer);
}
}
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
l697482
Newbie
*

Karma: 0
Offline Offline

Posts: 6


Email
« Reply #6 on: September 09, 2012, 07:20:22 »

Open /plugins/system/jcomments.php, find code:

Code: (php)
function onAfterRender()
{
and add next code:

Code: (php)
$option = JRequest::getCmd('option');
if ($option == 'com_content') {
$document = & JFactory::getDocument();
if ($document->getType() == 'feed') {
$buffer = JResponse::getBody();
$buffer = preg_replace('#{jcomments\s+(off|on|lock)}#is', '', $buffer);
JResponse::setBody($buffer);
}
}

It DOESN'T WORK. Please, write excatly how to do this. Joomla 2,5.

PS
You even wrote a wrong directory
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: {Jcomments on} showing in blog feed
 
Jump to: