Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: User-editable Custom Titles

@_ck_

Participant

Never hack the core.

Especially when that function is right there designed to be filtered.

see this apply_filters( 'get_profile_info_keys', array(

It means you can make a simple plugin to modify the info keys on the fly.

Untested but should work as a plugin:

/*
Plugin Name: Allow Title Edit
*/
add_filter ('get_profile_info_keys', 'allow_title_edit');

function allow_title_edit($array) {
if (bb_current_user_can('participate')) {
global $bbdb;
$array[$bbdb->prefix.'title']= array(0, __('Custom Title'));
}
return $array;
}

Skip to toolbar