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...
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...
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...
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.
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...
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...
Here's some more information:
protected static function _getDefaultAvatarUrl(array $user, $size)
$value = $user['customFields']['MCUsername'];
else if ($size=='l')
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...
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...