2023-06-12, 09:27 AM
(This post was last modified: 2023-06-12, 09:30 AM by king1. Edited 1 time in total.)
should be a simple problem but I'm struggling to find an example of what to do...
I have a plugin i am working on to prevent spammy signups on our little message board (based on chkproxy and security log, but significantly modified) - it parses the API data from Stop Forum Spam and ipintel and then does some calculations to give a pass fail for the signup. That side is all working fine...
It also applies the same tests to existing user accounts to find the spammers.
In the ACP i have a form which summarises a list of the user accounts that have failed the test from there I have a couple of actions I would like to implement. I suspect both will use much the same code
1. Send a report to SFS just by clicking on the text link ( perhaps with a 'Are you sure?" ) onclick
2. trigger an "Ignore" function for users deemed to be actually OK , which will simply add a value to a database table
Both of these I would like to use jquery to do the leg work, without having to do a form or reload the page if possible...
I am struggling to work out where the jquery function might be placed - I am familiar with PHP and jquery in this respect, but applying it within the plugin ACP form has got me...
I see that jquery is already loaded in the headers
An example of the form - SFS reporting on the far right, Ignore button in the Action field.
Doesn't need to alter the form in anyway( removing the entry etc) - I simply want to make a call to a php file on the server with a click on the text link using jquery or similar, without reloading the page - after that I should be good
Appreciate any guidance you can give.
Cheers
I have a plugin i am working on to prevent spammy signups on our little message board (based on chkproxy and security log, but significantly modified) - it parses the API data from Stop Forum Spam and ipintel and then does some calculations to give a pass fail for the signup. That side is all working fine...
It also applies the same tests to existing user accounts to find the spammers.
In the ACP i have a form which summarises a list of the user accounts that have failed the test from there I have a couple of actions I would like to implement. I suspect both will use much the same code
1. Send a report to SFS just by clicking on the text link ( perhaps with a 'Are you sure?" ) onclick
2. trigger an "Ignore" function for users deemed to be actually OK , which will simply add a value to a database table
Both of these I would like to use jquery to do the leg work, without having to do a form or reload the page if possible...
I am struggling to work out where the jquery function might be placed - I am familiar with PHP and jquery in this respect, but applying it within the plugin ACP form has got me...
I see that jquery is already loaded in the headers
An example of the form - SFS reporting on the far right, Ignore button in the Action field.
Doesn't need to alter the form in anyway( removing the entry etc) - I simply want to make a call to a php file on the server with a click on the text link using jquery or similar, without reloading the page - after that I should be good
Appreciate any guidance you can give.
Cheers