1.0.0 Beta 4 adds IP logs, members' histories - the change log, username changes and rejected registrations - and the moderator log.
Nothing from Beta 3 has changed its name, and there is no upgrade step: upload the files and upgrade as usual. One thing behaves differently: see Worth knowing.
New
- IP logs.
ips=1on theUserseeder gives every member an IP log, as XenForo writes one while a member uses the forum: a row for registering, logins up to their last activity (some through a "stay logged in" cookie), logins to the admin control panel for an administrator, and a few changes to the account. On theThreadseeder it also logs the address of every thread and reply, against the post as XenForo does. In a factory:UserFactory::new()->withIpLog(), andwithIp()onThreadFactoryandPostFactory.- Addresses that cannot be real. Every seeded address is from the ranges set aside for documentation (
192.0.2.0/24,198.51.100.0/24,203.0.113.0/24,2001:db8::/32). Each member has one to three for a run, and some members share one, so an address can lead to several members. Faker hasdocumentationIp()for your own.- The change log.
changeson theUserseeder, orwithChanges(), makes members who have changed their account since registering - time zone, location, website, signature, email address, privacy and mail preferences - and some changes made by an administrator, so XenForo's own change log records both kinds of editor.- Username changes.
renamedon theUserseeder, orrenamed(), gives members earlier names, recorded as approved changes.withUsernameRequest()adds one awaiting approval, in the approval queue, or one rejected by a moderator. The member is not renamed, so nothing they posted has to be rewritten.- Rejected registrations.
rejectedon theUserseeder, orrejected(), with XenForo's rejection record: by its spam check at registration, or by a moderator after it.- The moderator log. The
ModeratorLogseeder writes a moderator log about members' threads, replies and accounts, in XenForo's own words, andModeratorLogFactorywrites one about content you already have. The history agrees with the content as it is now: an open thread was locked and then unlocked. No entry is dated in the last two hours.
Worth knowing
- Moderator log entries are written straight into the table. Add-ons that act on a moderator action as it is taken - extending XenForo's logger, or watching each entry as it is saved - send it to a chat channel or a log. They do not see these, and
seeder:runnames any such add-on it finds active. The seeder is not in the sampleseeder:validateuses, so validating never writes one.withLogin()now logs in from the member's own address, from the documentation ranges, where Beta 3 used198.18.0.0/15.- A parameter from this release given to Beta 3 is named as ignored and the run exits 1. The README marks each new one since 1.0.0b4.
1.0.0 Beta 3 adds administrators, the admin log, members who hold permissions, and crawler user agents.
Nothing from Beta 2 has changed its name or its behaviour, and there is no upgrade step: upload the files and upgrade as usual.
New
- Administrators.
adminson theUserseeder makes members who are administrators, with the administrator record XenForo keeps. In a factory:UserFactory::new()->administrator(), oradministrator('user', 'option')with the administrator permissions named.- The admin log. The
AdminLogseeder writes an admin log with history: a few administrators, the ordinary actions repeated and the unusual ones once.AdminLogFactoryhasby(),action()andfrom(). As with the server error log, no entry is dated in the last two hours, so nothing that reports new entries picks a seeded one up.- Members who hold permissions.
permittedandpermissionson theUserseeder --p permitted=5 -p permissions=general.bypassFloodCheck,conversation.maxRecipients:50- orUserFactory::new()->withPermissions([...]). Each member is put in an extra user group made to grant them, so they stay in Registered, and members given the same permissions share one group. A permission the forum does not have is refused, and so is a value it would not take. Another add-on's permissions work too.- User groups.
UserGroupFactory::new()->granting([...])makes a group with the permissions it grants, written as the admin control panel writes them.- Crawler and browser user agents. Seeders and factories now have
crawlerUserAgent()(a real crawler this forum takes for a robot, the commonest most often, or one for a robot you name),browserUserAgent()(one this forum does not take for a robot) androbotFor($userAgent)on$this->context()->faker. Which agents are robots is the forum's own robot list, as other add-ons have extended it.
Worth knowing
- Cleaning a batch with a user group in it empties the cached CSS. Deleting a user group makes XenForo mark every style as changed, as an HTML widget does, so
seeder:validatemakes no group. Creating one does not.- XenForo tidies up after a deleted group, forum-wide. Once the group is gone its own job removes every permission combination no member has any more - not only the ones seeded members had.
- A parameter from this release given to Beta 2 is named as ignored and the run exits 1. The README marks each new one since 1.0.0b3.
1.0.0 Beta 2 adds forum types, search forums, polls, sticky threads, resource discussion threads, media comments and widgets.
Nothing in Beta 1 has changed its name or its behaviour, and there is no upgrade step: upload the files and upgrade as usual.
New
- Forums of any type.
forum_typeon theThreadseeder makes an article, question or suggestion forum with threads of that type, andforum_types=1onDefaultmakes one of each. In a factory:ForumFactory::new()->article(),question(),suggestion()ortype($id).- Search forums. The
SearchForumseeder andSearchForumFactorymake search forums that list the threads of the forums they are given.- Polls.
pollson theThreadseeder, orThreadFactory::new()->withPoll($choices, $votes), makes poll threads with votes from the run's members. A new XenForo forum takes no poll threads, soForumFactory::new()->allowing('poll')says which other thread types a forum takes. Forums the seeders make opt in when polls are asked for.- Sticky threads.
stickyon theThreadseeder.- Resource discussion threads.
discussions=1on theResourceseeder gives each resource its discussion thread, in a forum made for them or one you name withforum.- Media comments.
commentson theMediaseeder, andMediaCommentFactory.- Widgets. The
Widgetseeder andWidgetFactoryput widgets with a title in any widget position. Cleaning one also deletes the compiled file XenForo leaves behind when a widget is deleted.
For your own seeders and factories
- The README now shows how to keep an attribute that is not a column between
newEntity()andstore(), and says thatstore()may hand the entity to a service of your own.seeder:validatecounts rows, not files. A factory whose entities have files should delete them inremove(), and you should count the files before seeding and after cleaning.
Worth knowing
seeder:validateis not a read-only check. Where seeding is switched on it creates content and removes it again.seeder:validate --unattendedandseeder:configwrite nothing.- An HTML widget has a template of its own. Saving or deleting one marks every style as changed and empties the cached CSS, as editing a template in the admin control panel does. So the seeder makes none unless asked with
html.- A parameter from this release given to Beta 1 is named as ignored and the run exits 1. The README marks each new one since 1.0.0b2.
We use essential cookies to make this site work, and optional cookies to enhance your experience.