Rambomst (@rambomst)

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • @rambomst

    Member

    I worked it out.

    add_action( 'user_profile_update_errors', 'validate_steamid_field' );

    function validate_steamid_field(&$errors, $update = null, &$user = null)
    {
    if (!preg_match("/^STEAM_[0-5]:[01]:d+$/", $_POST['_bbp_steamid']))
    {
    $errors->add('empty_steamid', "<strong>ERROR</strong>: Please Enter a valid SteamID");
    }
    }

    In reply to: Custom profile fields

    @rambomst

    Member

    Do you know of one that does work? Maybe even include the steps that are needed?

    Thanks.

    In reply to: Custom profile fields

    @rambomst

    Member

    It’s not “incorrect”. Its just not “complete”. I am using Cimy Extra User Fields, I changed forum-user-edit.php to include the new field. I then set the field in the admin panel with a value which is being populated correctly however I was unable to find the function where all the information is being saved in bbPress when “Update User” is being clicked so I cant put in the code needed to save the Cimy fields.

    In reply to: Custom profile fields

    @rambomst

    Member

    They aren’t mirrored and if the extra fields are manually added into the theme then on update they aren’t set. I have looked through a lot of the bbPress files and can’t work out where I should add some custom code so on user profile update it will also update the custom entries I added.

    Any help would be much appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)