If I optimize my template using the option in theme manager, I recieve the following error when trying to create a poll (when using the pop-up window):
Fatal error: Call to undefined function: reverse_fmt() in /home/shad/www/forum/theme/Shad.tv Theme/poll.php on line 80
If I rebuild the templates, thus making them un-optimized, the problem disappears. I haven't modified poll.tmpl in any way.
Line 80 of the optimized poll.php is as follows:
$fudml = preg_replace('!<a href="mailto:(.+?)" target=(_new|"_blank")>(.+?)</a>!is', '[email=\1]\2[/email]', $fudml);if( preg_match('!<a href="(.+?)" target=(_new|"_blank")>\\1</a>!is', $fudml) ) $fudml = preg_replace('!<a href="(.+?)" target=(_new|"_blank")>\\1</a>!is', '[url]\1[/url]', $fudml);if( preg_match('!<a href=".+?" target=(_new|"_blank")>.+?</a>!is', $fudml) ) $fudml = preg_replace('!<a href="(.+?)" target=(_new|"_blank")>(.+?)</a>!is', '[url=\1]\3[/url]', $fudml);while ( preg_match('!<font color=".+?">.*?</font>!is', $fudml) ) $fudml = preg_replace('!<font color="(.+?)">(.*?)</font>!is', '[color=\1]\2[/color]', $fudml);while ( preg_match('!<font face=".+?">.*?</font>!is', $fudml) ) $fudml = preg_replace('!<font face="(.+?)">(.*?)</font>!is', '[font=\1]\2[/font]', $fudml);while ( preg_match('!<font size=".+?">.*?</font>!is', $fudml) ) $fudml = preg_replace('!<font size="(.+?)">(.*?)</font>!is', '[size=\1]\2[/size]', $fudml);while ( preg_match('!<ul>.*?</ul>!is', $fudml) ) $fudml = preg_replace('!<ul>(.*?)</ul>!is', '[list]\1[/list]', $fudml);while ( preg_match('!<ol type=".+?">.*?</ol>!is', $fudml) ) $fudml = preg_replace('!<ol type="(.+?)">(.*?)</ol>!is', '[list type=\1]\2[/list]', $fudml);while ( preg_match('!<ul type=".+?">.*?</ul>!is', $fudml) ) $fudml = preg_replace('!<ul type="(.+?)">(.*?)</ul>!is', '[list type=\1]\2[/list]', $fudml);while ( preg_match('!<span name="notag">.*?</span>!is', $fudml) ) $fudml = preg_replace('!<span name="notag">(.*?)</span>!is', '[notag]\1[/notag]', $fudml);$fudml = str_replace('<li>', '[*]', $fudml);reverse_FMT($fudml);return $fudml;}function reverse_nl2br(&$data)
Thanks.