JComments compatibility

More
15 years 2 months ago #11554 by soyjok
Hi everyone!
I will call this a bug cause I'm not sure what else I could call it.

Joomla 1.5.20
FLEXIcontent version 1.5.3c stable (r354)
JComments 2.2.0.2 [12/09/2010]

I was wondering if anyone else encoutered a similar problem to mine. The comments are present in all the articles on every category even thow i haven't marked any category from the list in the Jcomments component settings. Is this a known issue, is it possible that this has something to do with Flexicontent? Any ideas?

The discussion at Jcomments is at www.joomlatune.com/forum/index.p ... 910.0.html

Thanks - Eskerrik asko - Gracias
Jok

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

More
15 years 2 months ago #11558 by effrit
Replied by effrit on topic JComments compatibility
hi, soyjok.
this issue is well known for both autors (flexi & jcomments). I asked _smart (jcomments author) about this two-three monts ago. He try to communicate Emmanuel but the problem is what he still busy.
I will try ask _smart agane, may be he make some hack for flexi.

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

More
15 years 2 months ago #11559 by soyjok
Replied by soyjok on topic JComments compatibility
OK,
thank you very much
lucky!

Thanks - Eskerrik asko - Gracias
Jok

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

More
15 years 2 months ago #11569 by effrit
Replied by effrit on topic JComments compatibility
it seems what i figured out the source of problem.
flexi attach comments via strings of TEMPLATE.
Code:
if ($this->params->get('comments') == 1) : if (file_exists(JPATH_SITE.DS.'components'.DS.'com_jcomments'.DS.'jcomments.php')) : require_once(JPATH_SITE.DS.'components'.DS.'com_jcomments'.DS.'jcomments.php'); echo JComments::showComments($this->item->id, 'com_flexicontent', $this->escape($this->item->title)); endif; endif;

$this->params->get('comments') - its parameter of material. the problem is condition from category settings is absent.

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

More
15 years 2 months ago #11582 by effrit
Replied by effrit on topic JComments compatibility
i am not a programmer, so i made very simple template hack.
open components\com_flexicontent\templates\[name]\item.php
search
<!-- BOF comments -->
string and make some changes after:
Code:
$catArr=array(1,2,3,5); // id categories with enabled comments if ((in_array((int)$this->item->catid,$catArr)&&($this->params->get('comments')))) : ?>

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

More
15 years 2 months ago #11586 by micker
Replied by micker on topic JComments compatibility
thanks effrit

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
15 years 2 months ago #11590 by soyjok
Replied by soyjok on topic JComments compatibility
Hello,
I am no programmer and I'm afraid to touch much code.
I tried but did not fix the problem. Maybe not paste the code in the right place.

Thanks - Eskerrik asko - Gracias
Jok

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

More
15 years 2 months ago #11603 by effrit
Replied by effrit on topic JComments compatibility
soyjok - its template, NOT core )
so it may or even must be touched :)

there are two template in standart distrib of flexi:
default and blog
so try fix item.php in both of them.

be careful

array(1,3,5) - its ID number of real categories with you WANT anable comments

so try make array(999) - if you made it right the comments must disappear (cose you have not category with id 999)

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

More
15 years 2 months ago #11634 by soyjok
Replied by soyjok on topic JComments compatibility
Thanks effrit, it seems that in the end I pasted the correct code and it works.

Another possibility is to turn off the "comments" on each type created within flexicontent from the back-end.
I'm trying that method is more functional, in principle I'd rather skip code, but the buttons to edit each article JComments unusable.
Well, hopefully get a global solution.

Sorry for my English

Thanks - Eskerrik asko - Gracias
Jok

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

More
14 years 10 months ago #14581 by kavaXtreme
Replied by kavaXtreme on topic JComments compatibility
This works great (thanks effrit), but does anybody know the code to just have it check the category parameters instead? That would make for an easier long-term solution.

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

Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save