• Статья
When/how is code_cache phrase_groups rebuilt?

I did a MySQL query to replace phrases and couldn't seem to figure out why they weren't changing in some places.

I found them hardcoded in /code_cache/phrase_groups l0 and l1.

Removing these folders showed the new phrases done by MySQL edits.

However, there's no more cache for these.

Is this the way to do it? How do I rebuild phrase_groups? Is it better to put l0 and l1 back and then edit the PHP files?

$ php cmd.php xf:rebuild-master-data doesn't seem appropriate here as the...

Read more

Читать далее...

  • Статья
False positive about multiple classes declared in the same file with phpstorm & extension_hint.php

The generated extension_hint.php file is used to create developer aliases for IDE autocompletion. However if phpstorm analyzes this file it generates warnings/errors for multiple classes being defined in the same file.

This can be supressed by emitting the following at the top of the file:
Code:

Код:
<?php
...
/**
 * @noinspection PhpMultipleClassesDeclarationsInOneFile
 * @noinspection PhpIllegalPsrClassPathInspection
 */

Читать далее...

  • Статья
Unstable sort for extension_hint.php

When extension_hint.php is exported, the sorting can be unstable from install-to-install.

This is because the query lacks needs a sort clause on the more clauses. Ideally this should sort by from_class and then to_class
PHP:

