Page Nav Filter

<?php
function ter_page_nav_filter($menu){
$replace = array('<div class="menu">','</div>','<ul>','</ul>');
$menu = str_replace($replace,'',$menu);
return $menu;
}
add_filter( 'wp_page_menu', 'ter_page_nav_filter',10);
?>

Theme activation hooks

<?php

ActivationHooks::init();

class ActivationHooks {
function init(){
register_activation_hook(__FILE__,array(__CLASS__,'activate'));
register_deactivation_hook(__FILE__,array(__CLASS__,'deactivate'));
}
function activate(){
register_uninstall_hook(__FILE__,array(__CLASS__,'uninstall'));
}
function deactivate(){
// Remove cron jobs here
}
function uninstall(){
// Delete options here
}
}
?>

Theme activation hooks

//Activate Hooks
ddt_theme_activation_hook('desert_default','ddt_theme_activate');
ddt_theme_deactivation_hook('desert_default','ddt_theme_deactivate');

//Activation Routine
function ddt_theme_activate(){
$first_activation = get_option('desert_default_activated');
if(!$first_activation) update_option('desert_default_activated',1); //Set first activation option
}

//Deactivation Routine
function ddt_theme_deactivate(){
//Code here to run on de-activation
}

//Activation Hook
function ddt_theme_activation_hook($theme,$callback){
$option_name = $theme . "_active";
if(!get_option($option_name)) {
call_user_func($callback);
update_option($option_name,1);
}
}

//Deactivation Hook
function ddt_theme_deactivation_hook($theme,$callback){
$GLOBALS[$theme . '_deactivation_hook_fn'] = $callback;
$action_fn = create_function('$theme',' call_user_func($GLOBALS["' . $theme . '_deactivation_hook_fn"]); delete_option("' . $theme . '_active");');
add_action('switch_theme',$action_fn);
}

Exclude pages filter

function exclude_pages($pages){
//Use if no pages are excluded yet
$pages = array(39,40);

/*
//Use this for adding pages to exclude
$exclude = 212;
array_push($pages,$exclude);
*/
return $pages;
}
add_filter('wp_list_pages_excludes','exclude_pages');

Buddypress signup form hook

<?php
function bph_field_value() {
echo get_bph_field_value();
}
function get_bph_field_value() {
return apply_filters( 'get_bph_field_value', $_POST['bph_field'] );
}

function bph_check_validation(){
global $bp;
$bph_field_txt = $_POST['bph_field'];

if (empty($bph_field_txt) || $bph_field_txt == '') {
$bp->signup->errors['bph_field'] = __('This is a required field','buddypress');
}
return;
}

function bph_show_input_field(){?>
<div style="float:right;width:268px;margin-right:4px;" class="bph_field_container">
<label>Input Field Name</label>
<?php do_action( 'bp_bph_field_errors' ) ?>
<input type="text" name="bph_field" id="bph_field" value="<?php bph_field_value() ?>" /><br />

</div><?php
}

add_action('bp_signup_validate', 'bph_check_validation');
add_action('bp_before_registration_submit_buttons', 'bph_show_input_field');
?>