From 16e818def78ce22527dcdd91d57dca8ee55b9069 Mon Sep 17 00:00:00 2001 From: Tazman DeVille Date: Sun, 2 Feb 2014 14:01:12 +0100 Subject: link hover colour remains user set link_colour (w/o change default, Mike) --- view/theme/redbasic/css/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index fe6d24f18..776b4c31a 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -44,7 +44,7 @@ a, a:visited, a:link, .fakelink, .fakelink:visited, .fakelink:link { text-decoration: none; } -a:hover, .fakelink:hover { color: #44AAFF; text-decoration: underline; } +a:hover, .fakelink:hover { color: $link_colour; text-decoration: underline; } .fakelink { cursor: pointer; -- cgit v1.2.3 From ba6178bef316f706874c03e5b66343d461f87d4a Mon Sep 17 00:00:00 2001 From: toclimb Date: Sun, 2 Feb 2014 14:52:00 +0100 Subject: More efficient smilie replacing --- include/text.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/include/text.php b/include/text.php index cf68ee121..1eef4e37a 100755 --- a/include/text.php +++ b/include/text.php @@ -889,8 +889,8 @@ function smilies($s, $sample = false) { || (local_user() && intval(get_pconfig(local_user(),'system','no_smilies')))) return $s; - $s = preg_replace_callback('{<(pre|code)>(?.*?)}ism','smile_encode',$s); - $s = preg_replace_callback('/<[a-z]+ (?.*?)>/ism','smile_encode',$s); + $s = preg_replace_callback('{<(pre|code)>.*?}ism','smile_shield',$s); + $s = preg_replace_callback('/<[a-z]+ .*?>/ism','smile_shield',$s); $texts = array( '<3', @@ -981,20 +981,18 @@ function smilies($s, $sample = false) { $s = str_replace($params['texts'],$params['icons'],$params['string']); } - $s = preg_replace_callback( - '//ism', - function ($m) { return base64url_decode($m[1]); }, - $s - ); + $s = preg_replace_callback('//ism', 'smile_unshield', $s); return $s; } +function smile_shield($m) { + return ''; +} -function smile_encode($m) { - $cleartext = $m['target']; - return str_replace($cleartext,'',$m[0]); +function smile_unshield($m) { + return base64url_decode($m[1]); } // expand <3333 to the correct number of hearts -- cgit v1.2.3 From 5846dc105a368eb4000a97341890abd9fa27381a Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Sun, 2 Feb 2014 16:28:58 +0000 Subject: Move CSS out of chat template --- view/css/mod_chat.css | 31 +++++++++++++++++++++++++++++++ view/tpl/chat.tpl | 13 ++++--------- 2 files changed, 35 insertions(+), 9 deletions(-) create mode 100644 view/css/mod_chat.css diff --git a/view/css/mod_chat.css b/view/css/mod_chat.css new file mode 100644 index 000000000..7f33f2c48 --- /dev/null +++ b/view/css/mod_chat.css @@ -0,0 +1,31 @@ + .chatContainer { + height: 100%; + width: 100%; + } + + .chatTopBar { + float: left; + height: 400px; + width: 650px; + overflow-y: auto; + } + + .chatUsers { + float: right; + width: 120px; + height: 100%; + border: 1px solid #000; + } + + .chatBottomBar { + position: relative; + bottom: 0; + height: 150px; + margin-top: 20px; + } + + section { + padding-bottom: 0; + } + + \ No newline at end of file diff --git a/view/tpl/chat.tpl b/view/tpl/chat.tpl index dba6a777f..eb98063fa 100644 --- a/view/tpl/chat.tpl +++ b/view/tpl/chat.tpl @@ -1,14 +1,14 @@

{{$room_name}}

-
+
-
+
-
+
-
+
@@ -22,11 +22,6 @@
-