XF 2.3 Miscellaneous changes for XenForo 2.3

Due to time constraints and family matters, this is a slightly different HYS to what was planned, but it is still a bumper feast of new features coming in XenForo 2.3. This week we will be mostly focusing on a bunch of smaller new changes and improvements we're no less excited to show you in the near future.

This is a somewhat lengthy post so we will say goodbye here and we will see you for more 2.3 goodies next week.

Sign in with Apple​

To join our existing suite of connected account providers, in XenForo 2.3 we are adding support for Sign in with Apple. The set up for this one will be a little more onerous, requiring an Apple developer account and the creation of a certificate file that will need to be uploaded through our UI:

hys_6_apple_1.png


Before release, we will be documenting the full setup process through the XenForo manual. There is also an additional step required for users who sign up with Apple's "Hide my e-mail" feature.

Once enabled, users will be able to sign in, or sign up with the Apple button in the relevant places.

hys_6_apple_continue.png


Search users for connected accounts​

If you've ever wondered which of your users have which connected accounts connected, you can now pull that list directly from the "Search users" page in your admin control panel.

hys_6_user_search.png


Simply select the specific connected account(s) you want to search for, and the list of users who have those accounts connected will be displayed.

IndexNow support​

In XenForo 2.3 you can now enable support for IndexNow. This is a recent initiative by Bing, Yandex and others, which allows you to directly notify them whenever content is created, updated, or deleted on your forum. Whenever one of these events happens, a job is enqueued to submit the URL to IndexNow. This avoids the need for generating huge sitemap files which may or may not be read by search engines.

Due to limited support by search engines, including Google, the sitemap generation remains in place and remains unchanged, but IndexNow is available for those search engines which support it either now or in the future.

Generically queued and retryable jobs​

Starting with XenForo 2.3, the existing job system has been enhanced with additional tracking which allows it to be used as a generic queueing system. In XenForo 2.2, mails are added to a special queue table before being processed. This functionality remains largely unchanged, but instead of queueing mails to be sent in their own table, they are now queued directly into the xf_job table.

It's not just mails which are queued in this way. The sending of push notifications and webhooks are also now queued into the job system, so there is little to no noticeable delay when submitting content which might generate one or more of these to be sent.

In addition to queueing these items in this way, developers can also opt in to having their jobs be retryable in the event of failure. This maintains the current behaviour of the existing mail queue and also allows webhooks to be retried in the event of failure.

The cool off between retrying can be configured directly in the Job class or use sensible defaults so that the delay between retries is lengthened based on the number of previous attempts.

After a certain number of failed attempts, the jobs can be marked as failed and they are stored in a new xf_failed_job table.

Bundled support for remote object storage​

Thanks to some changes in the AWS SDK for PHP we are now able to ship, alongside XenForo, the parts of the library which are responsible for communicating with Amazon S3 and compatible object storage services.

The setup instructions provided by the below resource are still required:

But starting with XenForo 2.3 you will no longer need to install an "add-on" in order to configure it. Calling it an "add-on" is a little bit of a misnomer as all it really does is include the (previously) humongous AWS SDK. Now we can include just the Amazon S3 SDK parts, there are fewer steps required to offloading your storage to a remote service, like Amazon S3, Cloudflare R2 and many others.

Full InnoDB support with improved MySQL search​

In days gone by, there were good reasons for our continued use of MyISAM and MEMORY tables in MySQL. Though as the years have progressed, the need for these storage engines in databases have long been negated by better hardware performance and improvements in InnoDB.

Starting with XenForo 2.3 we are automatically converting most of the remaining tables to use InnoDB and for new installs we are making all tables use InnoDB by default.

The only table that requires manually converting is the xf_search_index table. For existing installations, due to differences in the full-text search implementation, you will need to run a CLI command named xf:convert-search-innodb, which will empty, convert and optionally rebuild the search index for you.

Full text search using InnoDB should be an improvement right out of the gate as it offers a lower default minimum word length and a much smaller set of stop-words, along with an improved scoring algorithm. We now even support relevancy search order out of the box, something that was previously a XenForo Enhanced Search exclusive feature, though this will be subject to real world testing before we can comment on whether it is useful.

