S2 - Grin with cat attached — LiveJournal
Previous Entry Next Entry
S2 Jan. 6th, 2004 10:46 am
My s2 layout is back where it was ( http://ip5.home.phase.org/files/wechsler.layout.txt ).

Please note that this is about as much time as I have available to help with s2 right now.

From: mageboltrat
Date: January 6th, 2004 - 02:56 am (Link)
Thanks... I like the


if(($.view != "friends") or (($e.text->length() < $*friendentrylength) or ($firstseg->contains("lj-cut"))) ) {
} else {
if(0) { $plaintext=striphtml($e.text);
print($plaintext->substr(0,100)); }
"""<br /><a href="$e.permalink_url">[Long entry chopped...]</a>""";

section, it's a nice sensible piece of code. Though doesn't it cause problems if they have used html, don't you get broken tags?
From: mageboltrat
Date: January 6th, 2004 - 02:58 am (Link)
oops missed striphtml() funtion... Cool..
From: wechsler
Date: January 6th, 2004 - 03:03 am (Link)
You missed the if(0) too; at the time I wrote that, striphtml was documented but not actually available, causing run-time errors if called. I don't know if it's fixed yet.
From: mageboltrat
Date: January 6th, 2004 - 03:15 am (Link)
So all it does is return no article and a link if it is too long? Shame it was a nice idea.
From: mageboltrat
Date: January 8th, 2004 - 03:21 am (Link)
Nope striphtml is not fixed... but I've just posted an alternative on S2practices. It does the job.