January 12th, 2004

Anime, Keiichi

Posting By Camera Phone

Hello,
First, I know Brad has been talking about how posting by camera phone is in the works, but I was just wondering if there were any more details on how and when it will be implemented. I was just wondering if there was any update on this. This is one feature that I am really anxious to have.
Secondly, In my anxiousnous to have it, I attempted to post via the normal email gateway. You can view the results here: http://www.livejournal.com/users/the1brian/6705.html . It pretty much stripped everything from the email, except for the text, and the URL to the picture. This is good, because it stripped sprint's ads, but bad because it also stripped the image, and allows/makes them view it off of sprint's site, where they can find more personal information than some might want to give, as well as the pin to the post-by-email mechanism (which I already changed after posting it). Still, it leads me to believe that it wouldn't be too hard to implement posting by cameraphone through the normal post-by-email mechanism. For reference, a copy of a similiar (not the exact same for all the links, etc) email can be viewed here: http://thebrian.net/pictureemail.html so you can see what the email looks like before it goes through lj's gateway, and is stripped of almost everything.

Thanks,
~Brian
scottieheadturn, curious

S2 Question

I'm trying to use the built-in function "alternate" in my S2 style. However, I'm getting a runtime error (it compiles just fine) and I can't figure out why. I don't know if this is just me using it wrong or if it's a bug. Here's what I did...

In MonthPage::print_body(), I have this chunk of code:

var string cell_bgcolor;
foreach var MonthDay d ($.days) {
    $cell_bgcolor = alternate($*comment_bar_one_bgcolor.as_string, $*comment_bar_two_bgcolor.as_string);
    if ($d.has_entries) {
        "<table border='0' cellpadding='2' cellspacing='0' width='100%'><tr>";
        "<td style='background-color: $cell_bgcolor;'>";
        "<dt><a class='nav' href='$d.url'><strong>";
        print lang_ordinal($d.day);
        "</strong></a></dt>\n";
        "<dd>\n";
        $d->print_subjectlist();
        "</dd>\n";
        "</td></tr></table>";
    }
}

I'm getting this error when I load my Month page (the line numbers change on refresh):

Error running style: Died in S2::run_code running MonthPage::print(): Undefined subroutine &S2::Builtin::alternate called at /home/lj/cgi-bin/LJ/S2.pm line 1250, line 21.

So, presumably, it does not like my call to alternate(). Any idea why? If it matters, I'm basing my style off of Punquin Elegant.

Thanks!
  • Current Mood
    curious curious
slurp
  • eevee

Hi, and S2

Obligatory introduction thing: hullo, I'm Eevee. And I'm 17 today. I'm so old.

Re S2 (apologies if I'm repeating anything that's been brought up before): would it be possible to not strip <?xml?> tags out of S2 output? This seems to be putting IE into 'quirks' mode and making it impossible to fix its <table style="width: 100%;"> bug, and most likely some others I haven't run into yet.
And, while I'm at it, the docs look like they could use a little updating; there's no mention of Page.linklist, for example, which I know I've used before.
Aaand is there any way at all to let other users use a layer I created without buying them all paid accounts and having them copy the source into new layers? Or even plans for a way to do this? Something?
  • Current Music
    2 - Christmas