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 ?
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
0hello
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 -
Accepted Answer
0Well 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 ; -
Accepted Answer
-
Accepted Answer
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »