XF 2.2 Customizing search results box?

Newsman

Member
Hello,

I was wondering if it is possible to customize the search result box - or to even offload the results in another div..

1678731460954.webp

Thanks for any help!
 
This is frustrating.. I've setup my own search like Xenforo does (looked up how it looks for members in the field that I've screenshotted above) and it seems that my ViewClass Find.php cannot really pass values since it only has values when the auto-complete window is active/visible.

Code:
    public function renderJson()
    {
        $results = [];

        foreach ($this->params['users'] AS $user)
        {
            $results[] = [
                'id' => $user->name,
                'text' => $user->name,
                'q' => $this->params['q']
            ];
        }

        return [
            'results' => $results,
            'q' => $this->params['q'],
        ];
    }
 
Back
Top Bottom