• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Where to edit helpers?

Blast

Active member
#1
I want to edit this:
{xen:helper sortArrow, $order, $orderDirection, reply_count}

And hoping to replace the up and down to font awesome icons instead.
 

Liam W

Well-known member
#2
There's a static field in XenForo_Template_Helper_Core I believe that holds all the callbacks.

You just have to change the callback, or change the code in the callback.

Liam
 

Blast

Active member
#3
There's a static field in XenForo_Template_Helper_Core I believe that holds all the callbacks.

You just have to change the callback, or change the code in the callback.

Liam
Hey Liam. I apologize for this, but I can't seem to find that file anywhere. Where is it located?
 

Blast

Active member
#5
Thanks Liam. I found it now. I haven't worked with PHP before as I find it way too complicated.

So this is the line inside:
Code:
public static function helperSortArrow($order, $direction, $fieldName, $descOutput = ' ↓', $ascOutput = ' ↑')
Since &XXX; is html, would it be possible for me to replace those with an HTML tag <i></i>?