XF 2.0 What's new in XenForo 2.0

Much of this information will be familiar to those who were following the development process over at the XF2 Demo Forums, but this is something of a ‘greatest hits’ list of some of the important changes and improvements to XenForo since the 1.x generation.

Greatly-enhanced mobile-friendly style

The new XenForo 2 style is the first thing you will notice in XF2. The entire style has been redesigned with a fresh new appearance, but also with mobile browsing at the forefront of the design. When the viewport shrinks, on-page content shrinks, shifts and reorganises itself automatically to optimise the browsing experience for small displays.

A sticky header automatically activates when the window is scrolled, allowing the most important navigation controls to remain available at all times.

responsive full.webp responsive wide.webp responsive medium.webp responsive narrow.webp

Emoji support* 👏 ✍️

All textual content in XenForo 2 now supports emoji, from message text to forum titles.

Retina avatar and smilie support

Avatars and smilies now support high-DPI imagery, allowing for a crisp, high resolution display to match the text on displays that support 2x resolution graphics, such as Apple's retina displays.

Navigation manager

Both the public-facing systems and the admin control panel now have completely customizable navigation systems, allowing the content of the navigation bars and side-navigation blocks to be entirely controlled by the site administrator without any need to resort to template modification.

nav mgr.webp

Widgets

Widgets are small blocks of content that can perform a variety of tasks, such as displaying a list of members online, or latest posts etc. Widgets can be placed into various pages within the public-facing side of XenForo using a simple interface, allowing you to build rich content-discovery systems into almost any area of the public forums.

widget mgr.webp

Enhanced message editing

Rather than opening an overlay, editing messages is now done entirely in-place, with the content of messages replaced by a full-fledged message editor that allows the complete range of editing and posting actions, including attachment management.

post edit.webp

Alerts in favicon

When new alerts or unread conversation messages are available, the site icon (shown in the browser title bar) will have a badge added to it, showing that there are items waiting to be viewed.

favicon.webp

Custom thread fields
An extension of the custom user field system, threads can now have their own custom fields, with all the functionality previously available for user fields. Thread fields can be displayed before or after message content, and can be made editable and optionally required before a thread is posted.

thread fields.webp

Member tooltip

XF1's member card has been replaced with a new member tooltip, which appears on the first click on a member's name. A further click will load the member's full profile page.

member tooltip.webp

CSS transitions replace Javascript animations

Leveraging modern browser capabilities, almost all of the animations seen in XF2 make use of CSS transitions rather than Javascript animations, resulting in smoother, less processor-intensive transitions between states.

Customisable member stats

The old member list page has now been replaced by an all-new, customizable member statistics system. Individual statistics (such as members with the most posts, most recently-registered members etc.) can be built using an interface in the admin control panel, and are then displayed as an expandable block on the members page.

member stats 1.webp member stats 2.webp

Generic payment framework

XenForo 2 has a new payment system that is open for development, meaning that add-on developers can quickly and easily build payment gateways for providers that are not part of the core system. Using this system, XF2 ships with a number of ready-made payment options that are easy to integrate with various system enhancements that administrators may define.

Attachments shown in previews

Content previews, such as those seen when hovering a thread title on the thread list page, now include attachments for a more complete and integrated preview experience.

Enhanced code block syntax highlighting

The [CODE] block system has been greatly enhanced to display syntax highlighting for a much wider range of programming and scripting languages through the use of [CODE=language] tags.

code equals lang.webp

What’s New and Find Threads

To aid in content discovery, XF2 includes a brand new 'What's new' system, which can fetch new content from all sources across the system, including threads and posts, profile posts, media items and resources. The architecture of the system is fully extensible, so add-on developers can hook into What's new in order to add their own content types to the results.

whats new.webp

Additionally, a new Find threads system provides quick links to unanswered threads (with no replies), threads you have started, and threads in which you have posted.

find threads.webp

New media embedding features

The BB Code Media system has been significantly enhanced, and now supports embedding Facebook posts, Tweets, Instagram photos, Reddit posts and comments, Spotify and Soundcloud tracks, albums and playlists and a whole host of others.

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.

