All About Comments!!!
Jmultimedia Suite
Written by Marcelo Eden Siqueira   

It now that there are many comment (not so many to joomla 1.5) extensions for joomla! and that are even more extensions with some kind of comments system, since comments are almost a requisite of web 2.0, So Insted of developing a comments system for JMultimedia ive stated to develop a generic Comments component for joomla. Ive talked to Matheus about the idea and he agreed that this was a very cool fetured to add, So on the 2 milestone ive finishe the backend of UniComment and now the is ready to roll!

Its already working and you can test it on http://3den.org/jootube. you may say that the interface is ugly (I'll agree) but the good news is that, ITs VERY EASY TO CHANGE! This simplicity for designer like is archived because is fully implemented using Joomla! MVC framework. Once UniComments whas ready, I've add comments to JMultimedia writing only 2 lines of code!

	<?php
CommentsHelper::showList($this->item);//Display Comments List
CommentsHelper::showForm($this->item);//Display Comment Form
?>

 

This can also be done to any component with the basic joomla standards, to be more specific your component must have 2 prerequisites:

  1. The "items" table of your component must have the same name as your component folder, example: if you component is "com_yourcomp" then the main table of your component must be "#__yourcomp".
  2. Your component primary key must be an Integer called "id"

So, to get UniComments working you just need to install/enable the last version of com_unicomments and plg_comments. click to download. You can also add comments to your content Articles by writing {comments} any where on the page, the plugin will do the rest for you.

 

Now JMultimedia is almost complete, Its time for feedback, hope you enjoy it as mutch as I do.

Dont forget, GOTO JooTube

 

Show other articles of this author

47 Votes

2 Comments

Feed
  1. When installing your component on windows the installation fails. I had the same problem with my install package for my component at first and it was caused by having two copies of the install xml file. I believe that you also have two copies of the install xml, one in the root folder and an other in the admin subfolder. If you delete the extra copy in the admin subfolder your problem should be solved.
  2. Why not make this table naming requirement customizable: CommentsHelper::showForm($this->item, 'mycomponent_items')

Add Comment


    • >:o
    • :-[
    • :'(
    • :-(
    • :-D
    • :-*
    • :-)
    • :P
    • :\
    • 8-)
    • ;-)



    Click to get a new image.