*

metacreo

  • **
  • 9 posts
osclass and datatables in plugin
« on: September 05, 2024, 03:46:56 PM »
Hello,
I have developed my super-duper :) security plugin (ported, re-writhed from my prestashop module).
This plugin can detect bots, unwanted emails, spam, etc... Can ban IP and email addresses and provide full $_SERVER info about connection.
In OsClass I use it for filtering contact publisher and site contact, send to friend form, comments, login/register attempts counts and bot detection...
Plugin have setting and use 2 db tables. One for 'bad' words, texts, etc... for triggering spam messages. Second table to log and manage connections.

thanks to this plugin I no needed captcha or recaptcha and my site absolutely independent of google or some third-party script.

So I need to display those tables in plugin settings. I need use pagination and record add/edit functions.
Now I use phpMyAdmin to manage tables. In prestashop we have objectmodel class with full support of model like table with pagination and no need datatables.

I can just connect libs from datatables.net , but I see some like Native osclass abstract class DataTable in /oc-includes/osclass/classes/datatables
We can create own classes like class ActionsDataTable extends DataTable, but I don't quite understand how the display data on settings page works.

Can some provide example or docs how to use this class in plugin?
« Last Edit: September 05, 2024, 03:50:57 PM by metacreo »

*

MB Themes

Re: osclass and datatables in plugin
« Reply #1 on: September 10, 2024, 01:31:56 PM »
@metacreo
Some people reused datatables used in core for usage in plugins, but majority of plugins comes with own solution for datatables
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots