0
Welcome Guest! Login
0 items Join Now

Mxcomment and Community Builder

  • Mxcomment and Community Builder

    Posted 17 years 8 months ago
  • Re: Mxcomment and Community Builder

    Posted 17 years 8 months ago
    • Maybe try 1.0.13 which has an option in Admin > Site > Global Configuration which changes the itemid
    • James Spencer / Developer & Support / Hull, UK
  • Re: Mxcomment and Community Builder

    Posted 17 years 8 months ago
    • I couldn't find what you were talking about.
      I found this in mxcomment.php.
      There are alot of "itemid" there. :P
      Should I try to comment something out?
      foreach ( $rows as $row ) {
      if ( $row->sectionid ) {
      $bs = $mainframe->getBlogSectionCount();
      $bc = $mainframe->getBlogCategoryCount();
      $gbs = $mainframe->getGlobalBlogSectionCount();
      $Itemid = $mainframe->getItemid( $row->id_content, 0, 0, $bs, $bc, $gbs );
      } else {
      $query = "SELECT id"
      . "\n FROM #__menu"
      . "\n WHERE type = 'content_typed'"
      . "\n AND componentid = $row->id_content"
      ;
      $database->setQuery( $query );
      $Itemid = $database->loadResult();
      }
      // Blank itemid checker for SEF
      if ($Itemid == NULL) {
      $Itemid = '';
      } else {
      $Itemid = '&Itemid='. $Itemid;
      }
      $item = new FeedItem();
      $item->title = htmlspecialchars( $row->titlearticle );
      $item->title = html_entity_decode( $item->title );
      $item->title = _MXC_RSS_COMMENTON . " " . $item->title . " (" . _MXC_RSS_WRITTENBY . " " . stripslashes( $row->name ) . ")";
      $item->link = sefRelToAbs("index.php?option=com_content&task=view&id=$row->contentid$Itemid#maxcomment$row->id");
      $item->description = ( $row->title!='' ) ? $row->title : $row->comment ;
      $item->description = mosHTML::cleanText( $item->description );
      $item->description = html_entity_decode( $item->description );
      // limits description text to 10 words
      $item_description_array = split( ' ', $item->description );
      $count = count( $item_description_array );
      if ( $count > 10 ){
      $item->description = '';
      for ( $a = 0; $a < $info[ 'text_length' ]; $a++ ) {
      $item->description .= $item_description_array[$a]. ' ';
      }
      $item->description = trim( $item->description );
      $item->description .= '...';
      }
      $item->description = stripslashes( $row->name ) . " > " . $item->description . " <a href='". sefRelToAbs("index.php?option=com_content&task=view&id=$row->contentid$Itemid#maxcomment$row->id")."'>" . _MXC_RSS_VIEWCOMMENT . "</a>";
      $item->date = date( 'r', $row->created_ts );
      $item->source = htmlspecialchars( $mosConfig_live_site );

      $rss->addItem($item);
      }
      // save feed file
      $rss->saveFeed('RSS2.0', $rssfile, 1);
  • Re: Mxcomment and Community Builder

    Posted 17 years 8 months ago
    • If you use Joomla 1.0.13, there is a setting in the Administrator. Go to Admin > Site > Global Configuration > *Content Tab* > ItemID
    • James Spencer / Developer & Support / Hull, UK
  • Re: Mxcomment and Community Builder

    Posted 17 years 8 months ago
    • No, I can't find anything that is just ItemID, and yes, I use 1.0.13.
      I just want that link to be without itemid.
  • Re: Mxcomment and Community Builder

    Posted 17 years 8 months ago

Time to create page: 0.059 seconds