The integration of oEmbed support allows almost any media to be embedded simply by pasting a link to the media within a message.

oembed.webp

Quick thread

Quick Thread is a brand new system for XF2. Above the list of threads on a forum page you will find a title entry box. Focusing this box and starting to type a thread title will load a quick message editor, in which you can post the content for the first post of your new thread. Hitting the save button will then post the thread, leaving you on the forum page rather than redirecting you to the thread page. This makes the process of creating a new simple thread extremely quick and easy.

qt 1.webp qt 2.webp

Thread prompts

In conjunction with Quick thread, Thread prompts allow the title input box to display a configurable prompt, giving members a hint as to what kind of content they should be posting in any given forum. Multiple prompts may be defined and assigned to forums, and an applicable prompt will be selected at random to be displayed to the user when the page loads.

Keyboard shortcut system and enhanced keyboard navigation

XenForo 2 includes an easy method to assign keyboard shortcuts to commonly-used controls, such as searching and opening the alerts list. These shortcuts are defined with simple template edits, and allow for very rapid navigation with a keyboard.

Additionally, the system can determine whether the user is currently using touch, mouse or keyboard navigation at any given time, and will highlight the currently-selected link or control appropriately when keyboard navigation is enabled, while hiding the selection when using touch or mouse methods.

New custom field options

Custom fields have had an overhaul for XF2, and now include a star-rating type, along with various validation options including dates and numbers. These enhancements apply to all custom field types, including user fields and thread fields, and are automatically available for any custom field types defined by add-ons.

custom fields.webp

HTML 5 input types

To make data input on mobile devices more friendly, we make more extensive use of HTML 5 input types, allowing specialised keyboards to be displayed in place of the standard character keyboard. For example, when an input requires only a number, a telephone-style keyboard is displayed.

Developer / designer mode

While XF1's WebDAV system has been retired, XF2 has a whole new range of enhancements for rapid style development, including a system whereby templates can be edited directly in the file system using any editor of your choice. In designer mode, when the system detects a modified template, it will be compiled ready for the next page view that requires that template.

designer.webp

CLI tools

For add-on developers and large board administrators, XF2 now includes a comprehensive suite of command line tools, allowing operations such as upgrades and add-on manipulation to be done from the terminal rather than having to operate through a web interface. This can be of huge benefit for long operations, such as recompiling all templates or upgrading a large site.

* Note that while emoji support is enabled by default on new installations, sites that have been upgraded from XenForo 1.x will require a script to be run in order to convert all text to a new emoji-supporting character set (utf8mb4). This can be a relatively long process, and administrators should perform test-runs to determine how long the process will take for their final upgrade.
 
I mentioned it in the demo site not long after it was put up so that is nearly a year then

He didn't say it was never mentioned.

Either way, I've also negatively noticed this behaviour a few times already, but wasn't annoyed enough by it to complain. It is just a simple click, albeit I have to perform it everytime.

I'd open up a suggestion for that. But just to throw it in: I'd rather let the user decide for himself what he wants instead of forcing a global setting upon him, so offering this on the preferences page might improve usability and satisfaction.
 
If that search checkbox thing is a big issue for you, you can create a template modification that sets checkbox active in threads.
 
If that search checkbox thing is a big issue for you, you can create a template modification that sets checkbox active in threads.
The same could be said to have it default to everything...better to leave it as it is now for all users to ensure continuity and better user satisfaction and get those few that want an "Everything" default to change their template. Who is being listened to here...a few soapbox admin people or the thousands and thousands of actual xenforo site users?
 
On one of my own sites some time ago when I was designing my site to suit there needs. I gave them a chance to design exactly everything they wanted from the ground up. I set up a default XF site on a spare domain where they joined in and discussed everything, every colour, every space, every font, every function, every addon etc etc etc...the site is for them, not me. One of the areas of discussion was the Search function which is one big element that differentiates forums from social media. One thing that did come out of the discussion on site searching was the ability to seach by less than 4 characters hence why my sites now use the XF enhanced search addon and much more. One of my sites www.recreationalflying.com was the outcome of the users power to define exactly what they wanted including the different menu system and much more.

