It's funny but when I install this extension all my images hosted at postimages.org show up as "This image not found or removed" in search.
The images show up everywhere and are not removed but only within search do I see this.
When I disable this extension the images within search show up properly.
$matches[2]
I found out why, it seems when this extension loads it does not respect the CAPITALS in the url of the picture.
So if the URL is domain.com/picture/TWen123.jpg
In search the extension shows it as domain.com/picture/twen123.jpg
So within search the pictures will not load but when you go to the post they do.
$matches[2]
Starting to narrow it down
if(isset($_SESSION['search_keywords']))
{
$search_keywords = mb_strtolower($_SESSION['search_keywords'], 'UTF-8');
$arr_keywords = explode(' ', $search_keywords);
$forum_page['item_subject'] = mb_strtolower($forum_page['item_subject'], 'UTF-8');
$forum_page['message'] = mb_strtolower($forum_page['message'], 'UTF-8');
mb_strtolower means to convert to lower case right?
What do I add to keep the case as is, unchanged?
$matches[2]
$forum_page['message'] = mb_strtolower ($forum_page['message'], 'UTF-8');
If I were a betting man I would say this is the part of the hook causing the issue