Scoop -- the swiss army chainsaw of content management
Front Page · Everything · News · Code · Help! · Wishlist · Project · Scoop Sites · Dev Notes · Latest CVS changes · Development Activities
Last 5 Users To Join Boxes
By bbatchel , Section Code []
Posted on Wed Jan 24, 2001 at 12:00:00 PM PST
Below is code I have written that creates a box that shows the last 5 people to join the site. I really think this is only cool for small sites..but maybe I am wrong.

The code would work alot better (be more accurate) if there is a date field in the users table. But this seems to work fine using the UID of the user which should keep getting larger and large as more users are added.

my $content;

my ($rv, $sth) = $S->db_select({
    WHAT => 'uid, nickname',
    FROM => 'users',
    ORDER_BY => 'uid DESC',
    LIMIT => '5'});

while (my $user = $sth->fetchrow_hashref())
{
   $content .= qq{$user->{nickname}
}; } return {content => $content};
< User Information | Adding intro text to RSS feed >

Menu
· create account
· faq
· search
· report bugs
· Scoop Administrators Guide
· Scoop Box Exchange

Login
Make a new account
Username:
Password:

Related Links
· · More on Boxes
· Also by bbatchel

Story Views
  18 Scoop users have viewed this story.

Display: Sort:
Last 5 Users To Join | 6 comments (6 topical, 0 hidden)
Always liked.. (5.00 / 1) (#1)
by Malachi on Wed Jan 24, 2001 at 11:12:55 AM PST

I always like seeing who was last on, or whose around type of ideas.. lets you feel that the community is a bit more interactive. -M



line break missing? (5.00 / 1) (#2)
by mahonri on Mon Jan 29, 2001 at 02:21:46 PM PST

I cut and pasted this into a box on my site and the only problem is that it doesn't give a line break between user names. Being the perl dufus that I am, I'm unclear as to how to fix it.

Help!



cash advance (none / 0) (#5)
by Pervez on Sat Apr 21, 2018 at 07:54:39 AM PST

Relating to hardly any key phrases to appreciate the place. I will be extremely astounded utilizing this type of place the person who generated the place was initially a great thank you so much fell. These days check this cash advance Kudos meant for fine report.



bathroom remodeling staten island (none / 0) (#6)
by Pervez on Sun Apr 07, 2019 at 03:36:01 PM PST

When I became aware of your individual property or home facts having the search engines together with, I'll certainly quite possibly be heading back soon to uncover extra excellent idea. Love loads for all truth. Here press in this article bathroom remodeling staten island Love suitable for satisfying facts.



Last 5 Users To Join | 6 comments (6 topical, 0 hidden)
Display: Sort:

Hosted by ScoopHost.com Powered by Scoop
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest © 1999 The Management

create account | faq | search