in reply to Random User Writeups

Actually I stole the user search code from Everything2 and nate had a random user from a list show up so I just substituted a list of the most active users at the time I added the code. Basically if you click thru on a writeup number on someones home node it passes a param for the user you want if that's empty it picks a random user from the list in the box. When you click the talk button the user param isn't passed because it's part of another form so you end up with a random user from the list in the code.

vroom | Tim Vroom | vroom@cs.hope.edu

Replies are listed 'Best First'.
RE: RE: Random User Writeups
by N-Wing (Deacon) on Aug 28, 2000 at 09:48 UTC

    How difficult would it be to make everything on the same form? That would solve problems like that (a similar thing happens on other "very" dynamic pages).

    /me starts thinking out loud... since the submit form buttons already have a unique name, it would be easy to determine which subform to take action on. Of course, somebody should decide if filling out multiple subforms (like voting and talking and submitting a search on the same page) would do all of those activities, or just the one the button was pressed for (just the one would definitely prevent clashes, although maybe several that don't clash could be done at once).

    --== <a href="http://www.everything2.com/index.pl?node=N-Wing&type=user">N</a> ==--