Due to these changes we are going to be requiring a minimum of MySQL 5.7 or MariaDB 10.2 starting with XenForo 2.3.

Native 'sticky' and date/time inputs​

Due to ancient browser quirks which should no longer be relevant and improved HTML standards, we are now handling sticky elements and date inputs natively without the use of third party libraries.

In terms of 'sticky' support, this affects mostly the admin control panel navigation and the sticky header on the public side in some legacy cases. For the most part, you shouldn't see any difference and the experience, particularly for the admin control panel navigation, should be a lot less janky in some of the cases.

Date inputs within XenForo have now been replaced with native date inputs, rather than using a third party library. Each browser/OS will render the date picker slightly differently, as seen below (Chrome, Firefox, macOS Safari and iOS pictured):

hys_6_date_chrome.png
hys_6_date_firefox.png
hys_6_date_safari.png
hys_6_date_apple.png

But all of them are at least much more functional than they used to be and will be familiar to people who have used the date inputs before.

In addition to supporting date inputs with the existing <xf:dateinput> tag, we also support date and time inputs with the <xf:datetime> tag and time inputs using the <xf:timeinput> tag, which correspond to the HTML standard <input type="date">, <input type="datetime-local"> and <input type="time"> tags respectively.

Auto refresh "board inactive" page​

For those times when you need to turn your forum off, you will have used the "board is active" toggle to do so. This page will now automatically refresh every 60 seconds so when the forum is back up, people will be back using your site sooner without needing to hit refresh.

Anchor links for headings​

Every time a heading is used within content, it now has an automatic anchor link generated which can be accessed on hover via the link icon that appears next to the heading:

hys_6_heading.png


This will allow you to link directly to headings within your content.

Email notifications for moderators​

Sometimes it can be tricky keeping up to date with the various goings on with a busy forum, or if you're a small team, sometimes it can be difficult to respond to various moderator tasks.

To make that easier in XenForo 2.3, moderators can now opt-in to email alerts for new reported content or new content awaiting approval,

hys_6_moderator_emails.png


With these preferences enabled (on a per-moderator basis under account preferences), whenever any of those actions require attention, an email will be sent to those moderators.

User ID matches expression​

New for 2.3 is an addition to the user criteria selector that allows CSS-style :nth-child selectors against user IDs. While this might initially sound like gobbledygook, there is a powerful application for this tool.

1698099926187.png


Let's imagine that you have a user group promotion that grants access to a 'Testing group' user group, and applies to all users with a 2n value for 'User ID matches expression. This promotion will apply to any user whose user ID is even. You can then enable specific functionality for users in the 'Testing group', and use various tools to measure their engagement with those tools, compared to those not in that group who do not have access to the changed functionality. In short, you have a quick and easy way to do A/B testing on your entire user base.

Of course you don't have to limit your testing to one group. You could set up 3n, 3n+1 and 3n+2 criteria on three separate promotions to divide your user base into three groups, or set up segregation however you like.
 
Last edited:
It's nothing to do with Apple or a cost associated with an app.

It's simply a video which is shown to members with Apple devices to show them how to add the icon to the home page.

You don't need to set anything up, it's automatic.
Doesn't "Sign in" imply adding oauth or something which from what I've been told does cost? I'm a bit confused tbh.
 
Okay, so I was referring to the PWA video which was mentioned earlier.
I think I must have replied to the wrong alert or something.

For the Apple sign in, yes you will need a developer account but it won't cost anything but it will cost you $99 a year ... nice one Apple.
 
Okay, so I was referring to the PWA video which was mentioned earlier.
I think I must have replied to the wrong alert or something.

For the Apple sign in, yes you will need a developer account but it won't cost anything.
Yea, if it's a like $100 yearly fee, that's out of my budget at the moment (IIRC, Google Play is like 100/yr for an actual app). Right now, I'm relying on a friend who paid for my license renewal, who's patient in letting me pay him back once I find a reliable job (there are almost none within biking distance here, and I don't have a car).
 
Sign in via a third party such as Google or Apple does not require an app.

Visitors simply click on one of the links to register/sign in via that provider.

1698191315474.png
 
For the Apple sign in, yes you will need a developer account but it won't cost anything.
For an Apple Developer Account it will run you $99 a year and is required for Sign in with Apple. To my knowledge there is no free way to set this up without the developer account.
 
For an Apple Developer Account it will run you $99 a year and is required for Sign in with Apple. To my knowledge there is no free way to set this up without the developer account.
Fair enough.

I've never used Apple so had no idea - no other provider charges for sign in via their service as far as I am aware.

It doesn't actually mention the cost anywhere on https://developer.apple.com/sign-in-with-apple/ as far as I can see.

I guess they must really need the money ...
 
For an Apple Developer Account it will run you $99 a year and is required for Sign in with Apple. To my knowledge there is no free way to set this up without the developer account.
Correct. It’s annoying if it’s the only thing you need the developer account for (not worth it imo). It was more or less done as a way that app developers could allow the users of their apps to sign on to the app website after they registered for their app.

There’s nothing preventing someone from using it without an actual app, but you still incur the cost of the full blown developer program membership.

It’s effectively password-less sign-in that only works on Apple devices and costs money. Will be better to roll Passkey support into XenForo someday (free and works on all the devices).
 
Would existing links change if headings are added to existing content?

Eg. I create a post with 2 headings and put the link for the second heading in my signature.
Afterwards I add a 3rd heading between the first and second heading.

Would the link to the third (initially second) heading still work?
Yes. The heading slugs are generated from the contents of the heading tag; i.e. a link friendly version of the heading itself.
 
Anchor links for headings
This might seem like a small thing, but in my case, it's remarkable. Thank you! When using XenForo articles, I heavily rely on headings because they are essential for structured texts and important guidelines in text composition. As questions arose in the forum regarding these guidelines (perhaps already explained in some section of some article), I was forced to share the article's link or use the quote function. However, with this addition, everything will be much simpler.

May I venture to ask (if possible) if there's a possibility of an index of titles within the article (admin-side toggle on/off) and displaying it, for example, before the text? And another thing: will it work with HTML pages? I'm thinking about HELP pages and page nodes.

I hope it is translated correctly
 
Yes. The heading slugs are generated from the contents of the heading tag; i.e. a link friendly version of the heading itself.
Thanks for the feedback :)

So an article like

Comparing Notebook A vs. Notebook B vs. Notebook C​

Text

Notebook A​

Text

Display​

Text

Performance​

Text

Power Consumption​

Text

Notebook B​

Text

Display​

Text

Performance​

Text

Power Consumption​

Text

Notebook C​

Text

Display​

Text

Performance​

Text

Power Consumption​

Text

would work and I could directy link to Notebook B section Power Consumption?
 
Correct. It’s annoying if it’s the only thing you need the developer account for (not worth it imo). It was more or less done as a way that app developers could allow the users of their apps to sign on to the app website after they registered for their app.

There’s nothing preventing someone from using it without an actual app, but you still incur the cost of the full blown developer program membership.

It’s effectively password-less sign-in that only works on Apple devices and costs money. Will be better to roll Passkey support into XenForo someday (free and works on all the devices).
Small point of correction; it doesn’t only work on Apple devices. Sites that implement Sign In with Apple lets their users login on any device using their Apple ID.

The only difference is that logging in using an Apple device will bypass the need to actually login as you’ll get the little “Do you want to sign in to this site using your Apple account” pop-up.

Agree with the point of it not being worth it just for SSO though. Just so happens that if you sell things via Stripe and you already have a dev account due to Apple Pay… 👀
 
How big are the files your users are uploading


Jokes aside, we offer our members to upload both images and videos to our gallery. Size of photos vary greatly depending on the photographer, but rarely have a problem on the photo size. The problem is for video, even if we cap smaller sizes, most generally exceed 100MB. For larger videos we want to place into the gallery, it's a pain since we cannot direct upload via the site, we'll have to FTP up. The reason why I mentioned 100 MB specifically, is Cloudflare has caps on all of their plans. Even upgrading to business tier, we hit a 200 MB cap, which is barely enough to upload a short promo-video in 4k quality.
 
Top Bottom