Sam The Egg
01-21-2004, 11:41 AM
this way, instead of saying *SPOILER* and putting the spoilers way down, or having a spoiler that doesn't give enough warning, this'll make you have to highlight the text to see it.
find:
global $regexcreated,$searcharray,$replacearray,$phpversi onnum
directly after that, insert the following:
,$counter
and be carefull, that you leave the ; at the end.
Then find:
$bbcode = preg_replace("/(\[)(img)(])(\r\n)*([^\"]*)(\[\/img\])/siU", "<a href=\"\\5\" target=\"_blank\">\\5</a>", $bbcode);
$bbcode=str_replace("\\'", "'", $bbcode);
directly after that, insert the following:
if($counter%2==0) {
$bbcode = preg_replace("/(\[)(sp)(])(\r\n)*([^\"]*)(\[\/sp\])/siU", "<normalfont>Spoiler:<br></normalfont><br><font color=\"#13486D\">\\5</font>", $bbcode);
}
else {
$bbcode = preg_replace("/(\[)(sp)(])(\r\n)*([^\"]*)(\[\/sp\])/siU", "<normalfont>Spoiler:<br></normalfont><br><font color=\"#1C5780\">\\5</font>", $bbcode);
}
$bbcode=str_replace("\\'", "'", $bbcode);
find:
global $regexcreated,$searcharray,$replacearray,$phpversi onnum
directly after that, insert the following:
,$counter
and be carefull, that you leave the ; at the end.
Then find:
$bbcode = preg_replace("/(\[)(img)(])(\r\n)*([^\"]*)(\[\/img\])/siU", "<a href=\"\\5\" target=\"_blank\">\\5</a>", $bbcode);
$bbcode=str_replace("\\'", "'", $bbcode);
directly after that, insert the following:
if($counter%2==0) {
$bbcode = preg_replace("/(\[)(sp)(])(\r\n)*([^\"]*)(\[\/sp\])/siU", "<normalfont>Spoiler:<br></normalfont><br><font color=\"#13486D\">\\5</font>", $bbcode);
}
else {
$bbcode = preg_replace("/(\[)(sp)(])(\r\n)*([^\"]*)(\[\/sp\])/siU", "<normalfont>Spoiler:<br></normalfont><br><font color=\"#1C5780\">\\5</font>", $bbcode);
}
$bbcode=str_replace("\\'", "'", $bbcode);