Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
This discussion has been archived. No new comments can be posted.

Stupid slashcode tricks, part I

Comments Filter:
  • That means we could get slashboxes for journals?
  • Looks a littel "busy" in my browser, but can't wait until I (someone) figures it out.
  • by krow ( 129804 )
    Journals were designed such that you can pull the RSS feed for them.

    If I get a chance I will add in some code so that you can do:
    http://slashdot.org/~username/journal/rss

    That would make it a bit easier.
    • What I want is a way to pull out actual posts as XML so I can XSLT transform them for a different page. If I had my way it would:
      • List last N entries, optionally with all text and the category icon info
      • Include all text & category info for any particular entry, with optional replies
      • List all entries in a from/to time period, optionally with all text etc.
      • List all time periods that have entries in such a way that I could derive a calendar from it, optionally doing the time period by day, week, month or year, optionally with a from/to time
      I'm sure more ideas will occur to me.

      I suppose I could submit patches to the code for this stuff, but to be honest I am not sure if I should expect them to be incorporated. The way I would use it is to generate the blog page for another site, which would mean I was leeching off of /. to run a blog for which /. doesn't get any advertising revenue. Clearly not in the best interests of /. But it would let me have blog rolls, referrers and other stuff I really want.

      • One way for me to get some of the things I want is to provide some way to include html fragments from another site on the current page. I realize this might have timeout problems unless I did the includes with IFrames (wouldn't work with older browers). But it would let me do a blog roll, referrers and such.

        This custom stuff would have to show up when anyone views my journal, otherwise it wouldn't be helpful. Perhaps code mods to provide this functionality would be better received?
      • by krow ( 129804 )
        Honestly I don't know if we would turn it on or not for Slashdot but I suspect other sites would allow for it. Sounds interesting.

If what they've been doing hasn't solved the problem, tell them to do something else. -- Gerald Weinberg, "The Secrets of Consulting"

Working...