Issue - JComments & Phoca Gallery/ Cooliris - RSS Feed

Phoca Gallery - image gallery extension
harris73
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 02 Dec 2009, 23:27

Issue - JComments & Phoca Gallery/ Cooliris - RSS Feed

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post 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
If you find Phoca extensions useful, please support the project
harris73
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 02 Dec 2009, 23:27

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

Post by harris73 »

Thanks Jan.

Regards
Harris
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post 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
If you find Phoca extensions useful, please support the project
harris73
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 02 Dec 2009, 23:27

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

Post by harris73 »

Great, thanks Jan.

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

Regards
Harris
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

No idea :(
If you find Phoca extensions useful, please support the project
harris73
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 02 Dec 2009, 23:27

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

Post 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
harris73
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 02 Dec 2009, 23:27

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

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

Ok, this should be solved in 2.6.0 which has been released.
If you find Phoca extensions useful, please support the project
harris73
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 02 Dec 2009, 23:27

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

Post by harris73 »

Great, thanks Jan - I'll give this a try.

Thanks again.

Regards
Harris
Post Reply