<?xml version="1.0" encoding="utf-8"?>
<!-- If you are running a bot please visit this policy page outlining rules you must respect. https://www.livejournal.com/bots/ -->
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:lj="https://www.livejournal.com">
  <id>urn:lj:livejournal.com:atom1:s2dev</id>
  <title>S2 Developer Community</title>
  <subtitle>S2 Developer Community</subtitle>
  <author>
    <name>S2 Developer Community</name>
  </author>
  <link rel="alternate" type="text/html" href="https://s2dev.livejournal.com/"/>
  <link rel="self" type="text/xml" href="https://s2dev.livejournal.com/data/atom"/>
  <updated>2008-03-07T13:30:11Z</updated>
  <lj:journal userid="6586828" username="s2dev" type="community"/>
  <link rel="service.feed" type="application/x.atom+xml" href="https://s2dev.livejournal.com/data/atom" title="S2 Developer Community"/>
  <entry>
    <id>urn:lj:livejournal.com:atom1:s2dev:2388</id>
    <author>
      <name>James</name>
    </author>
    <lj:poster user="unknownj" userid="9086"/>
    <link rel="alternate" type="text/html" href="https://s2dev.livejournal.com/2388.html"/>
    <link rel="self" type="text/xml" href="https://s2dev.livejournal.com/data/atom/?itemid=2388"/>
    <title>s2dev @ 2008-03-07T13:26:00</title>
    <published>2008-03-07T13:30:11Z</published>
    <updated>2008-03-07T13:30:11Z</updated>
    <content type="html">More out of curiosity than anything else (too much time and enthusiasm), I was wondering how easy it would be to build a style that implemented flat commenting, rather than threaded.. Ideally, it would be set by an argument in the page URL, so that people could turn it on temporarily with a link..&lt;br /&gt;&lt;br /&gt;So I figured that it shouldn't be too difficult to hijack the print comment function, and iterate through all comments (and children of comments), adding all the comments on the entry into an array of comment objects. Forget for a second that some of them might only be partial comments, that's something I haven't figured out a way around yet..&lt;br /&gt;&lt;br /&gt;To make the display a bit more user friendly, I was thinking of building a hash or two at the same time that links the poster and talkid of each comment to all the children, so that I can use a comment's talkid to look up the talkid of its parent, and who it was by. The idea then being that a comment can say "Reply to user5 (link to relevant comment)".&lt;br /&gt;&lt;br /&gt;But this is where it starts to fall down..&lt;br /&gt;&lt;br /&gt;What I'd then be looking to do is sort the array based on the talkid of each comment (ascending). i.e., break the threaded model, and access the comment array in the order in which the comments were written to the database.&lt;br /&gt;&lt;br /&gt;Now I think I can probably do that by iterating through the comment array, picking out the lowest talkid, printing it, adding it to another array of "done" comments, and then repeat, excluding those "done" comments every time.. But that seems like a really long-winded way of going about it.&lt;br /&gt;&lt;br /&gt;I was just wondering if anybody had any insight into the best way to do this, or any obvious reasons why the whole thing would just break on attempting it. Like I said, it's more out of curiosity than anything else, I just want to see if I can do it (and do it in a well-performing manner).&lt;br /&gt;&lt;br /&gt;So.. any ideas? :o)</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:s2dev:1834</id>
    <author>
      <name>Indy</name>
    </author>
    <lj:poster user="mighty_gratira" userid="1451830"/>
    <link rel="alternate" type="text/html" href="https://s2dev.livejournal.com/1834.html"/>
    <link rel="self" type="text/xml" href="https://s2dev.livejournal.com/data/atom/?itemid=1834"/>
    <title>Basic Print Commands</title>
    <published>2007-06-10T14:43:23Z</published>
    <updated>2007-06-10T14:43:23Z</updated>
    <content type="html">I recently started playing around in S2 (after about a year of having my brain melt every time I tried to look at it...), and I have a programming question.  If I knew a bit about Perl or Java, this might be self evident, but previously, I've only worked in PHP.  My question concerns whether you should always include a print command and what exactly the "safe" modifier does.&lt;br /&gt;&lt;br /&gt;There seem to be two printing commands, print and println.  println, I assume, prints the line followed by a line separator.  I have noticed, however, that a lot of functions written tend to just dump strings out there, and they are printed.  For example, the following would produce the same effect:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;print "I like printing!";&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;"I like printing!";&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;That doesn't work with variables, just with strings.  Also, there is a "safe" modifier, and I have absolutely no idea what that does.  Does that prevent the string from being cleaned or does it require the string to be cleaned before printing?&lt;br /&gt;&lt;br /&gt;&lt;code&gt;print safe "I like printing!";&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;So, should a print command &lt;i&gt;always&lt;/i&gt; be included?  Is just dumping out a string bad programming?  Also, how does safe printing differ from normal printing?&lt;br /&gt;&lt;br /&gt;Thank you ahead of time.  Sorry if this question is a bit basic, but like I said, I have limited experience with programming languages.&lt;a name='cutid1-end'&gt;&lt;/a&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:s2dev:1067</id>
    <author>
      <name>Angelina Jouly</name>
    </author>
    <lj:poster user="my_death_life" userid="5644945"/>
    <link rel="alternate" type="text/html" href="https://s2dev.livejournal.com/1067.html"/>
    <link rel="self" type="text/xml" href="https://s2dev.livejournal.com/data/atom/?itemid=1067"/>
    <title>Override</title>
    <published>2007-01-25T01:59:23Z</published>
    <updated>2007-01-25T01:59:23Z</updated>
    <content type="html">In Page::print_entry(Entry e) i can change subject, body of entry, but i can't change date and time of entry. :(&lt;br /&gt;&lt;br /&gt;Page::print_entry(Entry e) invoke for each entry, but i can't find function who invoke print_entry(Entry e);&lt;br /&gt;&lt;br /&gt;How can i change design date format of entry?</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:s2dev:970</id>
    <author>
      <name>_gray</name>
    </author>
    <lj:poster user="name_is_gray" userid="8962018"/>
    <link rel="alternate" type="text/html" href="https://s2dev.livejournal.com/970.html"/>
    <link rel="self" type="text/xml" href="https://s2dev.livejournal.com/data/atom/?itemid=970"/>
    <title>Getting current date and time</title>
    <published>2006-10-04T15:03:01Z</published>
    <updated>2006-10-04T15:03:01Z</updated>
    <content type="html">Is there any way to get current date and time values is S2?&lt;br /&gt;I want to make dates look something like 'today, at 12:21' or '5 minutes ago'.&lt;br /&gt;&lt;br /&gt;Thanks everyone</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:s2dev:648</id>
    <author>
      <name>Neverending Story</name>
    </author>
    <lj:poster user="decadence1" userid="1049416"/>
    <link rel="alternate" type="text/html" href="https://s2dev.livejournal.com/648.html"/>
    <link rel="self" type="text/xml" href="https://s2dev.livejournal.com/data/atom/?itemid=648"/>
    <title>Standard features, and nomenclature?</title>
    <published>2006-08-19T04:08:53Z</published>
    <updated>2006-08-19T04:08:53Z</updated>
    <content type="html">A while back there was a push to update all S2 styles to provide a standardised set of features, and use consistent names (e.g. in the wizards) to refer to them, rather than vary between styles (free text/blurb for example).&lt;br /&gt;&lt;br /&gt;Is any listing available of these? I.e. 'Must-have-at-least-*these*-features-for-all-styles' list and 'styleguide - list of terms' list.&lt;br /&gt;&lt;br /&gt;So far as I can tell changes were applied to both &lt;tt&gt;livejournal&lt;/tt&gt; and &lt;tt&gt;ljcom&lt;/tt&gt; styles, during that initiative. Is that correct?</content>
  </entry>
</feed>
