phpbb.addAjaxCallback - update a value in the DB

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

phpbb.addAjaxCallback - update a value in the DB

Post 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. :)
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

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

Post 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. :)
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
Post Reply

Return to “Extension Writers Discussion”