[problème] Jcomments : impossible inhiber / catégories

More
13 years 2 weeks ago #15187 by effrit
hi :)
the solution was not for {jcomments off} function but for desable/enable coments for flexi category.
and seems it works ).

open components\com_flexicontent\templates\[name]\item.php
search
<?php if ($this->params->get('comments')) : ?>

and replace for
Code:
$db =& JFactory::getDBO(); $sql = "SELECT params FROM #__categories WHERE id = ".$this->item->catid; // get params from current category $db->setQuery( $sql ); $row=$db->loadResult(); $pattern = '/comments=(.*?)\s/'; // get categories parameter "comments" preg_match($pattern, $row, $strr); if($strr[1]=="1"): ?>

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

More
13 years 2 weeks ago #15194 by micker
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.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.282 seconds
Save
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