Kevin M. Brooks (lucretio) wrote in lj_dev,
Kevin M. Brooks
lucretio
lj_dev

Working on users/username/todo

I just started working on this suggestion.

The problem: instead of redirecting to /todo/?user=username, /users/username/todo takes me to directory.bml.

I'd post this to code@, but I don't think it's working.

main -> cvs          htdocs/users
--- /home/lucretio/cvs/livejournal/htdocs/users Sat Dec  1 15:38:57 2001
+++ /home/lucretio/htdocs/users Sun Dec 23 11:35:48 2001
@@ -144,6 +144,17 @@
        next REQUEST;
     }

+    if ($mode eq "todo")
+    {
+       $user = LJ::canonical_username($user);
+       my $url = "$LJ::SITEROOT/todo/?user=$user";
+       print "Status: 302 Found\n";
+       print "Location: $url\n";
+       print "Content-type: text/html\n\n";
+        print "This journal's todo list is located <a href=\"$url\">here</a>.";
+        next REQUEST;
+    }
+
     my $criterr = 0;
     my $remote = LJ::get_remote($dbs, \$criterr, $cgi);

main -> cvs cgi-bin/ljlib.pl --- /home/lucretio/cvs/livejournal/cgi-bin/ljlib.pl Sun Dec 23 11:22:42 2001 +++ /home/lucretio/cgi-bin/ljlib.pl Sun Dec 23 11:30:40 2001 @@ -50,6 +50,10 @@ # just a redirect to userinfo.bml for now. # in S2, will be a real view. "des" => "Profile Page", + }, + "todo" => { + # redirect to todo list + "des" => "Todo List", } );
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 15 comments