Omega is friend

<?php
function omega_is_friend(){
global $bp;
$friendship = false;
$user_object = wp_get_current_user();
$current_username = $user_object->user_login;
$members_id = $bp->displayed_user->id;
if(bp_has_members('type=newest&max='. $max_friends .'&user_id=' . $members_id) & is_user_logged_in()) :
while (bp_members()) : bp_the_member();
$the_friend_name = bp_get_member_user_login();
if($current_username == $the_friend_name){
$friendship = true;
return $friendship;
}
else { return $friendship; }
endwhile;
else:
return $friendship;
endif;
}
?>

Omega get profile data

<?php
// Get Profile Data
function omega_get_profile_data($user_id,$chosen_fieldname){
if (bp_has_profile('user_id=' . $user_id)) :
while (bp_profile_groups()) : bp_the_profile_group();
while (bp_profile_fields()) : bp_the_profile_field();
if (bp_field_has_data()) :
$fieldname = bp_get_the_profile_field_name();
if($fieldname == $chosen_fieldname){$return_value = strip_tags(bp_get_the_profile_field_value());}
endif;
endwhile;
endwhile;
endif;

return $return_value;
}
?>

BP global worksheet

<?php
function bp_dump() {
global $bp;

foreach ( (array)$bp as $key => $value ) {
echo '<pre>';
echo '<strong>' . $key . ': </strong><br />';
print_r( $value );
echo '</pre>';
}
die;
}
add_action( 'wp', 'bp_dump' );
?>

<?php //Main Worksheet ~~~~~~~~~~~~~~~~~
//Call the global
global $bp;

// Displays the current component, like activity, members etc.
echo 'Current Component = ' . $bp->current_component;

// Displays the current action within the members window, like friends, mentions, anything in the ajax window.
echo 'Current Action = ' . $bp->current_action;

// Displays the current users profile URL.
echo 'Profile URL = ' . $bp->displayed_user->domain;
?>

Mailer Script

<?php

$email = $row["member_email"];
$subject = "Invitation Mail";
$message .='<html><body><table><tr><td>'.$sendername.' wants you to </td><td>'.$invite->reason.'</td></tr>';
$message .= '<tr><td><br><B>Message:</b></td><td><br>'.$invite->invite_message.'</td></tr></table>
<tr><td><br><br><a href="http://www.postacutenetwork.com">Log into your account at PAN to acknowledge.</a><td></tr>
</body></html>';

$to = $email;

$headers = 'MIME-Version: 1.0' . "n".
'Content-type: text/html; charset=iso-8859-1' . "n".
'From: [email protected]'."n" .
'Bcc: [email protected],[email protected]'."n" .
'Reply-To: [email protected]'."n" .
'X-Mailer: PHP/' . phpversion() . "n";

mail($to,$subject,$message,$headers);

?>

Sidebar Register Array

//Register Sidebar Widgets
$sidebars = array('Home','Activity','Members','Groups','Blog');
foreach($sidebars as $sidebar) {
register_sidebar(array('name'=> $sidebar,
'before_widget' => '<div id="%1$s" class="widget %2$s"><div class="widget-inner">',
'after_widget' => '</div></div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
}

WP 3.0 robot notice highlight

function robots_notice() { echo '<style type="text/css">#privacy-on-link { color:#fff !important; background:#FF6400; padding:3px 8px !important; -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; border:1px solid #FFAA2D; } #privacy-on-link:hover { text-decoration:none !important; background:#C44806; border:1px solid #CA7C06; }</style>'; }
add_action('admin_head', 'robots_notice');

htaccess spam kill

# BEGIN ANTISPAMBLOG REGISTRATION
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .yourbpsignupslug*
RewriteCond %{HTTP_REFERER} !.*yourhomedomain.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) http://die-spammers.com/ [R=301,L]
# END ANTISPAMBLOG REGISTRATION