FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » 2.3.6RC4 Template optimize bug
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
2.3.6RC4 Template optimize bug [message #7900] Mon, 23 December 2002 14:24 Go to previous message
shad is currently offline  shad   United Kingdom
Messages: 7
Registered: December 2002
Karma:
Junior Member
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.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Bug in the Bulgarian translation
Next Topic: can't get cookies to work
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 19:34:01 GMT 2024

Total time taken to generate the page: 0.03983 seconds