danielthai
Jr. Member

Karma: 1
Offline
Posts: 10
|
 |
« on: April 24, 2010, 05:14:26 » |
|
Hi developers!!! Thank you for a great work from you! Jcomments works on my site well, and I love it!!! I just have an idea, or suggestion, or whatever you might call it, CAN YOU DEVELOP A MODULE TO DISPLAY JCOMMENT? I'm using several others components in my site, and they are not integrated with Jcomment (beside the articles stuffs). It would be great to have a module of Jcomment, putting underneath of those components, so users can comment on that!!!! Need your helps!!!!!!!  Yes please help!!! Thanks in advance!!!!
|
|
|
|
|
Logged
|
|
|
|
|
smart
|
 |
« Reply #1 on: April 26, 2010, 02:34:34 » |
|
Sorry but I don't understand what do you want. JComments Latest module already supports displaying latest comments from any extension integrated with JComments (search through forum - I've answered this question many times).
|
|
|
|
|
Logged
|
|
|
|
danielthai
Jr. Member

Karma: 1
Offline
Posts: 10
|
 |
« Reply #2 on: May 02, 2010, 07:59:46 » |
|
Hey, Thanks for reply, but yeah I didn't make it clear so it was hard to understand. I know the latest module (to display the latest comments). Here is my idea again:
There are some components that are not integrated with Jcomment, e.i: Music Collection has its own comment system, and integrated with Jomcomment. I dont like both of them, but can't make it integrated with Jcommemt, So I'm asking a Module to DISPLAY jcomment form into that kind of components. So I can also use jcomment in every extension in my site! Why? Cause I love jcomment but not the rest of comment component out there.
Hope you understand my idea.
Warm regard.
|
|
|
|
|
Logged
|
|
|
|
|
smart
|
 |
« Reply #3 on: May 05, 2010, 15:13:39 » |
|
but can't make it integrated with Jcommemt Why? It is so easy... Open file /components/com_muscol/views/album/tmpl/default.php Find code: <?php if( $quants = count( $this->comments )){ ?> <div class="comments_title"><? echo JText::_('Comments'). " (". $quants .")"; ?></div> <div class="comments"> <? $k = 0; foreach($this->comments as $comment){ ?> <div class="comment comment_<? echo $k; ?>"> <div class="comment_name"><? echo $comment->username; ?></div> <div class="date"><? echo JHTML::_('date', $comment->date, JText::_('DATE_FORMAT_LC2')); ?></div> <div class="comment_text"><? echo $comment->comment; ?></div> </div> <? $k = 1 - $k; } ?> </div> <? } ?>
<? if($user->id){ ?> <div class="post_comment_title"><? echo JText::_('Post a comment'); ?></div> <div class="comment_form"> <? $uri =& JFactory::getURI(); ?> <form action="<? echo $uri->_uri; ?>" method="post">
<textarea name="comment" class="textarea_comment"></textarea> <br /> <input type="submit" value="<? echo JText::_('Post comment'); ?>" /> <input type="hidden" name="album_id" value="<? echo $this->album->id; ?>" /> <input type="hidden" name="task" value="save_comment" /> <input type="hidden" name="option" value="com_muscol" />
</form> </div> <? } ?> and replace with <?php $commentsPath = JPATH_SITE.'/components/com_jcomments/jcomments.php'; if (file_exists($commentsPath)) { require_once($commentsPath); echo JComments::showComments($this->album->id, 'com_muscol', $this->album->name); } ?> And after this download attached archive, unpack and place com_muscol.plugin.php to /components/com_jcomments/plugins/
|
|
|
« Last Edit: July 22, 2010, 14:39:39 by smart »
|
Logged
|
|
|
|
danielthai
Jr. Member

Karma: 1
Offline
Posts: 10
|
 |
« Reply #4 on: May 06, 2010, 02:33:04 » |
|
 Hey!! I haven't tried it yet, but I definitely will donate to your hard work. I have been asking too much for a free component and a free great support from you. Cheer up! If you were close by, I would take you for dinner just to relax! Have a good rest buddy!
|
|
|
|
|
Logged
|
|
|
|
nguyen
Newbie
Karma: 0
Offline
Posts: 2
|
 |
« Reply #5 on: May 13, 2010, 19:24:29 » |
|
Hi Smart
Thanks for the codes. I get it working with Album. However in Music Collection, one can also comment on Artist and individual Song.
I wonder if you have some time to have a look at these. Thanks you.
Regards nguyen
|
|
|
|
« Last Edit: July 22, 2010, 14:40:15 by smart »
|
Logged
|
|
|
|
|
smart
|
 |
