Results 1 to 1 of 1

Thread: Trouble modifying login function and JobRoller core file

  1. #1
    Thread Starter
    tonybott's Avatar
    Join Date
    Aug 2012
    Location
    United States
    Posts
    29
    Thanks
    10
    Thanked 2 Times in 2 Posts

    Trouble modifying login function and JobRoller core file

    I have added a custom modal pop-up that calls the default WordPress login form (wp_login_form() ) and unfortunately, submitted logins from that form don't work with the JobRoller theme's login routine. The JobRoller login form has the form submit input named "login" but the default WP login form uses the name "wp-submit". Unfortunately, this fails the check in the jobroller/framework/includes/views-login.php function, which is:

    Code:
    if ( ! isset( $_POST['login'] ) ) {
        return;
    }
    I have modified that check to work with the following hack:

    Code:
    if ( isset( $_POST['wp-submit'] ) ) {
        $_POST['login'] = 'Login';
    }
    if ( ! isset( $_POST['login'] ) ) {
        return;
    }
    This does the trick, but the mod is in the core of JobRoller, and copying the file to /childtheme/framework/includes/views-login.php doesn't override the core file.

    So my questions are:



    1. How do I overwrite a core file in this directory tree in my child theme?
    2. What is the equivalent get login form function for JobRoller?
    3. Also, I'm curious why JR doesn't use the default input name, "wp-submit", from WP (see line 463 here). Did they change it in WP and it was never updated in JR, or is it intentionally set to a different name?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to modify a core function with no hooks in a child theme?
    By white in forum ClassiPress General Discussion
    Replies: 2
    Last Post: January 9th, 2015, 02:23 PM
  2. [SOLVED] Having trouble modifying the Logo in the Header for Mobile Phones
    By jrossmacleod in forum Help Using Vantage (Legacy)
    Replies: 5
    Last Post: May 7th, 2014, 04:11 PM
  3. Editing the core file in includes\theme-actions.php
    By binh in forum ClassiPress General Discussion
    Replies: 2
    Last Post: April 17th, 2014, 12:57 PM
  4. Samcy deleted ad listing core file from cp3.3
    By gordon in forum Help Using ClassiPress
    Replies: 1
    Last Post: June 28th, 2013, 03:06 PM
  5. Override Function in Core Theme
    By Leongelis in forum ClassiPress General Discussion
    Replies: 3
    Last Post: March 22nd, 2012, 12:14 AM