About
About the Site
Think of Use Bombs as the Aspen resort where the rich kids get together. A place for them to wear turtle neck sweaters and drink nog. Now replace the rich kids with Horsemen riding over the horizon bearing the joy of humorous thought-provoking art.
What, was the last paragraph too stereotypical? Did the lack of “actual information” above leave your brain feeling malnourished?
Fine. To put it in layman’s terms, Use-Bombs is a site designed to showcase the often humorous works of its authors. This Includes both audio and video revolving—Plutolessly—around the sun that is our multi-user web log, where written word can be found.
About the Authors
global $wpdb, $table_prefix; // set global WP vars needed for script
$order = 'user_nicename'; // set order for users table query
$user_ids = $wpdb->get_col(”SELECT ID FROM $wpdb->users ORDER BY $order”); // query users
foreach($user_ids as $user_id) : // start authors’ profile “loop”
$user = get_userdata($user_id); // retrieve author (i.e. user) details
$level = $table_prefix . ‘user_level’; // set ‘user_level’ usermeta meta_key record
$user->user_level = $user->$level; // assign ‘user_level’ property to $users
$role = $table_prefix . ‘capabilities’; // set ‘role’ usermeta table meta_key record
$user->role = array_keys($user->$role); // assign ‘role’ property to $user
$user->role = $user->role[0]; // make sure $user->role is not an array
?>
/*
This is the authors' profile 'loop'. It displays info from the
profile for every author, along with a few bits of other author-
related data. Feel free to add, subtract, change layout; whatever
you'd like.
These 'tags' will display "publically accessable" user info; what
is displayed by each is hopefully self-explanatory:
aim; ?>
description; ?>
display_name; ?>
first_name; ?>
jabber; ?>
icq; ?>
ID; ?>
last_name; ?>
msn; ?>
nickname; ?>
role; ?>
user_email; ?>
user_level; ?>
user_login; ?>
user_nicename; ?>
user_registered; ?>
user_url; ?>
yim; ?>
*/
?>
if( ('admin' != $user->user_login) && ($user->user_level > 0) ) :
// if( $user->user_level > 0 ) : // show all users above the role of ’subscriber’
// if( $user->role == ‘author’ ) : // show only users with a role of ‘author’
// if( ($user->role == ‘author’) || ($user->role == ‘contributor’) ) : // show users with role of ‘author’ or ‘contributor’
?>
echo “Director / Publisher”;
} elseif ($user->role == “editor-in-chief”){
echo “Editor-in-Chief”;} else {echo $user->role;} ?>
Use-Bombs
user_email, 1); ?>” class=”email”>user_email); ?>
aim) : ?>
AIM screen name: ID, “$user->user_nicename”); ?>”>ID); ?>
Geo: 44.33675, -75.91800
URI: Use Bombs
endif; // end of admin and user_level test
endforeach; // end of authors' profile 'loop'
?>
No Comments »