Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: How to force login/registration upon job application

  1. #1
    Thread Starter
    Amateur leejacksondev's Avatar
    Join Date
    Feb 2012
    Posts
    10
    Thanks
    0
    Thanked 8 Times in 3 Posts

    How to force login/registration upon job application

    OK I have ran searches on this and found no answers so tried my own dirty fix.

    Here goes:

    1. Open single-job_listing.php (make a backup).
    2. After line 93 replace this:

    Code:
    <li class="apply"><a href="#apply_form" class="apply_online"><?php _e('Apply Online','appthemes'); ?></a></li>
    With this:

    Code:
    <?php if ( is_user_logged_in() ) { ?>
    					<li class="apply"><a href="#apply_form" class="apply_online"><?php _e('Apply Online','appthemes'); ?></a></li>
        				<?php } else { ?>
    					<li class="apply"><a href="<?php echo wp_login_url( get_permalink() ); ?>" >Login/Register to Apply</a></li>
    					<?php } ?>
    Then if the person is not logged in, they will see: Login/Register to Apply and be redirected to the registration/login page!

    Simples!

    Im sure this can be improved!

    Thanks

  2. The Following 6 Users Say Thank You to leejacksondev For This Useful Post:

    barukar (March 29th, 2012), devlon (May 6th, 2014), jobortunity (May 9th, 2012), jobspex (August 3rd, 2012), marco (April 23rd, 2012), ricardomb99 (November 25th, 2013)

  3. #2
    Thread Starter
    Amateur leejacksondev's Avatar
    Join Date
    Feb 2012
    Posts
    10
    Thanks
    0
    Thanked 8 Times in 3 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #3
    Veteran barukar's Avatar
    Join Date
    Sep 2010
    Location
    Brasil, São Paulo, SP
    Posts
    6,785
    Thanks
    186
    Thanked 742 Times in 623 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    -------------------------------------------------------------------------------------------
    Projects: ClassiNoiva - Classimóveis - vocênoenem - i50 - Clube DETRAN

  5. #4
    marco's Avatar
    Join Date
    May 2011
    Location
    Brazil
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #5
    Veteran barukar's Avatar
    Join Date
    Sep 2010
    Location
    Brasil, São Paulo, SP
    Posts
    6,785
    Thanks
    186
    Thanked 742 Times in 623 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    -------------------------------------------------------------------------------------------
    Projects: ClassiNoiva - Classimóveis - vocênoenem - i50 - Clube DETRAN

  7. #6
    jobortunity's Avatar
    Join Date
    Oct 2011
    Location
    Kitchener, Ontario
    Posts
    153
    Thanks
    11
    Thanked 11 Times in 9 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  8. #7
    spartac's Avatar
    Join Date
    May 2011
    Posts
    7,171
    Thanks
    75
    Thanked 830 Times in 808 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Do you need high-quality content for your Website? For a significantly reduced price? Try aicontently.com






    We answer the questions in threads as fast as the private messages, So do not send support questions via private message. Use the forum instead and open a new thread for every issue.
    Before you send any PM , Please read These rules .

  9. The Following 3 Users Say Thank You to spartac For This Useful Post:

    gr8job (May 16th, 2012), jobspex (August 3rd, 2012), tutseasy (June 18th, 2013)

  10. #8
    Senior Member gr8job's Avatar
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    108
    Thanks
    16
    Thanked 5 Times in 4 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  11. #9
    Senior Member gr8job's Avatar
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    108
    Thanks
    16
    Thanked 5 Times in 4 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  12. The Following User Says Thank You to gr8job For This Useful Post:

    ricardomb99 (November 26th, 2013)

  13. #10
    jobspex's Avatar
    Join Date
    May 2012
    Location
    United Kingdom
    Posts
    412
    Thanks
    24
    Thanked 45 Times in 40 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Force logout after registration
    By dspurlock in forum Vantage General Discussion (Legacy)
    Replies: 21
    Last Post: February 20th, 2014, 06:10 PM
  2. Samcy Force SSL Login
    By amberpanther in forum Help Using ClassiPress
    Replies: 5
    Last Post: January 2nd, 2014, 02:58 AM
  3. How to force user to logout after registration?
    By azamic in forum ClassiPress General Discussion
    Replies: 5
    Last Post: August 18th, 2013, 09:46 AM
  4. force login/register
    By consignor in forum ClassiPress General Discussion
    Replies: 2
    Last Post: July 17th, 2013, 07:34 AM
  5. [MOD NEEDED] Force disallow of spaces in registration name
    By doctorcilantro in forum ClassiPress General Discussion
    Replies: 0
    Last Post: March 3rd, 2011, 11:24 AM