Join our new community forum for support & discussion

Join Now

Home Support Themes JobHive Message with button for GDPR

Message with button for GDPR

  • Author
    Posts
  • Marketing

    Could you confirm if it is possible to add a GDPR button when users send a message with an attached document?

    I remain attentive to your comments,

    Kind regards,

    Marketing

    Could we have different possibilities?

    yevhen developer

    It is possible to add a required checkbox with a simple code snippet, but making it dependent on the attachment upload would require futher customizations. Please try adding this code snippet via the Code Snippets plugin:

    add_filter(
    	'hivepress/v1/forms/message_send',
    	function ( $args, $form ) {
    		$args['fields']['custom_item'] = [
    			'caption' => 'I agree to the <a href="#custom_url">terms of service</a>',
    			'type'    => 'checkbox',
    			'_order' => 50,
    		];
    
    		return $args;
    	},
    	10,
    	2
    );
    Marketing

    Thank you very much,

    We have added an “upload document” field, when sending a message to apply.
    How can we ensure that the document attached is a required field as opposed to optional?

    Can we also change the name of this field from attachment to Attach CV?

    I remain attentive to your comments,

    Kind regards,
    David

    yevhen developer

    Please try this PHP snippet:

    // Make attachment field required.
    add_filter(
    	'hivepress/v1/models/message/errors',
    	function ( $errors, $message ) {
    		if(get_option( 'hp_message_allow_attachment' ) && $message->get_listing() && !$message->get_attachment()){
    			$errors[] = 'Attachment is required field';
    		}
    		
    		return $errors;
    	},
    	1000,
    	2
    );
    
    // Make attachment field required and change attachment field text to 'Attach CV'.
    add_filter(
    	'hivepress/v1/forms/message_send',
    	function ( $form ) {
    		if(is_singular('hp_listing') && isset($form['fields']['attachment'])){
    			$form['fields']['attachment'] = array_merge($form['fields']['attachment'], [
    			'label'     => 'Attach CV',
    			'required' => true,
    			]);
    		}
    		
    		
    		return $form;
    	},
    	1000
    );

    Also, please try this snippet for GDPR button instead , it should make the field required:

    add_filter(
    	'hivepress/v1/forms/message_send',
    	function ( $args, $form ) {
    		$args['fields']['custom_item'] = [
    			'caption' => 'I agree to the <a href="#custom_url">terms of service</a>',
    			'type'    => 'checkbox',
    			'required' => true,
    			'_order' => 50,
    		];
    
    		return $args;
    	},
    	10,
    	2
    );
    Marketing

    Thank you very much, how can we modify the access form?

    yevhen developer

    Please let me know what you mean by the access form, the login form?

    Marketing

    Yes

    yevhen developer

    It is possible to customize the vendor registration form by adding custom attributes in Vendors/Attributes section, but if you mean regular users there is no such option at the moment, this would require code tweaks.

    Marketing

    Ok, clear.

    In the company settings section in the Display Name option (optional) I have created the Company Name field to be displayed instead of the username that appears by default, but for some reason it is not displayed correctly.

    You would also need to disable the option for an image to appear in the offers.

    I remain attentive to your comments.

    Thanks a lot.

    yevhen developer

    Please try re-saving the vendor profile form and the name should be synced (if this custom attribute is not empty).
    Please let me know what you mean about the offer images – offers do not have images by default, only requests do.

    Marketing

    Many thanks,

    How can we create a section for the positions that have already been covered and that users cannot apply to those positions?

    yevhen developer

    If you mean positions where an employee is found already, companies can simply hide these listings without deleting them using the Hide link on the listing Edit page.

    Marketing

    180 / 5.000
    Resultados de traducción
    I was thinking of creating a section when companies find that person that appears as completed and the rest of companies and users can see it in a different section

    yevhen developer

    In this case please consider using a custom Checkbox or Select attribute for indicating the job listing status, this way it will be possible to filter active or inactive listings.

    Marketing

    How can we create those lists? What would be the necessary code? or do we need to install a plugin?

    yevhen developer

    Once you create a Select attribute and save changes, click on the Edit Options button and add the options that you want users to select from.

    Marketing

    Hi there,

    Rather than adding a new attribute, we are looking to just add a banner to the job position once it has been covered. Can we simply add a banner to the job posts that are no longer hiring saying “closed” or “completed” for example.

    We have another small issue, when people sign up they consider the image to be of the person instead of the company logo. When it is a company, is it possible to change the profile field to be “Company logo” ?

    Kind regards,
    David

    ihor developer

    1. It’s also possible with an attribute, for example a Checkbox one, then you can set its Display Format to “closed” text or any other HTML with a custom banner.

    2. Please try this code snippet:

    add_filter(
    	'hivepress/v1/forms/user_update',
    	function( $form ) {
    		 $form['fields']['image']['label']='Company Logo';
    
    		return $form;
    	},
    	1000
    );
Viewing 19 posts - 1 through 19 (of 19 total)

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.