blonde poker forum
Welcome, Guest. Please login or register.
July 18, 2025, 06:14:24 PM

Login with username, password and session length
Search:     Advanced search
2262307 Posts in 66604 Topics by 16990 Members
Latest Member: Enut
* Home Help Arcade Search Calendar Guidelines Login Register
+  blonde poker forum
|-+  Poker Forums
| |-+  The Rail
| | |-+  Removing the offensive PMs
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Removing the offensive PMs  (Read 1208 times)
mikkyT
Hero Member
*****
Offline Offline

Posts: 3523


View Profile
« on: October 29, 2006, 10:54:09 PM »

http://www.simplemachines.org/community/index.php?topic=115543.msg755538#msg755538

Code:
<?php
include_once('SSI.php');

// Find the IDs of the PMs that this moron sent...
$query db_query("SELECT ID_PM FROM {$db_prefix}instant_messages WHERE ID_MEMBER_FROM='theirmemberid'");

// Delete them...
while($row mysql_fetch_assoc($query))
{
    
// Delete the actual PM
    
$query2a db_query("DELETE FROM {$db_prefix}instant_messagse WHERE ID_PM = '$row[ID_PM]'"__FILE____LINE__);
    
// Remove all records of this PM from other users' inboxes now...
    
$query2b db_query("DELETE FROM {$db_prefix}im_recipients WHERE ID_PM = '$row[ID_PM]'"__FILE____LINE__);
}

Get someone who knows what they are doing to stick that code above into a file (eg runthis.php), upload the file to the server and open the page in a webbrowser.

It will delete the PMs from the user.

Remember to fill in THEMEMBERID with the ID of the spammer....
Logged
mikkyT
Hero Member
*****
Offline Offline

Posts: 3523


View Profile
« Reply #1 on: October 29, 2006, 10:56:54 PM »

Side effect is that the number of PMs in the inbox will be out of sync I think...
Logged
Ironside
Administrator
Hero Member
*****
Offline Offline

Posts: 41931



View Profile
« Reply #2 on: October 30, 2006, 03:49:26 AM »

as you are quite well aware we are in process of changing our tech team just now

and i dont have access to the server

so untill we get a new tech team in place we cant do that
Logged

I am the master of my fate
I am the captain of my soul.
mikkyT
Hero Member
*****
Offline Offline

Posts: 3523


View Profile
« Reply #3 on: October 30, 2006, 04:04:26 AM »

Fair enough (I wasn't aware that only the "tech" guys where the ones with the server details)
Logged
snoopy1239
Hero Member
*****
Offline Offline

Posts: 33034



View Profile WWW
« Reply #4 on: October 30, 2006, 01:53:23 PM »

thanks anyway, mikkyt
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.193 seconds with 20 queries.