BuddyBoss Home – Web Support Forums Solutions Social Portfolio Mandatory Feilds in Project Set Up

Viewing 14 posts - 1 through 14 (of 14 total)
  • Question

    #67876
    @heavenlygiftedpeople

    Hi,

    How do I make fields mandatory when users are uploading their project? The title field is the only one that is mandatory at the moment and I want them all to be mandatory. How would I do this. Thanks!!

    Answers

    #67883

    Anonymous
    @

    Hi @heavenlygiftedpeople, For this you will have to do customizations in your add_project.php file.
    I will check it with developers and get back to you with the required changes.

    Regards

    #67980
    @heavenlygiftedpeople

    Thank you, I do appreciate this as we will need to implement this as soon as we can.

    Thanks!

    #68210
    @vapvarun

    Hi @heavenlygiftedpeople,

    I have checked with developers and as per their response nice validation needs lots of custom work.

    I will request you to please hire an experienced developer and get this done for you. If you need, where(in which file) to change/customize the code I can tell you.
    Regards
    Varun Dubey

    #68323
    @heavenlygiftedpeople

    Please let me know which .php file I can add mandatory fields.
    Thanks!

    #68327
    @vapvarun

    Hi @heavenlygiftedpeople
    If you want some field mandatory, you can do browser check, by putting ‘required’ at the end of input
    <input type="text" name="username" required>
    for better solution you need more customization which includes javaScript validation

    File :
    plugins/bp-portfolio-pro/templates/project/add_project.php

    * – create a folder ‘bp-portfolio-pro’ inside your active theme (or child theme)
    * – copy this file and place in the folder mentioned above
    * – and make changes to the new file (the one you just copied into your theme).

    Regards
    Varun Dubey

    #68451
    @heavenlygiftedpeople

    Thanks! I was able to add mandatory fields to the Details section. Do you know how to make the Cover Photo step mandatory as well with some code?

    #68456
    @vapvarun

    Hi @heavenlygiftedpeople,

    Cover Photo is part of BuddyPress and it’s optional, You can set default cover image with some codes.

    BuddyPress Cover Images


    with some codes like

    
    function your_theme_xprofile_cover_image( $settings = array() ) {
        $settings['default_cover'] = 'http://site.url/to/your/default_cover_image.jpg';
     
        return $settings;
    }
    add_filter( 'bp_before_groups_cover_image_settings_parse_args', 'your_theme_xprofile_cover_image', 10, 1 );
    

    Regards
    Varun Dubey

    #68499
    @heavenlygiftedpeople

    Hi,

    Sorry if I was confusing but I was talking about making the “Cover Photo” step in the upload your project section mandatory. How do I make the “Cover” photo mandatory when people are creating a project? See attached.

    Thanks!

    #68796
    @vapvarun

    Hi @heavenlygiftedpeople, It will need you to add custom codes on it to validate the upload section.

    Regards
    Varun Dubey

    #68828
    @heavenlygiftedpeople

    Is this something you can help me with? I just don’t want to have people use the site and not upload a cover photo.

    #68866
    @vapvarun

    Hi @heavenlygiftedpeople

    These are small customization you can easily use your developer or 3rd party service to do them
    For small customization you can also use https://codeable.io/

    Regards
    Varun Dubey

    #68946
    @heavenlygiftedpeople

    Thanks!

    #69227
    @vapvarun

    Cool,
    I will close this thread. Feel free to create new for any further questions
    Regards
    Varun Dubey

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this question.