Recent content by Dr.XGB

  1. Dr.XGB

    XF 2.3 Unable to extend Repository classes

    Nice! It worked! 😃 It makes sense because the \XF::repository() takes the original class. So the extension is applied following the addons. This thread may be closed. The problem was solved. Thanks for the help!
  2. Dr.XGB

    XF 2.3 Unable to extend Repository classes

    Hello! I'm migrating my addons to XF 2.3 and I ran into a problem when exntending some Repository classes. The new version now uses a better naming convention to its classes (and that's great) such as \XF\Repository\Thread now is \XF\Repository\ThreadRepository, for example. After setting my...
  3. Dr.XGB

    Lack of interest Code event listener for overriding phrase params before rendering

    Oh, I see. Something like an event called phrase_pre_render and phrase_post_render that can be fired when \XF::Language::renderPhrase() is called, right?
  4. Dr.XGB

    Lack of interest Code event listener for overriding phrase params before rendering

    You can extend the XF\Language class an then override the renderPhrase function. Here's an example how to remove vowels from a phrase: <?php namespace My\Addon\XF; class Language extends XFCP_Language { public function renderPhrase($name, array $params = [], $context = 'html', array...
  5. Dr.XGB

    XF 2.2 Running xf-dev:entity-class-properties to XF subfolder

    Hello! o/ Maybe my question can sound like something dumb. So sorry for that. Let's imagine the scenario: Let's suppose that I have an addon called "Portal" (XGB/Portal), for example. The addon folder has the following structure: -- www/src/addons/ -- XGB/ -- Portal/...
Back
Top Bottom