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
Scoop Box Exchange - Show Box: show_avatar 1.00

Author: on2raj [Info]

Description:

Displays a user's avatar

Box Code:

##### START show_avatar ######
# show_avatar scoop box by Jason Eaton
# http://www.on2raj.org
# This box takes a single-quote enclosed user nick
# as an argument, and displays an IMG tag with the
# value of the user's avatar embedded within it.
# Depends on "choose_avatar" and "set_avatar" to
# work correctly, but is easily changeable.
# Guidance on proper use of the avatar can be
# placed in the block "avatar_information" to
# assist users with finding, hosting, and setting
# their avatar, but this is not required


my ($rv, $sth) = $S->db_select({
WHAT => 'avatar',
FROM => 'avatar',
WHERE => "user = $ARGS[0]",
});
my $avatar = $sth->fetchrow_hashref();
my $content ;
my $content .= qq{
<!--this is the avatar box's returned value -->
<img src="$avatar->{avatar}" height="80" width="80" >
<!-- this is after the avatar img tag -->
};

return $content;

## END show_avatar
Display: Sort:
Menu
· create account
· faq
· search
· report bugs
· Scoop Administrators Guide
· Scoop Box Exchange

Scoop Site Scroller: Get one yourself!
Kuro5hin.org
Cooler than Adequacy.org

Login
Make a new account
Username:
Password:

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