From c9192991c95a5145e5d515f7c6268c61e6400476 Mon Sep 17 00:00:00 2001 From: Christian Vogeley Date: Sun, 9 Feb 2014 01:37:09 +0100 Subject: [PATCH 1/2] Add class to bookmark links to make it better them able E.g.: css (not yet included) .bookmark-identifier{ display:none; } .bookmark:hover:before{ text-decoration:none; content:"#^"; color:#000000; background:#FFFFFF; } .bookmark:hover{ color: #FFFFFF; background: #3465A4; } --- include/bbcode.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/bbcode.php b/include/bbcode.php index bd2c7d11a..9cd5ad58c 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -443,10 +443,14 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) { } } if (strpos($Text,'[/url]') !== false) { + $Text = preg_replace("/\#\^\[url\]([$URLSearchString]*)\[\/url\]/ism", '#^$1', $Text); + $Text = preg_replace("/\#\^\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", '#^$2', $Text); $Text = preg_replace("/\[url\]([$URLSearchString]*)\[\/url\]/ism", '$1', $Text); $Text = preg_replace("/\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", '$2', $Text); } if (strpos($Text,'[/zrl]') !== false) { + $Text = preg_replace("/\#\^\[zrl\]([$URLSearchString]*)\[\/zrl\]/ism", '#^$1', $Text); + $Text = preg_replace("/\#\^\[zrl\=([$URLSearchString]*)\](.*?)\[\/zrl\]/ism", '#^$2', $Text); $Text = preg_replace("/\[zrl\]([$URLSearchString]*)\[\/zrl\]/ism", '$1', $Text); $Text = preg_replace("/\[zrl\=([$URLSearchString]*)\](.*?)\[\/zrl\]/ism", '$2', $Text); } From 176b0881ce6fd9b820c9dffaa926b542007f98df Mon Sep 17 00:00:00 2001 From: Christian Vogeley Date: Sun, 9 Feb 2014 01:39:37 +0100 Subject: [PATCH 2/2] . --- view/theme/redbasic/css/style.css | 1 + 1 file changed, 1 insertion(+) diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 209399d0c..6164407e8 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -2459,3 +2459,4 @@ img.mail-list-sender-photo { color: red; cursor: pointer; } +