
01-21-2004, 02:01 PM
|
 |
Little Boo
|
|
Join Date: Dec 2003
Posts: 452
|
|
Re: spoiler tags
Quote:
Originally posted by Sam The Egg
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);
|
All the more reason why Invision is easier.
Last edited by Digital Murders; 01-21-2004 at 02:07 PM.
|