BuddyBoss Home – Web › Support Forums › Solutions › Social Portfolio › Mandatory Feilds in Project Set Up
- This topic has 13 replies, 3 contibutors, and was last updated 8 years, 7 months ago by Anonymous.
Question
April 12, 2016 at 10:28 pm #67876@heavenlygiftedpeopleHi,
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
April 13, 2016 at 12:27 am #67883@
AnonymousHi @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
April 13, 2016 at 12:22 pm #67980@heavenlygiftedpeopleThank you, I do appreciate this as we will need to implement this as soon as we can.
Thanks!
April 14, 2016 at 2:57 am #68210@
AnonymousI 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 DubeyApril 14, 2016 at 9:57 pm #68323@heavenlygiftedpeoplePlease let me know which .php file I can add mandatory fields.
Thanks!April 14, 2016 at 10:29 pm #68327@
AnonymousHi @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 validationFile :
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 DubeyApril 15, 2016 at 11:38 am #68451@heavenlygiftedpeopleThanks! 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?
April 15, 2016 at 11:44 am #68456@
AnonymousCover Photo is part of BuddyPress and it’s optional, You can set default cover image with some codes.
with some codes likefunction 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 DubeyApril 15, 2016 at 3:04 pm #68499@heavenlygiftedpeopleHi,
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!
April 18, 2016 at 1:21 pm #68796@
AnonymousHi @heavenlygiftedpeople, It will need you to add custom codes on it to validate the upload section.
Regards
Varun DubeyApril 18, 2016 at 2:56 pm #68828@heavenlygiftedpeopleIs this something you can help me with? I just don’t want to have people use the site and not upload a cover photo.
April 19, 2016 at 12:35 am #68866@
AnonymousThese 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 DubeyApril 19, 2016 at 11:05 am #68946@heavenlygiftedpeopleThanks!
April 21, 2016 at 9:04 pm #69227@
AnonymousCool,
I will close this thread. Feel free to create new for any further questions
Regards
Varun Dubey
- You must be logged in to reply to this question.