News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

changing the author of a topic or a reply

Started by Mareid, January 27, 2011, 09:01:25 PM

Previous topic - Next topic

Mareid

A former admin of my family forum deleted a very important post by accident.  We were able to recover it from the cache of one of the participants, but when the post was restored by hand, of course all the posts and replies were labeled with the name of the person who recovered the files.  I know who made each posting; is there a way to re-attribute each reply to the person who actually wrote it? 

Or is there an existing mod that will do this?  If I have to do it by hand in the database can you tell me what fields I need to change?

Matthew K.

It should be fairly simple via phpMyAdmin. You'll want to go to the smf_messages table, then modify the post(s) you want to change.

You'll need to modify the following information
  • id_member
  • poster_name
  • poster_email
  • poster_ip
ID Member = Your id.
Poster Name = Your username
Poster Email = Your Email
Poster IP = Your IP.

If you don't know all of these, you can do a print_r of $user_info somewhere.
global $user_info;
echo '<pre>', print_r($user_info), '</pre>';

Which will output all of the contents of $user_info, which contains all of that information.


Advertisement: