2013-12-28, 09:15 PM
1. Open your MYBB_ROOT/inc/class_parser.php
2. Find function mycode_parse_url_callback1 (around line 973)
3. Replace all with:
Demo:
2. Find function mycode_parse_url_callback1 (around line 973)
3. Replace all with:
function mycode_parse_url_callback1($matches)
{
if(!isset($matches[3]))
{
$matches[3] = '';
}
$urlContents = file_get_contents($matches[1].$matches[2]);
preg_match("/<title>(.*)<\/title>/i", $urlContents, $hehu);
$title = $hehu[1];
return $this->mycode_parse_url($matches[1].$matches[2], $title);
}
Demo: