MyBB Community Forums

Full Version: List All Posts By X User To Email
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!

I could have swore I seen a thread on how to do this quite some time ago but for the life of me I cannot seem to find the thread again after an hour of searching the web and the forums.

Have a user that will be leaving the forum but needs to take all posts with them. Look for a script to do on a seperate PHP page (if theres an easier way please let me know) to bring up all posts by their account and then I can just copy and paste into a text file and send through email. Anyone know how to accomplish this?

Thanks,
iso
How many posts are we talking about ?

I just did a small test. I copied this into my index template:

<?php	
$query = $db->simple_select('posts', 'message', 'uid=1');
while ($xxx = $db->fetch_array($query))

{ echo "<div>{$xxx['message']}</div>"; }	
?>

It works, will need some refining.
Thank you! Sorry for the late response!
(2019-09-11, 03:54 AM)isoldehn Wrote: [ -> ]Thank you! Sorry for the late response!

I use the plugin created by Whiteneo.


[Image: dbb6774ba6b3df94208d2d513980be0c.png]