JComments integrated to K2

koshovyj
koshovyj
Offline
0
Hello world :),
I have JComments intergrated with K2.
Is there any way to make contentstatistics to run with JComments
If not, is there any API so I can try to add this by myself ?
Responses (5)
  • Accepted Answer

    Thursday, March 01 2012, 03:50 PM - #Permalink
    0
    hello

    sorry we don't have a plugin for JComments. we could build this for you customly if you were interested.

    there's no "API", but if you're a good coder and are familiar with Joomla programming, I would recommend you to take a look at some other plugin to see what is its structure, and maybe write the plugin yourself... although it's not easy! ;)

    Germi
    The reply is currently minimized Show
  • Accepted Answer

    koshovyj
    koshovyj
    Offline
    Thursday, March 01 2012, 04:42 PM - #Permalink
    0
    Well for now i've created a mysql trigger:

    delimiter // 
    create trigger `jcomments_stats_k2`
    before insert on `ol7bv_jcomments`
    FOR EACH ROW
    BEGIN
    insert into `ol7bv_content_statistics` (`component`,`type`,`value`,`date_event`,`ip`,`reference_id`,`user_id`) values ( 'com_k2', 5, 0, NEW.`date`, NEW.`ip`, NEW.`object_id`, NEW.`userid`);
    END;//
    delimiter ;
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, March 01 2012, 04:49 PM - #Permalink
    0
    wow... that's not the way Content Statistics works...! but if you want to give it a try...!
    The reply is currently minimized Show
  • Accepted Answer

    koshovyj
    koshovyj
    Offline
    Friday, March 02 2012, 05:57 AM - #Permalink
    0
    wow... that's not the way Content Statistics works...! but if you want to give it a try...!

    I know that this is not a proper way to count statistics but on my test base it works for now
    The reply is currently minimized Show
  • Accepted Answer

    Friday, March 02 2012, 09:32 AM - #Permalink
    0
    then go for it! :)
    The reply is currently minimized Show
Your Reply