1) All the posts have been imported as "awaiting moderation" (I guess because the Phorum->phpBB script didn't work as expected). I have used the XF batch thread update tool and approved all the threads successfully, however only the threads has been approved and not the messages composing each thread, is there something I can do?
The relevant code in our PhpBb importer is:
PHP:
'discussion_state' => $thread['topic_approved'] ? 'visible' : 'moderated'
And:
PHP:
'message_state' => $post['post_approved'] ? 'visible' : 'moderated',
For threads and posts respectively.
in other words, for
discussion_state
and
message_state
to be set as
moderated
it would suggest the Phorum to PhpBb process set them all as
topic_approved = 0
and
post_approved = 0
.
My recommendation would be to handle this before or during the import rather than trying to fix it after the fact in XF. This would involve either; modifying the Phorum to PhpBb script accordingly or once the import to PhpBb is finished, making sure the
topic_approved
and
post_approved
fields in the respective tables are set to 1 before starting the PhpBB to XF import.
We don't have a batch update posts tool and there are associated records and counts which can be affected by the
discussion_state
/
message_state
fields in XF so it's just easier to get it right before it goes into XF.
2) During the XF installation I created an admin user. The import procedure also imported the admin user I had in phorum and I set him as administrator as well. So I have now two administrators. However, the first one, from the board front-end, can see all the posts (even if they are not moderated) while the second one can only see his posts. I thought they had exactly the same permissions but maybe I am missing something.
As you may be doing a further import from scratch as per my recommendation above, it may be worth making sure the XF admin user has the same email address and username as the original Phorum admin user, and during the configuration of the PhpBB to XF import, make sure you select the option to merge users. This will merge that Phorum admin user into the XF user seamlessly and hopefully resolve any permission issues you experienced there.
But on permissions generally, being an administrator does not necessarily give you additional power to do anything on the front end. Being an administrator grants you access to the admin control panel, and it enables you to set permissions for which areas of the admin control panel can be accessed.
In fact, being an administrator doesn't even make you a moderator, which may be different to what you're used to. Administrators and moderators are essentially separate roles.
As a general rule of thumb...
- All standard users in XF should have their primary user group as "Registered" (regardless of what other roles they have). Permissions set on this user group should reflect the baseline permissions that all users should have as a minimum.
- If they are a moderator they can have "Moderating" set as their secondary group (applied in addition to Registered as the primary group). Permissions set on this user group should reflect the baseline permissions that all moderators should have as a minimum.
- If they are an administrator they can have "Administrative" set as their secondary secondary group. You can apply additional permissions here if needed but if they are a moderator as well it should only be permissions that differ from that of the Moderating user group.
If you run into any permission problems, the above should help. If the import process results in bringing over separate administrator/moderator user groups it would be better to delete those and assign the default XF ones to the relevant users rather than trying to fix the permissions that have been brought over (importing permissions and trying to make them equivalent can be messy).
If in doubt, make sure everyone is in "Registered" as their primary group, remove from all secondary user groups, and set the permissions up from scratch.