diff --git a/css/base.css b/css/base.css index 2237852..4688976 100644 --- a/css/base.css +++ b/css/base.css @@ -27,3 +27,7 @@ div.lastpost { font-size: 90%; text-align: right !important; } code { overflow: auto; width: 100%; white-space: pre; display: block; } code br { display: none; } + +.pstspl1 {opacity:0;} +.pstspl1:hover {opacity:1;} +.pstspl2 {background:#000;color:#FFF;display:block;} diff --git a/lib/function.php b/lib/function.php index d7e83ec..9fddcaa 100644 --- a/lib/function.php +++ b/lib/function.php @@ -528,8 +528,8 @@ function doreplace2($msg, $options='0|0'){ $msg=str_replace('[/quote]','
',$msg); $msg=preg_replace("'\[sp=(.*?)\](.*?)\[/sp\]'si", '\\2', $msg); $msg=preg_replace("'\[abbr=(.*?)\](.*?)\[/abbr\]'si", '\\2', $msg); - $msg=str_replace('[spoiler]','
Spoiler:
',$msg); - $msg=str_replace('[/spoiler]','
',$msg); + $msg=str_replace('[spoiler]','
Spoiler:
',$msg); + $msg=str_replace('[/spoiler]','
',$msg); $msg=preg_replace("'\[(b|i|u|s)\]'si",'<\\1>',$msg); $msg=preg_replace("'\[/(b|i|u|s)\]'si",'',$msg); $msg=preg_replace("'\[img\](.*?)\[/img\]'si", '', $msg);