Unfortunately once the site was created on their specs the development site was no longer needed so was removed but rest assured the users wanted the search as it is now. For v2 I have again set up a demo site which the users will again define and whilst it is still early days I will bet anyone $10 that they will say the same things including the canning of the new search style...been there done that before. In fact a lot of them are saying don't touch the site as it is perfect, afterall they designed it.
 
You could do this with CSS (probably preferable) or you could just change the title of the tab in the navigation system and add the documented Font Awesome 4 markup:

View attachment 157866

That would look something like this:

View attachment 157867
@Chris D, is it possible to do this for "Convert URLs to page titles" somehow? I tried this, but just had the HTML appear. Otherwise, I think I will have to go with doing this in EXTRA.LESS as I have done in the past.


1509213682824.webp


EDIT: I added this to EXTRA.LESS and it appears to work...

CSS:
/* Icon behind external visitors links */
a.link--external:after {
    font-family:'FontAwesome';
    content: "\f08e";
    padding-left: 3px;
}
 
Last edited:
I much prefer the new global search, start wide by default and refine it if you need to.

If you want a context sensitive search that defaults to threads when inside them you could create a mod add an additional thread search icon next to 'Jump to New' and 'Unwatch' buttons at the top of the thread.
 
Why not have it the way it is now, less impact to users, better continuity for users, plus you could just have a checkbox "Everywhere" if you like which only requires one click than to have to click twice every time you want a specific search...which for most people is everytime besides why do the other popular forum software have it this way...perhaps they are listening to the real customers, the actual users of their clients sites
 
We do listen.

That's why we changed it to the new approach in XF2.
But as you said below, only some supporters wanted the change and yet the many non supporters (customers members) do not as you all have been advised.
There have actually been some supporters of this change and it was made solely because feedback shows us over the last 7 years that people are getting confused because they've used search and they're not seeing the results they want because they don't realise the search was automatically constrained.
So to remove some peoples confusion rather than them learning the system, changes are made that cause more confusion for others.
That's to me is like removing fuctionality in MG because some people couldn't grasp or want to learn how to use it right.
I guess this means we can expect a major overhall of the permission system because many are confused how to set it up right?
 
I have started a poll on my own site showing the 2 aternatives and AGAIN although it has only just started it is showing a user preference to the previous way. Just like what other forum software does like Invision etc. The ONLY way you can get a true indication is what a site users want NOT a developer or a site Admin. Sorry Chris but you are asking the wrong people and making bad decisions from this. Remember Search is what a forum has over social media
 
Frankly, we're not changing it at this point. Again, we've had nearly a year to collate feedback on such things and it hasn't been forthcoming enough to suggest we've made a wrong decision here.

If you'd like to make a Suggestion thread here, then feel free to do so and we'll consider it for a future release if the subsequent feedback makes a compelling case for changing it back.
 
I just wanted to add some further comments just to prove we're not just making changes for the sake of it and making up reasons to do or not do something.

The following threads were found by a single very quick search, I'm certain there's many more comments about the subject plus a fair number of tickets on the subject too. Every single one of these threads contains some sort of feedback about problems arising from the old defaults. There's even an XF1 add-on which removes the old defaults with some further comments in the reviews.

Forgive me for not commenting on each individually or spending further time on this but obviously our priority now is to get XF 2.0 stable out of the door and then we can evaluate what further feedback we get as it gets into the hands of many more customers and many more members.

https://xenforo.com/community/threads/improve-search-algorithms.31514/#post-360515
https://xenforo.com/community/threads/my-finger-is-on-the-buy-button.41628/page-2#post-449237
https://xenforo.com/community/threads/th-search.39486/#post-626468
https://xenforo.com/community/threa...s-after-moving-site-to-vps.75084/#post-772411
https://xenforo.com/community/threads/how-do-you-use-the-xenforo-search.68512/#post-718238
https://xenforo.com/community/threads/errorexception-undefined-index-name.30388/#post-347974
https://xenforo.com/community/threads/search-function.114596/
https://xenforo.com/community/threads/bug-search-this-forum-only-selected-by-default.27624/
https://xenforo.com/community/resources/search-all-forums.3187/reviews
 
