-
AuthorPosts
-
November 22, 2010 at 2:55 pm #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 Friendnghiatd
- Join date:
- October 2009
- Posts:
- 324
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 7
- Thanked:
- 39 times in 37 posts
November 24, 2010 at 7:02 am #364046Hi,
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 Friendskwtayler
- Join date:
- July 2008
- Posts:
- 41
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 7
- Thanked:
- 3 times in 1 posts
December 10, 2010 at 9:08 am #366138Hi 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 Friendnghiatd
- Join date:
- October 2009
- Posts:
- 324
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 7
- Thanked:
- 39 times in 37 posts
December 11, 2010 at 4:08 am #366249Dear 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/-1Best Regards.
-
AuthorPosts
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