• Hi Guys

    I am looking to make some changes to my site which uses appthemes’s jobroller theme. Please help me as to what changes should i make to the below php code to call gravity forms instead of the current one when “Apply Online” is clicked:

    <?php
    				// load up theme-actions.php and display the apply form
    				do_action('job_footer');
    				?>
    				<ul class="section_footer" style="display:none;">
    
    					<?php if ($url = get_post_meta($post->ID, 'job_url', true)) : ?>
    						<li class="apply"><a href="<?php echo $url; ?>" <?php
    							 if ($onmousedown = get_post_meta($post->ID, 'onmousedown', true)) :
    							 	echo 'onmousedown="'.$onmousedown.'"';
    							 endif;
    						?> target="_blank" rel="nofollow"><?php _e('View & Apply Online',APP_TD); ?></a></li>
    					<?php else :?>
    						<li class="apply"><a href="#apply_form" class="apply_online"><?php _e('Apply Online',APP_TD); ?></a></li>
    					<?php endif; ?>
    
    					<?php if (is_user_logged_in() && current_user_can('can_submit_resume')) : $starred = (array) get_user_meta(get_current_user_id(), '_starred_jobs', true); ?>
    						<?php if (!in_array($post->ID, $starred)) : ?>
    							<li class="star"><a href="<?php echo add_query_arg( 'star', 'true', get_permalink() ); ?>" class="star"><?php _e('Star Job',APP_TD); ?></a></li>
    						<?php else : ?>
    							<li class="star"><a href="<?php echo add_query_arg( 'star', 'false', get_permalink() ); ?>" class="star"><?php _e('Un-star Job',APP_TD); ?></a></li>
    						<?php endif; ?>
    					<?php endif; ?>

    Any help would be greatly appreciated !!!

    [Moderator Note: No bumping. If it’s that urgent after waiting just 45 minutes, consider hiring someone instead.]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Stop bumping!

    Thread Starter sh090

    (@sh090)

    Sorry about that esmi ??

    Moderator bcworkz

    (@bcworkz)

    Create your gravity forms application on a post or page as you normally would. How it is linked to depends on which method you are using. Your theme allows either a per post link where you can specify a different link on every post, or a default form if a specific one is not specified.

    If you use the first option, specify the link when you create the post. If you intend to use the default, replace the “#apply_form” in your posted snippet with a url to your gravity forms page. This is in the line <li class="apply"><a href="#apply_form" class="apply_online"><?php _e('Apply Online',APP_TD); ?></a></li>.

    Thread Starter sh090

    (@sh090)

    Sorry bcworkz that did not work ^^^^^ it replaced the Apply Now button instead with the gravity form…

    any idea guys ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Replacing regular form in php’ is closed to new replies.