From 97580f108b61e514989065858450de8ca63e52c3 Mon Sep 17 00:00:00 2001 From: timb Date: Fri, 12 Mar 2010 05:58:52 -0800 Subject: prevent huge messages from sending (client side block only) --- static/js/pichat.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/js/pichat.js b/static/js/pichat.js index 7314ff8..1a0f1df 100755 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -121,6 +121,10 @@ function submitMessage() { var content = $.trim($('#msgInput').val()); $('#msgInput').val(''); if (content == '') { return; } + if (content.length > 6666) { + alert("POST TOO LONG DUDE!"); + return; + } // this shouldn't just be client side :V PendingMessages[content] = true; var msg = { 'nick': Nick, 'content': content }; -- cgit v1.2.3-70-g09d2 From cc2e415ee8bff7ee0ce9f7f6c8e7ef25cca3306a Mon Sep 17 00:00:00 2001 From: timb Date: Fri, 12 Mar 2010 12:17:04 -0800 Subject: add GA to login/register so we can tune bounce rates --- static/index.html | 9 +++++++++ static/register.html | 10 +++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/static/index.html b/static/index.html index ed97c85..da98e29 100755 --- a/static/index.html +++ b/static/index.html @@ -213,6 +213,15 @@ label { + + diff --git a/static/register.html b/static/register.html index c60a319..2490542 100644 --- a/static/register.html +++ b/static/register.html @@ -244,7 +244,15 @@ top:15px; - + + -- cgit v1.2.3-70-g09d2 From 0e066e6b22ec91bb6b6d233d8f5e94400bfb062d Mon Sep 17 00:00:00 2001 From: dumpfmprod Date: Fri, 12 Mar 2010 19:31:37 -0500 Subject: timb committing ryder's changes --- template/banner.st | 7 +++++- template/chat.st | 9 ++++++++ template/directory.st | 63 ++++++++++++++++++++++++--------------------------- template/head.st | 2 +- template/help.st | 2 +- template/preload.st | 1 + template/privacy.st | 4 ++-- template/profile.st | 4 ++-- template/terms.st | 4 ++-- 9 files changed, 53 insertions(+), 43 deletions(-) diff --git a/template/banner.st b/template/banner.st index d029a2d..383c36e 100755 --- a/template/banner.st +++ b/template/banner.st @@ -1,3 +1,4 @@ +
@@ -16,6 +17,7 @@
  • Log
  • Profile
  • Image Search
  • +
  • Directory
  • $else$    @@ -42,7 +44,10 @@

    +
    - +
    + +
    diff --git a/template/chat.st b/template/chat.st index 0d453d8..9dc7d3a 100755 --- a/template/chat.st +++ b/template/chat.st @@ -4,6 +4,7 @@ $head()$ + @@ -71,6 +79,7 @@ +
    $endif$ diff --git a/template/directory.st b/template/directory.st index 7f78265..bf6979c 100644 --- a/template/directory.st +++ b/template/directory.st @@ -1,26 +1,8 @@ - dump.fm Directory + dump.fm $head()$ - + @@ -28,37 +10,50 @@ $banner()$ -
    -
    -
    -

    DUMP STARS

    -
    +
    + +
    +
    +
    + +
    + +
    +
    +

    ✭ ✭ DUMP STARS ✭ ✭

    +
    + +
    + +
    + $if(users)$ $users:{ u | -
    +
    -

    $u.nick$

    + $u.nick$ $if(u.avatar)$ - +
    $endif$
    -
    Count: $u.cnt$
    -
    - Last post: +
    Count: $u.cnt$ !!
    + last post
    $u.content$ +
    -
    + }$ $else$ No more users! $endif$ +
    $if(prev)$ - BACK + $endif$ $if(users)$ - MORE + $endif$
    diff --git a/template/head.st b/template/head.st index e83e687..e78ee8f 100755 --- a/template/head.st +++ b/template/head.st @@ -1,7 +1,7 @@ - + diff --git a/template/help.st b/template/help.st index 6a4f150..f8510b2 100644 --- a/template/help.st +++ b/template/help.st @@ -25,7 +25,7 @@ jQuery(function() background-position:1 10; background-attachment:fixed;" onload=" javascript:CreateDropdownWindow('dump.fm', '360px', true, 'news', 30, 115); - javascript:CreateDropdownWindow('frequently asked questions', '520px', true, 'archive', 450, 60); + javascript:CreateDropdownWindow('frequently asked questions', '520px', true, 'archive', 440, 60); diff --git a/template/preload.st b/template/preload.st index ca8dbaa..1f51935 100644 --- a/template/preload.st +++ b/template/preload.st @@ -1,3 +1,4 @@
    +
    \ No newline at end of file diff --git a/template/privacy.st b/template/privacy.st index 22d4721..501664d 100644 --- a/template/privacy.st +++ b/template/privacy.st @@ -24,8 +24,8 @@ jQuery(function() background-repeat:repeat-x; background-position:1 10; background-attachment:fixed;" onload=" - javascript:CreateDropdownWindow('dump.fm', '360px', true, 'news', 30, 115); - javascript:CreateDropdownWindow('privacy agreement', '560px', true, 'archive', 450, 60); + javascript:CreateDropdownWindow('dump.fm', '360px', true, 'news', 20, 115); + javascript:CreateDropdownWindow('privacy agreement', '560px', true, 'archive', 420, 60); diff --git a/template/profile.st b/template/profile.st index 91b1b91..fad4b18 100755 --- a/template/profile.st +++ b/template/profile.st @@ -9,7 +9,7 @@ - +