Recent content by Retricide

  1. R

    Minecraft Avatar [Paid] [Deleted]

    It's not working for me on 1.2. Is anyone else having problems?
  2. R

    Creating a new XF controller

    There are a few tutorials on how to create an add-on that extends an already existing controller, but I cant find any information on how to create a new controller for an add-on. I'm try to create a simple add-on that basically mimics the xenforo help page layout, but uses custom templates for...
  3. R

    Help Menu Additional Pages [Deleted]

    How would we go about adding a separate "help" page that has the same tabbed format but doesn't include or interfere with the default help-pages? Is that possible? Edit: I think you say you can make a custom page in the OP, but I can't seem to understand what I need to change (or where I need...
  4. R

    Xen Tooltip

    Oh, so the problem is that I'm adding tooltips to elements that are added after the page loads, via AJAX. So, to get the tooltip to work, I need to call $("[title]).tooltip(); manually after each element is added to get the tooltip to bind to the element. However, because I'm calling it...
  5. R

    Xen Tooltip

    Thanks. I tried that, though, and my tooltip had no style. Do I need to apply a certain class to the element the tooltip's hovering over?
  6. R

    Xen Tooltip

    How do you use the Xenforo Tooltip? I can't find any documentation on it anywhere. Is it like the jQuery tooltip? Any help is much appreciated, - Eric
  7. R

    Change User Group Via PHP

    Awesome! Thanks for the help (again), Chris.
  8. R

    Change User Group Via PHP

    Thank you, that looks perfect. One last question: Is there a function that accepts a username as a parameter and returns the userID? If not, I can easily query the DB but I imagine there probably is a function to do this. Thanks again.
  9. R

    Change User Group Via PHP

    Hello, I'm looking for a way to change an individual user's usergroup through a php function. I know I can modify their group in the xf_user table, but I was told it requires the cache to be rebuilt for the change to take effect - something I don't want to have to do every time the script is...
  10. R

    Grab custom field value

    Ah, makes sense. Guess I'm going to just stick with the username. Thank you for your help, guys.
  11. R

    Grab custom field value

    All of the 2 members have the custom field set (it's a required field, too), so shouldn't it work fine currently? If $value is set to user['username'] instead of user['customFields']['MCUsername'] everything works perfectly. However, I want it to use a custom field instead. Perhaps there's a...
  12. R

    Grab custom field value

    Here's some more information: protected static function _getDefaultAvatarUrl(array $user, $size) { $value = $user['customFields']['MCUsername']; if ($size=='s') $size=48; else if ($size=='l') $size=192; else $size=96...
  13. R

    Grab custom field value

    Worked perfectly! Thank you very much. Actually, there's a problem. I'm using $user['customFields']['field1'] to grab the value of a field for the user that is passed into the method, in this case _getDefaultAvatarUrl. I then return a url containing $user to serve as the avatar image...
  14. R

    Grab custom field value

    I can't seem to figure out how to get the value of a custom field (ID = "field1") in Template/Helper/Core.php. I'm trying to grab the value of a custom field and then, based on what they entered, select an avatar for them. I have the avatar selection working fine using the username - because...
  15. R

    [8WR] XenCarta (Wiki)

    Is it possible to load a section already "hidden?" This way, a user would have to "unhide" the section to view it, saving space on long pages.
Top