« Reply #6 on: May 13, 2010, 19:35:05 » |
|
Change to: <?php $commentsPath = JPATH_SITE . '/components/com_jcomments/jcomments.php'; if (file_exists($commentsPath)) { require_once($commentsPath); echo JComments::showComments($this->artist->id, 'com_muscol_artist', $this->artist->artist_name); } ?> and for Song: <?php $commentsPath = JPATH_SITE . '/components/com_jcomments/jcomments.php'; if (file_exists($commentsPath)) { require_once($commentsPath); echo JComments::showComments($this->song->id, 'com_muscol_song', $this->song->name); } ?> After this download attached plugins, unpack and place them to /components/com_jcomments/plugins
|
|
|
« Last Edit: July 22, 2010, 14:39:17 by smart »
|
Logged
|
|
|
|
nguyen
Newbie
Karma: 0
Offline
Posts: 2
|
 |
« Reply #7 on: May 13, 2010, 20:21:31 » |
|
Hi Smart
You are legend! I get both work. Well, the Artist link is not quite right. However, at the moment MC is not quite working with Joomla built-in SEF in my site (and Germi of MC is helping me to sort this out) So I do not want to bother you for now. Once we resolve the SEF I'll will report back. I'll will also try to post to MC's forum to let people over there know
Once again, thanks for your great help, and great extension.
Regards nguyen
PS. By the way, one can also comment on playlist in MC but I do not intend to use this.
|
|
|
|
|
Logged
|
|
|
|
V4Mp
Newbie
Karma: 0
Offline
Posts: 1
|
 |
« Reply #8 on: July 09, 2010, 06:38:21 » |
|
Could it be, that it doesnt work with the version 2.0 of music collection? I tried to edit the files, but code have changed because of jomcomment. I want to use jcomment (because its free and I have an edited template for it already). thx for any help
|
|
|
|
|
Logged
|
|
|
|
|
smart
|
 |
« Reply #9 on: July 09, 2010, 19:14:34 » |
|
@V4Mp: I don't know how this modification is compatible with Music Collection 2.0 because I haven't this version and don't want to buy it for integration only. I think you need to ask the Music Collection's author to add JComments support. You could show him this topic - I hope it could help with integration.
|
|
|
|
|
Logged
|
|
|
|
lukass2000
Newbie
Karma: 0
Offline
Posts: 2
|
 |
« Reply #10 on: November 25, 2012, 21:47:34 » |
|
Hello! Why has jcomments 2.3.0 an import function for muscol (music collection)? What can I do after import? How can i see or use the imported comments? Thank you 
|
|
|
|
|
Logged
|
|
|
|
evilshinobi
Newbie
Karma: 1
Offline
Posts: 6
|
 |
« Reply #11 on: December 17, 2012, 20:54:46 » |
|
Hi I also have Music Collection 2.3.0 and it works. The code you have to change is a little bit different: <? if($this->params->get('showalbumcomments') ){ // show the comments switch($this->params->get('commentsystem')){ case 'jomcomment': echo $this->jomcomment; break; default: if( $quants = count( $this->comments )){ ?> <div class="comments_title"><? echo JText::_('Comments'). " (". $quants .")"; ?></div> <div class="comments"> <? $k = 0; foreach($this->comments as $comment){ ?> <div class="comment comment_<? echo $k; ?>"> <div class="comment_name"><? echo $comment->username; ?></div> <div class="date"><? echo JHTML::_('date', $comment->date, JText::_('DATE_FORMAT_LC2')); ?></div> <div class="comment_text"><? echo $comment->comment; ?></div> </div> <? $k = 1 - $k; } ?> </div> <? } ?> <? if($user->id){ ?> <div class="post_comment_title"><? echo JText::_('POST_A_COMMENT'); ?></div> <div class="comment_form"> <? $uri =& JFactory::getURI(); ?> <form action="<? echo JRoute::_('index.php'); ?>" method="post"> <textarea name="comment" class="textarea_comment"></textarea> <br /> <input type="submit" value="<? echo JText::_('POST_COMMENT'); ?>" /> <input type="hidden" name="album_id" value="<? echo $this->album->id; ?>" /> <input type="hidden" name="task" value="save_comment" /> <input type="hidden" name="comment_type" value="album" /> <input type="hidden" name="option" value="com_muscol" /> </form> </div> <? } ?> <? break; }?> <? } // end of show comments IF ?></td>
The same with Artists and Songs. I have made this and it works. You can use my files, if you don't want to change it by yourselves. See attachement or download at: http://www.2shared.com/file/ABcSPzXz/music_collection_-_jcomments.htmlUnzip it and copy the files in ".../components/com_muscol/views/XXX/templ/", where XXX stands for the dir name (album, song, artist) For me it works excellent. Even importing the comments worked very well! No data loss!
|
|
|
« Last Edit: December 17, 2012, 21:22:21 by evilshinobi »
|
Logged
|
|
|
|
|