- Joined
- Oct 27, 2025
- Messages
- 352
Description:
Updates guest username to specified user ID.
This add-on is used when a member has been deleted, but then later you want to re-assign the posts back to a valid user.
(Example of Options page)

Step 1:
Update the Options page with the Guest username and User ID. The User ID will be the valid user you created and it must have the same username as the guest username you want to update.
Step 2:
Go to the Rebuild caches page:
Admin control panel -> Tools -> Rebuild caches -> Update guest
Clicking the Rebuild now button will update guest posts defined in the options page.
Step 3:
Rebuild threads:
Admin control panel -> Tools -> Rebuild caches -> Rebuild threads
Be sure to check the "Rebuild post position and post counters" option.
Step 4:
Rebuild search index:
Admin control panel -> Tools -> Rebuild caches -> Rebuild search index
Questions and answers:
Q: Can I run this from CLI?
A: Yes. Log into the server and navigate to the directory where XenForo is installed. Enter the following command:
php cmd.php xf-rebuild:updateguest
Updates guest username to specified user ID.
This add-on is used when a member has been deleted, but then later you want to re-assign the posts back to a valid user.
(Example of Options page)

Step 1:
Update the Options page with the Guest username and User ID. The User ID will be the valid user you created and it must have the same username as the guest username you want to update.
Step 2:
Go to the Rebuild caches page:
Admin control panel -> Tools -> Rebuild caches -> Update guest
Clicking the Rebuild now button will update guest posts defined in the options page.
Step 3:
Rebuild threads:
Admin control panel -> Tools -> Rebuild caches -> Rebuild threads
Be sure to check the "Rebuild post position and post counters" option.
Step 4:
Rebuild search index:
Admin control panel -> Tools -> Rebuild caches -> Rebuild search index
Questions and answers:
Q: Can I run this from CLI?
A: Yes. Log into the server and navigate to the directory where XenForo is installed. Enter the following command:
php cmd.php xf-rebuild:updateguest
Attachments