Hi, i need some help.
I need another replacement within the search.php
For example:
<img src="image/<!--CSS-->/feat_text.gif" alt="" />
The search.php shall also replace <!--CSS--> with the string "standard".
Is the following part of the script the right place?
How can i implement the replacement i need?
//Open and print start of result page template
$template = file ($TemplateFilename);
$numtlines = count ($template); //Number of lines in the template
$template_line = 0;
while ($template_line < $numtlines)
{
if (!stristr($template[$template_line], "<!--ZOOMSEARCH-->")) {
print($template[$template_line]);
$template_line++;
}
else {
break;
}
}
Thank you very much
I need another replacement within the search.php
For example:
<img src="image/<!--CSS-->/feat_text.gif" alt="" />
The search.php shall also replace <!--CSS--> with the string "standard".
Is the following part of the script the right place?
How can i implement the replacement i need?
//Open and print start of result page template
$template = file ($TemplateFilename);
$numtlines = count ($template); //Number of lines in the template
$template_line = 0;
while ($template_line < $numtlines)
{
if (!stristr($template[$template_line], "<!--ZOOMSEARCH-->")) {
print($template[$template_line]);
$template_line++;
}
else {
break;
}
}
Thank you very much
Comment