Page 1 of 2

Issue - JComments & Phoca Gallery/ Cooliris - RSS Feed

Posted: 02 Dec 2009, 23:51
by harris73
Hi

I've gone thru' the forum and I don't believe this is here.

I've used Phoca Gallary 2.5.8 and I'm trialling 2.6.0 Beta. JComments - version 2.1.0.0.

If I use the built-in Phoca comment tool or use JComments without RSS then when I click the PickLens icon in the Gallery - I get Cooliris 3D-wall. When I enable RSS then I get the message "this feed has no items".

What I've also noticed is:

When it works the URL is: http://www.cooliris.com/tab/#cs=11&url= ... ry%2F7.rss

when RSS is enabled then the URL is: http://www.cooliris.com/tab/#cs=11&url= ... Dcomponent

I'm no expert when it comes to HTML or PHP etc but when debugging in IE8, I've noticed that when RSS is enabled - the following line is added on the web page:

<link href="http://www.oldravianassociation.com/joo ... =component" rel="alternate" type="application/rss+xml" title="Category 1950's" />

I think this interferes with your line:

</script>
<link id="phocagallerypiclens" rel="alternate" href="/joomla/images/phocagallery/7.rss" type="application/rss+xml" title="" /><script type="text/javascript" src="http://lite.piclens.com/current/piclens ... ipt><style type="text/css">
.mbf-item { display: none; }
#phocagallery .mbf-item { display: none; }
</style>
<script type="text/javascript">

which I tracked down in file renderfront.php.

When piclens.js is run (line 877 to 885):
// find the RSS feeds on this page, and return an array
indexFeeds : function () {
var linkTags = document.getElementsByTagName("link");
var feeds = [];
for (var i = 0; i != linkTags.length; ++i) {
var link = linkTags, type = link.getAttribute("type");
if (type == "application/rss+xml" || type == "text/xml") {
feeds.push({ title: link.getAttribute("title"), url: link.getAttribute("href") });
}
}
return feeds;
},

I guess things get a bit confused.

Can you recommend any changes I can make to the code to keep RSS enabled and have this not occuring?

Regards
Harris

Re: Issue - JComments & Phoca Gallery/ Cooliris - RSS Feed

Posted: 03 Dec 2009, 15:52
by Jan
Hi, I am testing it and get no such problem, did you install the new plugins for JComments (which will be available in JComments 2.1.1.0)?
see:
https://www.phoca.cz/download/category/1 ... -component

EDIT: I see it now if small icon is clicked (not the image) I will take a look at it.

Jan

Re: Issue - JComments & Phoca Gallery/ Cooliris - RSS Feed

Posted: 03 Dec 2009, 16:09
by harris73
Thanks Jan.

Regards
Harris

Re: Issue - JComments & Phoca Gallery/ Cooliris - RSS Feed

Posted: 03 Dec 2009, 16:11
by Jan
I have added specific name to code, so only the Phoca Gallery RSS can be run.

This should be fixed in 2.6.0 stable.

Jan

Re: Issue - JComments & Phoca Gallery/ Cooliris - RSS Feed

Posted: 03 Dec 2009, 16:22
by harris73
Great, thanks Jan.

When will that be available or I try something in the interim?

Regards
Harris

Re: Issue - JComments & Phoca Gallery/ Cooliris - RSS Feed

Posted: 03 Dec 2009, 16:45
by Jan
No idea :(

Re: Issue - JComments & Phoca Gallery/ Cooliris - RSS Feed

Posted: 03 Dec 2009, 16:50
by harris73
No problem.

Sorry, I can't seem to type :(

Can you recommend some changes that I can make to the code to make it work?

Regards
Harris

Re: Issue - JComments & Phoca Gallery/ Cooliris - RSS Feed

Posted: 04 Dec 2009, 14:22
by harris73
Hi Jan

Just to let you know that I've resolved the problem - I amended the piclens.js script and everythings great - thanks. :D

Before signing off - just want to say that this is a fantastic product.

Regards
Harris

Re: Issue - JComments & Phoca Gallery/ Cooliris - RSS Feed

Posted: 06 Dec 2009, 22:50
by Jan
Ok, this should be solved in 2.6.0 which has been released.

Re: Issue - JComments & Phoca Gallery/ Cooliris - RSS Feed

Posted: 07 Dec 2009, 02:07
by harris73
Great, thanks Jan - I'll give this a try.

Thanks again.

Regards
Harris