- open "filter/tex/filter.php" with a text editor
- locate the following lines (around line 125):
for ($i=0; $i<count($matches[0]); $i++) {</span></font><br style="font-family:'courier new', courier, monospace;" /> <div style="margin-left:40px;"><font size="2"><span style="font-family:'courier new', courier, monospace;">$texexp = $matches[1][$i] . $matches[2][$i] . $matches[3][$i] . $matches[4][$i];</span></font></div></div></li> <li style="margin-top:0.8em;">change the above lines to the following:<br /> <div style="margin-left:40px;margin-top:0.8em;"><font size="2"><span style="font-family:'courier new', courier, monospace;"> for ($i=0; $i<count($matches[0]); $i++) {</span></font><br style="font-family:'courier new', courier, monospace;" /> <div style="margin-left:40px;"><font size="2"><span style="font-family:'courier new', courier, monospace;"> $texexp = $matches[1][$i] . $matches[2][$i] . $matches[3][$i] . $matches[4][$i];</span></font><br style="font-family:'courier new', courier, monospace;" /><font size="2" style="color:rgb(255,0,0);font-weight:bold;"><span style="font-family:'courier new', courier, monospace;">if ($texexp=='ClueNum') continue;</span></font></div></div></li> <li style="margin-top:0.8em;">save the modified file</li> </ol> You could also modify the code in "filter/tex/filter.php" for a more general check around line 90. This will skip activation of the filter on Hot Potatoes quizzes completely.<br /> <ol> <li style="margin-top:0.8em;">locate the following lines (around line 90):<br /> <div style="margin-left:40px;margin-top:0.8em;"><font size="2"><span style="font-family:'courier new', courier, monospace;">if (!preg_match('/<tex/i',$text) and !strstr($text,'<span>$</span>$') and !strstr($text,'\\[') and !preg_match('/\[tex/i',$text)) { //added one more tag (dlnsk)<br /> </span></font> <div style="margin-left:40px;"><font size="2"><span style="font-family:'courier new', courier, monospace;">return $text;</span></font><br /> <font size="2"><span style="font-family:'courier new', courier, monospace;"></span></font></div> <font size="2"><span style="font-family:'courier new', courier, monospace;">}
- change the above lines to the following:
if (!preg_match('/<tex/i',$text) and !strstr($text,'$$') and !strstr($text,'\\[') and !preg_match('/\[tex/i',$text)) {<br /> </span></font> <div style="margin-left:40px;"><font size="2"><span style="font-family:'courier new', courier, monospace;">return $text;</span></font><br /> <font size="2"><span style="font-family:'courier new', courier, monospace;"></span></font></div> <font size="2"><span style="font-family:'courier new', courier, monospace;">}
if (preg_match('/Created with (Mac )?Hot Potatoes/i', $text)) {<br /></span></span></font> <div style="margin-left:40px;"><font size="2"><span style="font-family:'courier new', courier, monospace;"><span style="color:rgb(255,0,0);font-weight:bold;">return $text;</span></span></font><br /><font size="2"><span style="font-family:'courier new', courier, monospace;"><span style="color:rgb(255,0,0);font-weight:bold;"></span></span></font></div><font size="2"><span style="font-family:'courier new', courier, monospace;"><span style="color:rgb(255,0,0);font-weight:bold;">}
FYI the 'Created with Hot Potatoes' string appears near the top of all HP5 and HP6 quizzes
regards
Gordon