WordPress.org

Forums

Apply with Gravity Forms for WP Job Manager
[resolved] Nothin happening! (5 posts)

  1. anthonyquigley
    Member
    Posted 1 year ago #

    I installed this plugin and nothing is happening - no "forms" menu item appears - and I cannot uninstall .... any suggestions?

    https://wordpress.org/plugins/wp-job-manager-gravityforms-apply/

  2. Adam Pickering
    Member
    Plugin Author

    Posted 1 year ago #

    Did you purchase and install Gravity Forms? nope.

  3. anthonyquigley
    Member
    Posted 1 year ago #

    hi adam
    i purchased and installed gravity forms and also the wp-manager-gravity forms apply
    still nothing
    anthony

  4. mikelawton86
    Member
    Posted 1 year ago #

    Managed to get it working....kinda!

    Go to your plugin folder > WP-Job-Manager > Templates > job-application.php

    Replaced:

    <div class="application_details">
    			<?php
    				switch ( $apply->type ) {
    					case 'email' :
    
    						echo '<p>' . sprintf( __( 'To apply for this job <strong>email your details to</strong> <a class="job_application_email" href="mailto:%1$s%2$s">%1$s</a>', 'wp-job-manager' ), $apply->email, '?subject=' . rawurlencode( $apply->subject ) ) . '</p>';
    
    						echo '<p>' . __( 'Apply using webmail: ', 'wp-job-manager' );
    
    						echo '<a href="' . 'https://mail.google.com/mail/?view=cm&fs=1&to=' . $apply->email . '&su=' . urlencode( $apply->subject ) .'" target="_blank" class="job_application_email">Gmail</a> / ';
    
    						echo '<a href="' . 'http://webmail.aol.com/Mail/ComposeMessage.aspx?to=' . $apply->email . '&subject=' . urlencode( $apply->subject ) .'" target="_blank" class="job_application_email">AOL</a> / ';
    
    						echo '<a href="' . 'http://compose.mail.yahoo.com/?to=' . $apply->email . '&subject=' . urlencode( $apply->subject ) .'" target="_blank" class="job_application_email">Yahoo</a> / ';
    
    						echo '<a href="' . 'http://mail.live.com/mail/EditMessageLight.aspx?n=&to=' . $apply->email . '&subject=' . urlencode( $apply->subject ) .'" target="_blank" class="job_application_email">Outlook</a>';
    
    						echo '</p>';
    
    					break;
    					case 'url' :
    						echo '<p>' . sprintf( __( 'To apply for this job please visit the following URL: <a href="%1$s">%1$s →</a>', 'wp-job-manager' ), $apply->url ) . '</p>';
    					break;
    				}
    			?>
    
    		</div>

    With:

    <div class="application_details">
    	<?php
    		switch ( $apply->type ) {
    			case 'email' :
    
    				echo '<p>' . sprintf( __( 'To apply for this job <strong>email your details to</strong> <a class="job_application_email" href="mailto:%1$s%2$s">%1$s</a>', 'wp-job-manager' ), $apply->email, '?subject=' . rawurlencode( $apply->subject ) ) . '</p>';
    
    			break;
    			case 'url' :
    				echo '<p>' . sprintf( __( 'To apply for this job please visit the following URL: <a href="%1$s">%1$s →</a>', 'wp-job-manager' ), $apply->url ) . '</p>';
    			break;
    		}
    
    	echo do_shortcode( '[gravityform id="' . get_option( 'job_manager_gravity_form' ) . '" title="false" ajax="true"]' );
    
    	?>
    
    </div>

    Essentially I've removed the "Apply with webmail" code from the main plugin file, and also removed

    if ( class_exists( 'Astoundify_Job_Manager_Apply' ) ) :

    from the provided 'Nothing happening' code (which seemed to be breaking the theme when it was included in full)

    Now the gravity form can be submitted to the admin email in the usual way, plus any given parameters will be stored in the Gravity form "Entries" area too.

    Might not be the best way of doing it, but it might help someone out!

  5. draadloos
    Member
    Posted 1 year ago #

    How do i link the job which the client apply's to, with the gravity form? I linked the form with the code above, but how do i know on which job he apply's?

    Erik

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.