As always thanks Chris but I still feel there is a fundermental error in your approach to getting feedback and acting on it. The feedback in the demo is predominately from developers and a minority of Admins. I raised the concern nearly a year ago but got the same party line that is being said now instead of any attempts to get real feedback to base decisions on i.e. from actual site users. So nearly a year later and the only difference to the party line is that it is too late to change it now...so far in just a very short period of time a whopping 85.7% of my users want the old way...perhaps you should have asked everyone to ask their users instead of basing important decisions on a single source of biased individuals and what you are also saying is Invision and other forum software developers are ALL wrong except for you...with all due respect Chris!...85.7% users, yes actual users which is whom we have sites for...this reminds me of a way another company went, I think their name was vBulletin...I say no more
 
I started reading @Chris D 's links and stopped when I came to this particular one and likely the biggest reason why it is how it is now. Never mind your 85.7% users (plenty of other ADMIN's users complained for the opposite of yours I'm sure).

This is incredibly silly but I suspect this was caused by "search this forum only" being ticked by default. Basically users (and I) were trying to perform a search inside a forum where there was nothing to return from search query. Repeating the search straight away performed it over whole site returning search results...

That was from the 4th linked post in Chris' message above, I'd rather choose to refine my search results than be presented with zero results because of a defaulted checkbox. Also I'm quite sure you'll be able to customize your site to suite the needs of your users.
 
I disagree that there's any fundamental issue with our approach to gathering feedback. The entire point of launching the demo and having an extended beta process was so that developers and admins alike can feedback to us on things just like this and they did. We've made many changes based on feedback over the course of the last year and that feedback has come from developers and admins. Many admins have collated feedback from their users and given that to us. Where it is practicable we have listened and implemented changes.

You claim that we haven't got real feedback from actual site users but my previous post proves we absolutely have had real feedback and that is what we have acted upon here.

We're a matter of weeks away from a stable release out of a total testing phase which has lasted a whole year, so, yes, now is too late and we must concentrate on the task at hand which is to release the stable product.

To be clear: I'm not saying that there can't be a compromise either way or that there isn't some other solution out there, but right now this is our chosen solution and it has been made with the very best of intentions and based on a lot of feedback over a much longer period than this testing phase.

We are listening and are open to considering other solutions in the future. But just as you feel passionately about this and want your user's voices to be heard, we also can't just ignore the voices of many other users who feel the opposite.
 
Chris, with the new search having the text "Everywhere" as the default, I am assuming that it will be be misleading to users on any site that adds an add-on that collects data as the search will not search the add-on data unless the add-on developer includes their add-on into the XF search function...most add-ons have not done this in the past. I would be right to say then that every site that adds an add-on that has data will need to change the text used in the XF core installation...or else the wrong message is sent to users...they would be thinking they are searching the whole site (Everywhere) when in fact they are not. Again another problem with the new search...incidentally my users are now at 92.3% don't want the new search. A bad move that will make most sites have to change things from the core
 
Basically what people on both sides want:

search.webp


But XF2 is so close to the final release I don't think this is going to see the light of day in the nearest future.

I'll have to admit I hated that search within the forum feature at first, but then it eventually grew on me and I miss it quite a bit because it's very rare that I want to do a global search on the forum. And even if I do I am usually on the homepage.

EDIT: actually it would be smart to allow search refinement on the search results page the same way it's done in the template\phrase search. So that you can quickly adjust where and what to search after you've made a request. But of course with search location picker done in tabs and not in a dropdown menu.
 
Last edited:
Question on Custom Fields per thread.
Is the Custom field going to be applicable only to the first post in the thread or for even replies.
There would be use case where the custom fields are needed only in the first post in thread and not to replies. So, is this use case covered?
 
Back
Top Bottom