Quote:
Originally Posted by simonhind
i dont understand, what do u mean
|
You have the condition in here twice:
Code:
if ($vbulletin->options['ie6fix_onoff']){
$ie6fix = '<vb:if condition="$vboptions['ie6fix_onoff']">
{vb:rawphrase ie6fix_english}
</vb:if>';
$find = '<div class="above_body">';
$add_before = "$ie6fix". PHP_EOL;
$output = str_replace($find,$add_before.$find, $output);
}
You only need it once and $output needs to be replaced with the template name (something like below, but enter the templatename):
Code:
if ($vbulletin->options['ie6fix_onoff']){
$ie6fix = '$vbphrase[ie6fix_english]';
$find = '<div class="above_body">';
$add_before = "$ie6fix". PHP_EOL;
$vbulletin->templatecache['templatename'] = str_replace($find,$add_before.$find, $vbulletin->templatecache['templatename']);
}