Page 1 of 1

phpbb.addAjaxCallback - update a value in the DB

Posted: Sun May 20, 2018 4:56 am
by 3Di
Hi all,
I have a phpbb.addAjaxCallback working right so far.
I would like to add a function there, which updates a custom column's value in the TOPICS table, that's an INT.

Say +1 or -1.

I am looking for some example used by extensions (validated) so I can study the stuff.
My Ajax skills aren't enough, I have already tried without asking here - to no avail.

TIA. :)

Re: phpbb.addAjaxCallback - update a value in the DB

Posted: Sun May 20, 2018 6:09 am
by 3Di
I think the Ideas extension is what I am looking for, is not using the Ajax callback though.
And I just I have only one button available, not 2.

Feel free pls to add some other links if any. :)

Edit: I was able to solve the issue. thx. :)