Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter mcbryant

    (@mcbryant)

    No one has answered, and the Vantage people have told me that it’s a limitation on their theme. Until it gets solved here is a work around.

    In WordPress name the links like this:

    Instead of: <my site>/#contact
    <my site>/#services

    Use: <my site>?location=1#contact
    <my site>?location=2#services

    It forces the site to reload and act like a normal link plus finds the anchors. Not ideal but at least the mobile menu works.

    Just following up on this thread, I’m using version 3.5.0 and exclude doesn’t work, it doesn’t say whether you’re supposed to enter a page ID or permalink name.

    Is 3.5.0 known to not work for exclude, works great otherwise. If I have to upgrade to get exclude to work are there any known upgrade issues.

    Thanks…

    Thread Starter mcbryant

    (@mcbryant)

    Well just to finish this off for anyone wanting to do the same thing, this is what I came up with for changing the dynamic extra fields taken from the dB.

    I modified the register-plus-redux.php file around line 1600+ where it uses this code.

    echo stripslashes($v[“custom_field_name”]), “
    <input type=’text’ name=’$key’ id=’$key’ class=’input’ value='”, $_POST[$key], “‘ size=’25’ “;

    I replaced $v[“custom_field_name”] with a variable I created in the loop by using if/else statements. Then by checking whether it’s french and if it’s the custom_field_name I’m looking for I can generate a french equivalent.

    Thread Starter mcbryant

    (@mcbryant)

    Here is the pastebin link

    http://wordpress.pastebin.com/cuF0skH8

    Thread Starter mcbryant

    (@mcbryant)

    It looks like there’s 4 separate things to translate the registration form then. The logo, static RPR, the fixed username/email and the dynamic dB RPR. This is my solution for the fixed username/email, modified the wp-login.php file:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    I guess the code must pull this info into variables somewhere, if I can write some code to change the variable holding the label name then it should be good. Any idea where that code is, where they stuff this info into variables?

    Thread Starter mcbryant

    (@mcbryant)

    Well figured this out, or the part about switching logos on the registration page. I added this to the function.php page and it worked. Not sure if this is best practice PHP code as I’m fairly new to it but it worked. So now the french page gets the french logo, english page gets the english logo.

    $lang = $_GET[‘lang’];
    if($lang == “fr”) {
    function login_logo() {
    echo ‘<style type=”text/css”>
    h1 a { background-image: url(‘.get_bloginfo(‘template_directory’).’/register-logo-f.jpg); }
    </style>’;
    }
    }
    else {
    function login_logo() {
    echo ‘<style type=”text/css”>
    h1 a { background-image: url(‘.get_bloginfo(‘template_directory’).’/register-logo.jpg); }
    </style>’;
    }
    }
    add_action(‘login_head’, ‘login_logo’);

    Still looking for a way to translate all form fields though, the existing ones and the ones I added using this plugin.

    Thread Starter mcbryant

    (@mcbryant)

    Thanks I gave that a try but found all sorts of formatting issues arose plus they’d have to enter a new text widget in the new widgetable area and duplicate entering text. I found a better solution.

    I put the sidebar on the front page using the <?php get_sidebar(); ?> command in the featured.php page and then used the widget logic plugin to turn off all widgets except the text widget on the front page. Allowed me to add a subset of the sidebar to the front page without too much fuss.

    M

Viewing 7 replies - 1 through 7 (of 7 total)