in reply to New scratchpads

Could you please post a short and foolproof way of finding a user's scratchpad other than "user's scratchpad" via its nodename?

If someone created "castaway's scratchpad" as say, a SoPW node, then I won't be able to view your scratchpad anymore.

Replies are listed 'Best First'.
Re:x2 New scratchpads
by grinder (Bishop) on Jun 01, 2004 at 20:15 UTC

    Hear, hear. In what way is the SPV really obsolete? Can it not be brought up to date? I don't think a magic incantation to pull a scratchpad out of the search bar is the most elegant solution.

    That said, I applaud the effort to remove the SPs for home nodes; it's something that's been talked about for a long time, and it's good to see it coming finally to pass.

      In what way is the SPV really obsolete? Can it not be brought up to date? I don't think a magic incantation to pull a scratchpad out of the search bar is the most elegant solution.

      No I'm very sure the SPV wont become obsolete. It may lag behind the main functionality until its settled down a bit but I'm sure it won't become obsolete. At some point somebody will end up synching it over. (I'm with you about linking btw.)


      ---
      demerphq

        First they ignore you, then they laugh at you, then they fight you, then you win.
        -- Gandhi


Re^2: New scratchpads
by saskaqueer (Friar) on Jun 01, 2004 at 20:37 UTC

    Quite simple. Scratchpads have a nodetype of 'scratchpad', so simple send 'type=scratchpad' as a parameter to the script. To access my scratchpad for example, you'd use the following URL. This method will work 100% of the time (well, it should anyhow).

    /index.pl?node=saskaqueer's%20scratchpad;type=scratchpad
Re^2: New scratchpads
by demerphq (Chancellor) on Jun 08, 2004 at 17:17 UTC
    http://perlmonks.org/index.pl?node_id=108949&user=sporty

    Sportys Pad
    And to edit:

    http://perlmonks.org/index.pl?node_id=108949&user=sporty&svmode=edit

    Edit Sportys Pad


    ---
    demerphq

      First they ignore you, then they laugh at you, then they fight you, then you win.
      -- Gandhi


      I was hoping for a way that worked with the displaytype=xml. The new scratchpad nodes work with a displaytype=xml :\

      Bart: God, Schmod. I want my monkey-man.

        svmode=xml will eventually do what you ask. But currently it doesnt. :-(

        For the record the issue here is a change that I made to castaways work. Originally simply by linking to a scratchpad for a user would cause the scratchpad node to be created. This meant that anytime a user visited a homepage of a user who had never used their scratch pad the users pad would be created. This is suboptimal in that it means that numerous scratchpad were/could be created that never would be used.

        The new mechanism only creates a scratchpad object if somebody actually views/follows the link. If a scratchpad hasnt been created then the link will be to the Scratch Pad Viewer for that user. If someone follows that link then by the act of viewing it the object will be created. Following the pads creation links to the scratchpad will go directly to the relevent object and bypass the SPV.

        So the SPV should always act as a proxy to the real scratchpads. The fact it doesnt WRT xml is due to the speed with which the original patches were rolled out and the lack of speed in pmdev (in this case me more or less) clearing the nits.


        ---
        demerphq

          First they ignore you, then they laugh at you, then they fight you, then you win.
          -- Gandhi