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

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Bug-reports    Topic: RSS feed issues (topic renamed)
Pages: [1]   Go Down
  Print  
Author Topic: RSS feed issues (topic renamed)  (Read 2900 times)
0 Members and 1 Guest are viewing this topic.
AlanR
Newbie
*

Karma: 1
Offline Offline

Posts: 19


Email
« on: April 15, 2010, 22:54:13 »

I'm trying to get the RSS feeds working for comments, the link is not correct (incomplete). I had noticed before that all the files (at least the ones I've looked at before) have unrecognizable characters in the comments. I use BBEdit and I always get a warning when I open them. I strip the non-ascii characters out and re-save the file as UTF-8 no BOM but that means I can't read the comment and I've yet to find a way I can.

This is typical

Quote
/*
*
* Display RSS feed and/or Refresh buttons after comments list
*
* ŒÚÓ·‡Ê‡ÂÚ ÒÒ˚ÎÍÛ Ò ËÍÓÌÍÓÈ Ì‡ RSS-ÎÂÌÚÛ Ë/ËÎË ÒÒ˚ÎÍÛ "Œ·ÌÓ‚ËÚ¸ ÒÔËÒÓÍ ÍÓÏÏÂÌÚ‡Ë‚"
* ÔÓÒΠÒÔËÒ͇ ÍÓÏÏÂÌÚ‡Ë‚ ÚÂÍÛ˘Â„Ó Ó·˙ÂÍÚ‡. —Ò˚Î͇ RSS ÓÚÓ·‡Ê‡ÂÚÒˇ ÚÓθÍÓ ‚ ÚÓÏ ÒÎÛ˜‡Â,
* ÂÒÎË ‚ ̇ÒÚÓÈ͇ı ÍÓÏÔÓÌÂÌÚ‡ ‡Á¯ÂÌ ˝ÍÒÔÓÚ ÍÓÏÏÂÌÚ‡Ë‚ ‚ RSS.
*
*/

In this case (tpl_tree.php) I'd really like to be able to read the comments, they seem like they might help

I'm using 2.1.0.0

I don't think there's anything wrong in jcomments (at least not yet) I just don't know where it's trying to pick up the link

   if ($this->getVar('comments-rss', 1) == 1) {
   $link = $this->getVar('rssurl');
   $lines[] = '<a class="rss" href="'.$link.'" target="_blank">'.JText::_('RSS').'</a>';
}

rssurl is located where? Is it system wide? I can't seem to enable something which gives rssurl a value.
« Last Edit: April 18, 2010, 17:28:30 by AlanR » Logged
smart
Administrator
Hero Member
*****

Karma: 146
Offline Offline

Gender: Male
Posts: 2579



WWW
« Reply #1 on: April 16, 2010, 00:28:06 »

1. This non-ascii symbols is russian text (I'm russian and for russian users I leave these comments). This text is comments and doesn't affect anything.
2. What do you mean saying about incomplete RSS link? Could you show me some examples?
Logged

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

Karma: 1
Offline Offline

Posts: 19


Email
« Reply #2 on: April 16, 2010, 02:43:34 »

2. What do you mean saying about incomplete RSS link? Could you show me some examples?
I figured it was Russian and only a description of the particular function, thanks for the confirmation.

The url is simply the web site address. http://somesite.com/ and nothing more.

$link is empty.
Logged
smart
Administrator
Hero Member
*****

Karma: 146
Offline Offline

Gender: Male
Posts: 2579



WWW
« Reply #3 on: April 16, 2010, 02:47:56 »

The 'rssurl' variable initialized in /components/com_jcomments/jcomments.class.php:

Code: (php)
$tmpl->addGlobalVar('rssurl', JCommentsFactory::getLink('rss', $object_id, $object_group));

and JCommentsFactory::getLink returns it as:

Code: (php)
case 'rss':
if (JCOMMENTS_JVERSION == '1.5') {
return JoomlaTuneRoute::_('index.php?option=com_jcomments&amp;task=rss&amp;object_id='.$object_id.'&amp;object_group='.$object_group.'&amp;tmpl=component');
}
return $mainframe->getCfg('live_site') . '/index2.php?option=com_jcomments&amp;task=rss&amp;object_id='.$object_id.'&amp;object_group='.$object_group.'&amp;no_html=1';
break;

Do you use Joomla 1.5? Do you use any 3rd party SEF extension?
Logged

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

Karma: 1
Offline Offline

Posts: 19


Email
« Reply #4 on: April 16, 2010, 04:37:32 »

Do you use Joomla 1.5? Do you use any 3rd party SEF extension?

Joomla 1.5.15. No SEF on my local version, it's on in the server version but I'm working locally right now, the web server shows an incomplete link as well when I hover over the RSS link on the comment section. I can find the problem but I was looking for an easy fix.
« Last Edit: April 16, 2010, 04:39:22 by AlanR » Logged
AlanR
Newbie
*

Karma: 1
Offline Offline

Posts: 19


Email
« Reply #5 on: April 16, 2010, 04:50:41 »

Just to make things a little more clear here's a line from the html source (in the browser).

<div id="comments"><h4>Comments<a class="rss" href="/joo-serv/" title="RSS feed for comments to this article" target="_blank">&nbsp;</a><a class="refresh" href="#" title="Refresh comments list" onclick="jcomments.showPage(72,'com_content',0);return false;">&nbsp;</a></h4>
<div id="comments-list" class="comments-list">
        <div class="even" id="comment-item-7"><!-- <div class="rbox"><div class="rbox_tr"><div class="rbox_tl"><div class="rbox_t">&nbsp;</div></div></div><div class="rbox_m"> -->
<div class="rbox"><div class="rbox_t"></div><div class="rbox_m">


It's only picking up the directory, not my local IP address.

I expect...

<a class="rss" href="http://192.168.1.149/joo-serv/and-something-here" title="RSS feed for comments to this article" target="_blank">&nbsp;</a>

Logged
AlanR
Newbie
*

Karma: 1
Offline Offline

Posts: 19


Email
« Reply #6 on: April 16, 2010, 18:40:25 »

I installed a separate fresh copy of Joomla and left it basic (no changes), then I installed jcomments, the only plugin /component and RSS works as expected.

I modified the appearance of jcomments pretty heavily on the real site http://owensdaniels.com so now I just have to find out what I changed to break RSS. Everything else works just fine, RSS was my last thing to do.

It should be pretty easy now since I can compare one against the other.

I really like jcomments and I see you have put a LOT of work into it, I'm just beginning to understand the underlying php structure.

If I have more questions I'll post back

Thanks



Logged
smart
Administrator
Hero Member
*****

Karma: 146
Offline Offline

Gender: Male
Posts: 2579



WWW
« Reply #7 on: April 16, 2010, 18:57:49 »

If I have more questions I'll post back
You are always welcome!
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Bug-reports    Topic: RSS feed issues (topic renamed)
 
Jump to: