Recent content by NikitOS

  1. NikitOS

    XF 2.2 Exclusive folder from addon build

    You can put your files in the _no_upload directory: it will not be included in the addon build. If this method is not suitable, you can remove the files during the build process by executing the appropriate command. For example, let's remove the test.txt file from the add-on root: { "exec"...
  2. NikitOS

    String style ID

    At the moment, styles only have an auto-incrementing numeric identifier. It would be nice if the developer of the style could also specify their own string ID for the style, like addon IDs (but without the uniqueness requirement, of course). In some cases this can be useful, for example: To...
  3. NikitOS

    Fixed Typo in mail template rendering exception message

    There is a typo in the exception message in the XF\Mail\Mailer::renderMailTemplate function: "Template mail:$name did not render to anything. It must provide either a text or HTML body." The template prefix must be email:.
  4. NikitOS

    Not a bug Escaping unicode in addon.json when bumping version

    The xf-addon:bump-version command overwrites the addon.json file with the new version, but the json_encode function escapes Unicode, so values with Unicode characters become unreadable. Before: "extra_urls": { "Тест": "https://example.com/" } After: "extra_urls": {...
  5. NikitOS

    XF 2.2 How can I delete quickly all approval queue?

    @Dkf, there can be not only posts in the approval queue, but also users, threads, etc. Please provide the result of this request to determine if there is anything other than posts: SELECT DISTINCT content_type FROM xf_approval_queue In any case, you can clear the xf_approval_queue table to clear...
  6. NikitOS

    XF 2.2 I no longer seem to have the Merge Option in thread management

    This option is located in inline moderation:
  7. NikitOS

    [OzzModz] Job Runner Manager

    It seems to me that it is necessary to prohibit the deletion of cron, xfUpgradeCheck, fileCheck and xfCollectStats jobs, if not always, then at least when the developer mode is disabled, so that users do not break anything.
  8. NikitOS

    Fixed Outdated phrase

    There is an outdated link in the phrase you_can_preview_icons_and_their_names_here. New link: https://fontawesome.com/v5/search.
  9. NikitOS

    Thread Titles Manager

    And it must extend XF\Admin\Controller\AbstractController, not public.
  10. NikitOS

    XF 2.2 How to assign a forum style to logged in users?

    If you want to allow style change for all registered users, you can replace MV\CForceUserStyle\XF\Entity::canChangeStyle with this: public function canChangeStyle(&$error = null) { return $this->user_id && parent::canChangeStyle($error); }
  11. NikitOS

    XF 2.2 How to assign a forum style to logged in users?

    @styui, I think this add-on solves the problems that @Anatoliy had. Regarding your question: isn't this behavior out of the box? Guests see the default style and it will also be selected from them during registration. An exception is a style change by a user while he was a guest.
  12. NikitOS

    XF 2.2 class Purchase implements \ArrayAccess -> could I extend it?

    I have an add-on that changes the cost and currency for all payment providers and it changes those values in the insertPurchaseRequest repository function, and there is no problem with any payment providers.
  13. NikitOS

    XF 2.2 class Purchase implements \ArrayAccess -> could I extend it?

    For cost to display? At that time, it is not clear what the cost will be, because several payment profiles can be used for the purchase. In any case, you can get the desired payment profile through the finder. No.
  14. NikitOS

    XF 2.2 class Purchase implements \ArrayAccess -> could I extend it?

    In addition to the above extension, you need to extend XF\Data\Currency::languageFormat and change the value variable.
  15. NikitOS

    XF 2.2 class Purchase implements \ArrayAccess -> could I extend it?

    You can extend the XF\Repository\Purchase class and change the cost in the insertPurchaseRequest function. public function insertPurchaseRequest(XF\Purchasable\Purchase $purchase) { $purchase->cost = 123; return parent::insertPurchaseRequest($purchase); }
Top