extend

  1. giperfast

    XF 2.2 Updating a new user entity field via REST API

    I extended the "XF\Entity\User" class to add a new field to get it when authorizing with ('api/auth/from-session'). The code looks like this: class User extends XFCP_User { protected function setupApiResultData(\XF\Api\Result\EntityResult $result, $verbosity = self::VERBOSITY_NORMAL, array...
  2. Nulumia

    XF 2.1 Extend navTree array from custom options?

    I'm trying to add a few values (string/boolean) to the navTree array, following the typical title, href, attributes: $navTree: "home" => array [ "title" => "Phrase" "href" => "" "attributes" => [] ] "forums" => array [ "title" => "Phrase" "href" => "" "attributes" => []...
  3. logixsol

    XF 2.0 How to set custom field value in extend class method.

    I have created a custom field in registration form, When someone register that value shows on user profile. That okay. Now, Question is, I want to add the value of another custom field, dynamically When user try to register. I have extend the Pub/Register method actionRegister() and get the...
  4. Earl

    XF 2.0 Having trouble extending \XF\FileWrapper. Can anyone spot my problem?

    What I'm trying to do is: I wanna add some metadata to a file and modify it as soon as it uploads as an attachment. (before hash calculations etc) So I thought overriding beforeNewAttachment method in AbstractHandler would do the trick. XF\Attachment\AbstractHandler public function...
  5. CMTV

    XF 2.0 Extending help page

    Hi! How can I change the settings of "Trophies" help page with my addon? Is it even possible? More specifically I need to change "Page content" field.
  6. Cyb3r

    How to extend the view

    I have a paid add-on and I would like to extend it's view to members card, how hard is it going to be and how many files do I have to modify? Thanks in advance.
Top Bottom