Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • zentrina Friend
    #156665

    Hi,

    I would like to know if JA Comment can be used together with MyBlog. JA Comment seems to be a better comment extension than JomComment, but I would like to know before I change.

    Thanks!

    nghiatd Friend
    #364046

    Hi,

    You should set up Plugin JAComment system with component jacomment to use for your blog
    And add this code in detail file of com_blog:
    {jacomment contentid=ID option=com_myblog contenttitle=TITLE}
    ID is “id of blog item”
    TITLE is “title of blog item”
    Eg:
    I use jacomment in javoice and I add code in file detail of voice:
    {jacomment contentid=<?php echo $item->id?> option=com_javoice contenttitle=<?php echo $item->title ?>}

    Best Regards.

    skwtayler Friend
    #366138

    Hi there,

    I would also like to use JA Comment with MyBlog. Is there any way to do this. I couldn’t understand above.
    I have it working but would like to integrate it on the front page to show the number of comments. At the moment is doesn’t.

    nghiatd Friend
    #366249

    Dear skwtayler,

    – To Add comment count button
    Kindly open file componentscom_myblogtemplatesYOUR_COM_MYBLOG_TEMPLATEindex.tmpl.html
    and add code:

    <?php
    //BEGIN : jacomment
    $baseurl = (!empty($_SERVER['HTTPS']) ? "https://" : "http://") . $_SERVER['HTTP_HOST'];
    if ($_SERVER['SERVER_PORT']!="80")
    $baseurl .= ":".$_SERVER['SERVER_PORT'];
    $link = $baseurl . $e['permalink'];
    if(!JRequest::getInt('print') && file_exists(JPATH_SITE.DS.'components'.DS.'com_jacomment'.DS.'jacomment.php') && file_exists(JPATH_SITE.DS.'plugins'.DS.'system'.DS.'jacomment.php')){
    $_jacCodeDisable = "#{jacomment(s)off}#i";
    if(!preg_match($_jacCodeDisable, $e["introtext"])) {
    echo '{jacomment_addbutton link="'.$link.'" contentid='. $e["id"].'}';
    echo '{jacomment_count contentid='. $e["id"].' option=com_myblog contenttitle='.$e['title'].'}';
    }
    }
    ?>

    after the code

    <?php
    // IF NEED READMORE
    if ($e['readmore']=="1")
    {
    ?>
    <a href="<?php echo $e['permalink']; ?><?php echo $showAnchor; ?>" class="postSummary-readmore"><?php echo JText::_('READMORE');?></a>
    <?php
    }
    ?>

    – To Add comment content:
    Kindly open file componentscom_myblogtaskshow.php
    Then add code:

    //BEGIN: JAComment
    $content.= '{jacomment contentid='.$row->id.' option=com_myblog contenttitle='.$row->title.'}';

    after code:

    $content = '';

    $path = $this->_getTemplateName( 'entry' );

    $content .= $tpl->fetch_cache( $path );
    I’m using version 3.0 Build 329, i don’t have latest version of com_myblog so if you couldn’t make it.
    It would be much better for us to figure out, could you possibly provide me your ftp and admin account?
    You could send me your information via link:
    http://support.joomlart.com/index.php?/Tickets/Ticket/View/58356/-1/-1/-1

    Best Regards.

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 3 voices, and was last updated by  nghiatd 13 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum