Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter mattqssit

    (@mattqssit)

    Hi Mark

    Yes i can confirm in the plugin panel it’s using version Version 2.2.2

    The files are the originals and are unedited.

    Regards

    Thread Starter mattqssit

    (@mattqssit)

    Hi Mark

    Ok, we have the latest code installed for the plugin, and when the application has been filled out, file attached for the CV then the user then submits, there’s a email sent to the admin email, with the application details etc. But there’s no attachment or link or anything for the CV. It’s like it’s just removed completed.

    This is why we’ve been tasked with getting the cv sent another way.

    I was under the impression that the upload CV function was changed so that no file was ever uploaded and stored as a media file anymore ?

    Cheers

    Thread Starter mattqssit

    (@mattqssit)

    Hello mark

    They upload their CV by another form, which sends it by email so bypasses being stored on the server.

    Regards

    Thread Starter mattqssit

    (@mattqssit)

    Hi Mark

    Thanks for the reply. Unfortunately i’m not very good at php and basically have to “wing it” sometimes. So talking about hooks and adding functions is not something i’m going to be able to do in the short time i have to put a fix on this website.

    All i really need to do is redirect away from the application page once it’s submitted.

    I am in charge of the website, so editing the plugin code directly won’t be a problem with code being over written once i have it working.

    I have tried calling a header redirect like this… and it still does not redirect..

    /**
    		 * @hook wpbb_after_application_form_processing
    		 * @param int $wpbb_application_id 	the application post id of the application submitted
    		 * @param obj $job_post the post object for the job being applied for
    		 */
    		
    		$redirect = header("Location: https://www.domain.co.uk/cv-upload");
    		
    		do_action( 'wpbb_after_application_form_processing', $wpbb_application_id, $job_post, $redirect );
    Thread Starter mattqssit

    (@mattqssit)

    I cannot get it to redirect, i’ve tried using a php header redirect, also a meta redirect.

    Both fail to redirect..

    I’m not great with php coding, so could you give me some pointers to correct this ?

    I have put the code like this :

    
    		/**
    		 * @hook wpbb_after_application_form_processing
    		 * @param int $wpbb_application_id 	the application post id of the application submitted
    		 * @param obj $job_post the post object for the job being applied for
    		 */
    		do_action( 'wpbb_after_application_form_processing', $wpbb_application_id, $job_post );
    		
    		echo "<meta http-equiv='refresh' content='0;URL=https://www.domain.co.uk/cv-upload'>";
    		
    
    		// should we remove the application cv just uploaded
    		if( true === wpbb_maybe_remove_application_attachments() ) {
    			
    			// lets remove the file that was just uploaded
    			$attachment_deleted = wp_delete_attachment( $wpbb_attach_id, true );
    Thread Starter mattqssit

    (@mattqssit)

    Hi Mark

    Thanks for replying so quickly.

    As i understand, the way it works now with the attachment is deleted, and never gets to the website owner ( because the url that would be given in the email for the attachment is invalid link to the wp-content/uploads/ media directory )

    The owner of the website still needs to see the attachment, but does not want it hosted on the server due to GDPR.

    So my idea was this…

    1. comment out attachment code from the application form ( which i have done already )
    2. comment out the validation for the file upload ( so user doesn’t see error message )
    3. Once user applies for application, to redirect to another page where they can upload their CV from another form ( something like a basic contact form with file attachment, which sends directly to website owner, bypassing file uploading to server )

    Thanks

    Matt

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