2011-08-10, 02:20 AM
Hi Guys
I've not gone down the plugin dev road, coz i've very little time to code on my hands and learning plugin dev, troubleshooting that, and getting used to it takes time.. i can achieve almost everythin i want thru simple scripts i add ot mybb, or simple code tweaks or insertions ..
Most of the code mod i make for mybb is personal requirement, like for our organization and stuff..
ANywho, I was trying to battle spam, spammers and their posts, and i found the admin interface to be too tasky, specially if u get tons of spam all the time.. so i wanted a one click way to just delete a user and all its posts..
Basically for every user post the username area has a little button to get rid of that spam account and all the posts related to that..
on click it basically calls a script i made that:
1) gets the IP, and email address of the user, and insert it into my own blacklist table
2) finds all posts in the mybb_posts authored by this user and deletes them
3) deletes the said user from mybb_users
This works, but results in a lot of misalligned data..
my question now is, WHAT ARE FIELDS that i need to UPDATE to keep the mybb in synch? i could painstakingly try and figure this out, like updating the post counts, the threads etc.. but i would love it if the admins or anyone can point me in the right direction..
Would appreciate the community's guidance
thanks
I've not gone down the plugin dev road, coz i've very little time to code on my hands and learning plugin dev, troubleshooting that, and getting used to it takes time.. i can achieve almost everythin i want thru simple scripts i add ot mybb, or simple code tweaks or insertions ..
Most of the code mod i make for mybb is personal requirement, like for our organization and stuff..
ANywho, I was trying to battle spam, spammers and their posts, and i found the admin interface to be too tasky, specially if u get tons of spam all the time.. so i wanted a one click way to just delete a user and all its posts..
Basically for every user post the username area has a little button to get rid of that spam account and all the posts related to that..
on click it basically calls a script i made that:
1) gets the IP, and email address of the user, and insert it into my own blacklist table
2) finds all posts in the mybb_posts authored by this user and deletes them
3) deletes the said user from mybb_users
This works, but results in a lot of misalligned data..
my question now is, WHAT ARE FIELDS that i need to UPDATE to keep the mybb in synch? i could painstakingly try and figure this out, like updating the post counts, the threads etc.. but i would love it if the admins or anyone can point me in the right direction..
Would appreciate the community's guidance
thanks
MyBB = awesome