Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Where do I find the setQuery to write new comments into the database?
Pages: [1]   Go Down
  Print  
Author Topic: Where do I find the setQuery to write new comments into the database?  (Read 862 times)
0 Members and 1 Guest are viewing this topic.
Grinse
Newbie
*

Karma: 0
Offline Offline

Posts: 15


« on: February 13, 2011, 22:01:13 »

Hi there,
I've one question:
Where do I find the setQuery entrys to write a new comment into the database? I already checked most files but I'm too stupid to find that part.

I'm asking because I implement akismet at the moment into my JComments. Everything is nearly done. I just need to do a check before the comment goes into the database. I want to eigther write it into the database (and publish it) when the spam check is negative or maybe unpublish it and write it into the database (so it's there to check if it's maybe no spam but it's unpublished) if the check is positive.

I would be thankfull if some can tell me where do I find that part of code where the posted comment goes into the database (usually it should be something like $database->setQuery).

Thanks in advance
Grinse
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #1 on: February 13, 2011, 22:31:26 »

You do not have to change any JComments files for this. All you need - create custom JComments plugin for onBeforeCommentAdded event and check the comment body through Akismet service. After this you can allow or disallow storing the comment into the database.

BTW, I already have such plugin but it not public yet. The main reason - I do not have enough testers for it. So if you want to take part in plugin testing I can give it to you.
« Last Edit: February 13, 2011, 22:33:04 by smart » Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Grinse
Newbie
*

Karma: 0
Offline Offline

Posts: 15


« Reply #2 on: February 13, 2011, 23:19:15 »

That would be fine. At the moment I redo a gaming webpage so there are enough (let's say arround 100 People) that can test the functionallity).

So please let me take part of the testing team, so I don't need to do the work again when you did it already Wink
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Where do I find the setQuery to write new comments into the database?
 
Jump to: