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: Mod_jcomments sef problems
Pages: [1]   Go Down
  Print  
Author Topic: Mod_jcomments sef problems  (Read 1650 times)
0 Members and 2 Guests are viewing this topic.
oltimus
Newbie
*

Karma: 0
Offline Offline

Posts: 5



« on: September 16, 2010, 20:37:53 »

Hi!

I wanted to know if someone did open any topic for the mod_jcomments sef problems when using ARTIO SEF.

I'm using the latest component and module of Jcomment and I get my comments from K2. As I see it doesn't get the correct URL, but it provides a new one which doesn't have anything in common.

Also, the most commented articles for K2 does not function.

Thx in advance
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #1 on: September 16, 2010, 21:04:45 »

As I see it doesn't get the correct URL, but it provides a new one which doesn't have anything in common.
Could you specify used versions of JComments, Artio and K2? What happens if you're disable Artio? Does it work with built-in Joomla's SEF?

Also, the most commented articles for K2 does not function.
Of course because this mode works with com_content only.
Logged

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

Karma: 0
Offline Offline

Posts: 5



« Reply #2 on: September 17, 2010, 21:04:13 »

I use last version of Jcomments, I installed it yesterday, I use last version of K2. And now I don't use Artio, but the problem remains

You can see it in my website http://www.albanianews.it (in the right you can see the comments)

What about a more specific module for K2 about the comments. There also is needed a function to know which article is the most commented.

Thx Smart
Logged
oltimus
Newbie
*

Karma: 0
Offline Offline

Posts: 5



« Reply #3 on: September 21, 2010, 18:40:33 »

Hi smart!

I've seen around the forum that the comment module is not optimized for K2, but I think that the creation of the links and I mean this function

function getContentLink(&$row)
      {
         global $mainframe, $Itemid;

         if (JCOMMENTS_JVERSION == '1.5') {
            require_once (JPATH_ROOT.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'route.php');
            $link = JRoute::_(ContentHelperRoute::getArticleRoute($row->slug, $row->catslug, $row->sectionid)) . '#comments';
         } else {
            $compat = $mainframe->getCfg('itemid_compat');
         
            if ( $compat == null ) {
               // Joomla 1.0.12 or below
               if ( $Itemid && $Itemid != 99999999 ) {
                  $_Itemid = $Itemid;
               } else {
                  $_Itemid = $mainframe->getItemid( $row->id );
               }
            } else if ( (int) $compat > 0 && (int) $compat <= 11) {
               // Joomla 1.0.13 or higher and Joomla 1.0.11 compability
               $_Itemid = $mainframe->getItemid( $row->id, 0, 0  );
            } else {
               // Joomla 1.0.13 or higher and new Itemid algoritm
               $_Itemid = $Itemid;
            }
         
            $link = sefRelToAbs( 'index.php?option=com_content&amp;task=view&amp;id='. $row->id .'&amp;Itemid='. $_Itemid );
         }
         return $link;
      }

must reflect also the links created by K2 or any other component. As I've said in the previous posting, the links are not well-created although they do take me on the article (wrong url anyway)

What should be done?

Olti
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Bug-reports    Topic: Mod_jcomments sef problems
 
Jump to: