Recent content by Mellow1234

  1. Mellow1234

    XF 2.0 Change the node icons

    Thanks, never saw that one...
  2. Mellow1234

    XF 2.0 Change the node icons

    Thanks!.. what would work for the subnodelink s that show the smaller icons?
  3. Mellow1234

    XF 2.0 Code for Relation - User/User_Field_Value

    Okay, had to add to /src/XF/Entity/userfieldvalue.php $structure->relations = [ 'User' => [ 'entity' => 'XF:User', 'type' => self::TO_ONE, 'conditions' => 'user_id', 'primary' => true ] ];
  4. Mellow1234

    XF 2.0 Code for Relation - User/User_Field_Value

    do I have to add the relation to: /src/XF/Entity/user.php ? That doesn't seem right to me...
  5. Mellow1234

    XF 2.0 Code for Relation - User/User_Field_Value

    I'm getting this error: LogicException: Unknown relation User accessed on xf_user_field_value in src/XF/Mvc/Entity/Finder.php at line 651 with the code below, is there something I have to do to define the relation? I was assuming that one just exists via user_id. <?php namespace Mileage...
  6. Mellow1234

    XF 2.0 Giving users of 1 user group, different colors on their usernames

    Ah.. my bad.. yeah, that would get pretty ugly...
  7. Mellow1234

    XF 2.0 Callback Help.

    That's it! got 10 lines so I'm getting something I can work with... Thank you very much and also to everyone else that chimed in.. sorry if I was a bit dense at times...
  8. Mellow1234

    XF 2.0 Callback Help.

    OK, so using my php above.. and this is my page setup, but I don't get any results or errors that I can find...
  9. Mellow1234

    XF 2.0 Callback Help.

    <?php namespace Mileage; class Mileage{ public static function getMileage(){ $finder = \XF::finder('XF:User'); $usernames = $finder->limit(10)->fetch(); return $usernames; } }
  10. Mellow1234

    XF 2.0 Callback Help.

    Didn't work, please see post above yours.
  11. Mellow1234

    XF 2.0 Callback Help.

    Also tried this return $usernames; but get a server log erorr. Object of class XF\Mvc\Entity\ArrayCollection could not be converted to string src/XF/Template/Templater.php:1339
  12. Mellow1234

    XF 2.0 Callback Help.

    Ok, thanks but didn't make a difference.. <?php namespace Mileage; class Mileage{ public static function getMileage(){ $finder = \XF::finder('XF:User'); $usernames = $finder->limit(10)->pluckFrom('username')->fetch(); return; } }
  13. Mellow1234

    XF 2.0 Callback Help.

    I got rid of the join and just tried something as simple as possible based on the help docs so: <?php namespace Mileage; class Mileage{ public static function getMileage(){ $finder = \XF::finder('XF:User'); $usernames = $finder->limit(10)->pluckFrom('username')->fetch(); } }...
  14. Mellow1234

    XF 2.0 Callback Help.

    server log: Unknown relation User accessed on xf_user_field_value src/XF/Mvc/Entity/Finder.php:651
Top Bottom