PDA

View Full Version : How do i create something like "do=banuser"14"


sonichero
05-27-2007, 04:37 AM
How would i go about creating the PHP code for that?

And since i want to add this to replacement variables, how do i make the userid number a variable based on the post of the replaced words?

Antivirus
05-29-2007, 10:28 PM
I understand the first part, in your php script, you would have to assign the user to be banned to a variable such as $introuble['userid'] then in your html template, use:


www.yoursite.com/yourscript.php?do=banuser$introuble[userid]


I dont understand what you mean by adding this to replacement variables?

sonichero
05-30-2007, 01:01 AM
oh, its so people get autobanned when using inappropriate phrases or REALLY bad words like the n word.

Me thinks that will take me to the page to ban the user.I need to run a query or something that will automatically ban the user.

Antivirus
05-30-2007, 11:53 AM
so if someone types a bad word, the admin can click on the word which will be a link to the ban script?

sonichero
05-31-2007, 03:54 AM
No, an autoban. Basically once the word runs through the replacement variable script it will automatically replace the word and then automatically ban the user, without running through an admin.