XF 2.3 What's new in XenForo 2.3.8?

Although you may be anticipating a XenForo 2.4 HYS, we invested considerable effort in 2.3.8, resulting in new functionality significant enough to deserve its own announcement. XenForo 2.3.8 will be released today!

Retina thumbnails​

To ensure attachments are displayed at a much higher fidelity, especially on high-DPI displays, we now generate two versions of every thumbnail. One which matches the configured size under Options > Attachments as usual and a second which is double that size which is displayed in place of the smaller one on compatible devices, resulting in a better quality viewing experience.

Null coalescing operator (??) support​

To catch up with some of the slightly more recent syntax niceties in PHP we have added null coalescing operator support to XenForo template syntax:

HTML:
<h1>Hello {{ $foo.property ?? $bar.value ?? 'World' }}!</h1>

REST API support for Search​

There are new API endpoints for performing searches and retrieving results. You can read more about the available endpoints in our REST API page.

New xf:addon-list CLI command​


Ever needed a quick view of which add-ons are installed and enabled while on the CLI? Yeah, me too!

Code:
php cmd.php xf:addon-list --help
Description:
  Lists installed add-ons

Usage:
  xf:addon-list [options]
  xf-addon:list

Options:
      --active          Only show active add-ons
      --inactive        Only show inactive add-ons
      --json            Output as JSON
      --verbose         More detailed output

Code:
php cmd.php xf-addon:list
 ----------- ------------------------- --------- --------
  Add-on ID   Title                     Version   Active
 ----------- ------------------------- --------- --------
  XFES        XenForo Enhanced Search   2.3.8     Yes  
  XFMG        XenForo Media Gallery     2.3.8     Yes  
  XFS         XenForo Site              3.10.0    No   
 ----------- ------------------------- --------- --------

 Total: 3 add-ons (2 active, 1 inactive)

New xf-make commands for developers​

Scaffolding your next add-on has never been easier. Use the new xf-make commands to generate common code constructs with ease with much less context switching back and forth from your developer tools and the admin control panel.

Code:
    xf-make:extension    Create a new class extension
    xf-make:finder       Create a new finder class
    xf-make:service      Create a new service class
    xf-make:route        Create a route and optionally its controller
    xf-make:repository   Create a new repository class
    xf-make:template     Create a template in the master style
    xf-make:job          Create a new job class
    xf-make:cron         Create a cron class and register a cron entry
    xf-make:entity       Create a new entity class
    xf-make:controller   Create a new controller class
    xf-make:listener     Create a listener class and register an event listener
    xf-make:phrase       Create a phrase in the master language
    xf-make:cli-command  Create a CLI command class
    xf-make:stub-publish Publish stub templates to an add-on for customization.

You can pass arguments and options in explicitly or, alternatively, all commands default to "interactive" mode with no options passed:

Code:
# php cmd.php xf-make:extension

 What class do you want to extend?:
 > XF\Entity\ForumWatch

 Which add-on is this for? []:
  [XFES       ] XFES - XenForo Enhanced Search
  [XFMG       ] XFMG - XenForo Media Gallery
 > XFMG


                                                                                                                     
 [OK] ClassExtension created successfully.                                                                           
                                                                                                                     

 ----------------- -----------------------------------------------------------------------
  Property          Value                                                               
 ----------------- -----------------------------------------------------------------------
  Extension Class   XFMG\XF\Entity\ForumWatch                                           
  Base Class        XF\Entity\ForumWatch                                                
  File              /path/to/src/addons/XFMG/XF/Entity/ForumWatch.php
 ----------------- -----------------------------------------------------------------------

                                                                                                                     
 [OK] Class extension registered in database.
 
Turns out that 2.3.8 did actually break something for me: my posts per day under the avatar of every user as they all read zero now. It was done with a one line hack in the theme and it's not clear why it broke. I've not noticed any other problems.
 
Turns out that 2.3.8 did actually break something for me: my posts per day under the avatar of every user as they all read zero now. It was done with a one line hack in the theme and it's not clear why it broke. I've not noticed any other problems.
Where is posts per day? I can't even see it! Is that part of an addon?
 
ppl, thanks for trying to help.

Have a look below where it shows (0.00/day). That zero is supposed to be non zero for someone with enough posts, so for me, it was around 4.57 before the upgrade.

Yes, it was a few lines of extra code in template message_macros by someone who knows a lot more than me about these things. He was kind enough to show me, so I looked at his example and managed to integrate it into my template a few years ago when I first started my forum and never had a problem with it until now.

Looking at the ACP, it shows message_macros needs to merge, but when I click Merge in outdated templates, I get error "No previous version of the parent could be found. Merging is not possible".

There's three templates that generate this error:

XenForo Theme (Dark Blue) where I think the problem is and a couple of Core Pixel Exit themes that badly need an update to the latest version, but they've never gone live*, so I've not done anything with them and are likely irrelevant to this issue. In fact, they never showed the posts per day as I hadn't added that line to them and was on my todo list.

I need to find the original template that I modified and see if I can spot the problem, but as it still shows that line, but with no data, I'm not sure I'll be able to figure this out.

Ok, I found it and the addition is present and correct, so I have no idea why it doesn't work. :(

1769987837920.webp


*They're actually selectable by anyone, but I've not done anything with them so they don't look right. I'd have to renew to get the latest version, too.
 
Last edited:
In XF 2.4 give end users/customer says to integrate AI options..
That's the way to protect slowly diminishing forum era and increase xenforo customers..
 
isn't it possible to just run it in a screen and just forget about it? but yeah resume support would be nice to have if you have millions of attachments!
 
isn't it possible to just run it in a screen and just forget about it? but yeah resume support would be nice to have if you have millions of attachments!
If you have to reboot the machine your are running Putty on, there is ne resume.
 
i was wrong. i really should check stuff thoroughly. there is resume support as paul mentioned just above.
 
Back
Top Bottom