Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Adam Pickering

    (@adampickering)

    Did you purchase and install Gravity Forms? nope.

    Thread Starter anthonyquigley

    (@anthonyquigley)

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

    mikelawton86

    (@mikelawton86)

    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="' . 'https://webmail.aol.com/Mail/ComposeMessage.aspx?to=' . $apply->email . '&subject=' . urlencode( $apply->subject ) .'" target="_blank" class="job_application_email">AOL</a> / ';
    
    						echo '<a href="' . 'https://compose.mail.yahoo.com/?to=' . $apply->email . '&subject=' . urlencode( $apply->subject ) .'" target="_blank" class="job_application_email">Yahoo</a> / ';
    
    						echo '<a href="' . 'https://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!

    draadloos

    (@draadloos)

    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Nothin happening!’ is closed to new replies.