Код:
	public function getExtensionCacheFileValue($addOnId)
	{
		$finder = \XF::finder(ClassExtensionFinder::class)
			->where('addon_id', $addOnId)
			->order('to_class');
		$extensions = $finder->fetch();

Читать далее...

  • Статья
Change Post Date by Xon

Xon submitted a new resource:

Change Post Date by Xon - Change Post Date as an inline moderator option

Adds the in-line moderator option "Change Post Date".

New Permissions
  • Change Post Date
Performance impact

The actual post date change is very fast, and only causes the thread data to be re-indexed. However, if position counters in the thread are detected to be incorrect they will be rebuilt.

This ensures the end-user isn't impacted by...
Click to expand...

Read more

Читать далее...

  • Статья
Приветствуем нового пользователя, wsc0110x

@wsc0110x, Добро пожаловать на наш форум! Территория возможностей 💥 😉

Зарегистрированный пользователь не может скачивать ресурсы ознакомившись с условиями на странице с повышениями групп или в личном профиле!


Описания платных групп:

  • Статья
Layout completely broken. Any help?

Today for some reason my forum simply crashed.
When I tried to rebuild the general cache I got the following error message:

Error: Call to a member function getCommentTitle() on null in src/addons/ThemeHouse/Donate/Entity/Comment.php at line 294
  1. ThemeHouse\Donate\Entity\Comment->getCommentTitle() in src/addons/ThemeHouse/Donate/Search/Data/Comment.php at line 33
  2. ThemeHouse\Donate\Search\Data\Comment->getIndexData() in...

Read more

Читать далее...

  • Статья
OAuth2 - Undefined array key "host"

Trying to follow public auth flow and am receiving the following error after code challenge completes.

ErrorException: [E_WARNING] Undefined array key "host" src/vendor/lusitanian/oauth/src/OAuth/Common/Http/Uri/Uri.php:88

Code:

Код:
Request:
array(4) {
  ["url"] => string(491) "/oauth2/authorize?client_id=redactedint&response_type=code&redirect_uri=moo%3A%2F%2Fauth%2FsignIn&scope=alert%3Aread+read+user%3Aread&code_challenge_method=S256&code_challenge=redacted-readacted"
  ["referrer"] =>...

Read more

Читать далее...

  • Статья
Creating custom User banner styling

Brogan submitted a new resource:

Creating Custom user banner styling - More or less

By default, XF comes with the following user banner styles:

View attachment 209097

Creating custom styling using the Other, using custom CSS class name option is fairly straightforward.

This guide will explain how to.

The easiest way by far to add new prefix styling and to ensure it inherits all of the core styling is to edit the app_user_banners.less...
Click to expand...

Read more

Читать далее...

  • Статья
[solved] Two-step verification: does not authenticate

Is two-step disabled by default for everyone?

One of our members posted this question:
I did check the box of 2FA on this account and even logged it with the authenticator App but it doesn't appear to be working. The 2FA never verifies and I can log on just with my encrypted password and username.

Am I doing something wrong or is it a forum bug?


I looked at the permissions and it is ticked OFF globally for that group.

IF I set it up at YES, I'm understanding that it...

Read more

Читать далее...

  • Статья
Why are you running an EOL version of PHP?

You may have noticed that with the release of XenForo 2.2.5 today, we have started to recommend PHP 8 as the ideal version for XenForo. PHP 8 is a huge step forward from PHP 7 and we'd love to be able to take advantage of it some day.

But our statistics show that there are still large numbers of XenForo licensees running the latest versions of XenForo on ancient versions of PHP like 7.0 - there is even a fairly large contingent still on PHP 5.6.

It's a bit galling to have to make the...

Read more

Читать далее...

  • Статья
xf 2.3 style breaking link

prior to updating to version 2.3, I have a template using js to open a window to:
https://domain.com/files/blah/blah.

This still works when using that style. However, after upgrading to 2.3, I created a new child style from the default theme, and the same template, in both the default theme and it's child theme, will open the link as:
https://domain.com/xenforo/files/blah/blah

https://domain.com/xenforo is the base path to the forums. I've checked a dozen time to make...

Read more

Читать далее...

  • Статья
Entire job system not processing - XF 2.3

After upgrade/migration and rebuild master data:

Code:

Код:
MariaDB [wf_test]> SELECT * FROM xf_job;
+--------+----------------+---------------------+--------------+----------------+--------------+---------------+----------+----------+
| job_id | unique_key     | execute_class       | execute_data | manual_execute | trigger_date | last_run_date | attempts | priority |
+--------+----------------+---------------------+--------------+----------------+--------------+---------------+----------+----------+
|...

Read more

Читать далее...

  • Статья
Coinbase Commerce Integration [Paid]

nanocode submitted a new resource:

Crypto Payments - Accept cryptocurrencies (Bitcoin, Ethereum, etc.) as a payment method.

Crypto Payments allows you to accept cryptocurrencies such as Bitcoin, Ethereum, Litecoin and Bitcoin Cash.

Give your users more payment method choice, and protect yourself from fraud and chargebacks, by accepting cryptocurrencies.

View attachment 191310View attachment 191309View attachment 191308


Gateways
Supported gateways: Coinbase Commerce
Planned...
Click to expand...

Read more

Читать далее...

  • Статья
Passwordless logins with passkeys

First thing's first, don't panic, don't rush to your customer area, there is no Beta 3 release today! We are likely to be moving the remaining HYS posts to Thursday/Friday, coinciding with those features rolling out to this very forum so we get some extended testing and feedback before they appear in a subsequent Beta.

Next order of business, before we get into what's coming in Beta 3, is a big thank you to Shawn, AKA @digitalpoint. We're big fans of Shawn's work and he's genuinely a...

Read more

Читать далее...

  • Статья
[Xen-Soluce] Hide BB Code Reply [Paid]

XenSoluce submitted a new resource:

[Xen-Soluce] Hide BB Code Reply - This add-on allow you to add the BB Code [HIDE-REPLY] and more to your forum.

Description :
  • This add-on allow you to add the BB Code [HIDE-REPLY] and more to your forum.
Feature summary :
  • Permissions :
    • Can bypass hide reply
    • Can use hide reply
  • BB Codes :
    • [HIDE]
Branding :
  • This add-on does not include branding.
...
Click to expand...

Read more

Читать далее...

  • Статья
Log in show message [Paid]

AndyB submitted a new resource:

Log in show message - Shows message during login.

Premium upgrade:

This XF2 add-on along with the entire collection can be purchased for $35.00 USD. Your Premium upgrade will allow you to download as many XF2 add-ons as you like for one year. Please see the entire collection located in the Resources area at this URL:

XF2 Addons

Description:

Shows message during login.

(Example of log in message)...
Click to expand...

Read more

Читать далее...

  • Статья
Приветствуем нового пользователя, han

@han, Добро пожаловать на наш форум! Территория возможностей 💥 😉

Зарегистрированный пользователь не может скачивать ресурсы ознакомившись с условиями на странице с повышениями групп или в личном профиле!


Описания платных групп:

  • Статья
Приветствуем нового пользователя, lesnik

@lesnik, Добро пожаловать на наш форум! Территория возможностей 💥 😉

Зарегистрированный пользователь не может скачивать ресурсы ознакомившись с условиями на странице с повышениями групп или в личном профиле!


Описания платных групп:

  • Статья
\XF\Entity\Thread::getCoverUrl() may cause undefined array key

XF\Entity\CoverImageTrait::getCoverImageInternal()

PHP:

Код:
/** @var Attachment $attachment */
if ($embeddedAttachments[$attachment->attachment_id])
{
    continue;
}

This calls \XF\Mvc\AbstractCollection::offsetGet()
PHP:

Код:
public function offsetGet($key): ?Entity
{
    return $this->entities[$key];
}

As can be seen, this directly accesses the internal array without checking if the key exists, so if it does not exist this generates a warning Undefined array key ......

Read more

Читать далее...

  • Статья
[DBTech] DragonByte Bluesky Poster

DragonByte Tech submitted a new resource:

[DBTech] DragonByte Bluesky Poster - Automatically post new threads to Bluesky.

Instantly share new threads posted in select forums with Bluesky. It supports adding hash tags, pre-defined or manually during posting, and prevents your posts from exceeding the 300-character limit.

Why use Bluesky Poster?

Bluesky Poster allows your users to stay updated with your forums' news even while they're not at the computer, by having...
Click to expand...

Read more

Читать далее...

Фильтровать

Назад
Верх Низ