I managed to get passed my specific issue (not the general question though), by going about it a different way.
My main problem was that i had profile field categories on my page, but they werent ajax editable (except in about me), but i wanted them separate.
I managed to change the code to allow this, but the issue was that there werent any hooks that would allow me to change this without modifying vb code. I needed to change the prepare_output function in ProfileFields.
I solved this by adding the following code to the
member_build_blocks_start hook:
PHP Code:
class vb_ProfileBlock_ProfileFields2 extends vB_ProfileBlock_ProfileFields
{
function prepare_output($id = '', $options = array())
{
// new code
}
}
Then re-running the profile block code to inherit the new class instead:
PHP Code:
foreach ($profileblock->locations AS $profilecategoryid => $location)
{
if ($location)
{
$blocklist["profile_cat$profilecategoryid"] = array(
'class' => 'ProfileFields2',
So my main problem was solved. Starting to get the hang of this too which is good, as i'm generally not a php coder.