Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Lihas1987

    I just wanted to let you know I was able to solve the issue over here – though I’m not 100% sure it’ll work for you.

    I tried downgrading down to 4.3.0 and didn’t have any such luck there. Hower, once I reinstalled WordPress Social Login (removed, reuploaded, reactivated) it began working again. I suspect a markup edit I placed in wsl.auth.widgets.php to allow bootstrap buttons to load was causing the login popup not to fire properly.

    I also read that if you have any other login type plugins that modify the wordpress login this may prevent it from working.

    Hope that helps!

    Hm – I may be experiencing the exact same issue. I haven’t been able to track down why they stopped working. I posted my own issue here but not sure if it went through, the bbpress thing looks like it wigged out when I tried. So maybe I can piggyback with you here and help solve this issue.

    I had G+, Twitter, and Facebook social logins completely working, then somewhere along the line they just stopped working. I disabled all plugins, checked for console errors that might be affecting this, but no such luck getting the proper href back into the social login buttons.

    Here’s what inspect element is showing up with:

    <a rel="nofollow" href="javascript:void(0);" title="Connect with Facebook" class="btn btn-lg btn-block btn-facebook" data-provider="Facebook"

    however, oddly enough when loaded on an iphone the buttons work just fine. I inspected element via mobile (using adobe edge inspect) and can see the appropriate href showing up in there – as seen below:

    <a rel="nofollow" href="https://mysite.com/wp-login.php?action=wordpress_social_authenticate&mode=login&provider=Facebook&redirect_to=http%3A%2F%2Fmysite.com%2F" title="Connect with Facebook" class="btn btn-lg btn-block btn-facebook" data-provider="Facebook"

    Anyone have any idea what might be causing this href javascript void(0) error? I’m out of ideas at this point and very confused as to why it would work fine on mobile but not when loaded on a desktop.

    My hunch says maybe I updated WordPress without thinking and perhaps the latest version is causing some sort of javascript error that’s only applying to desktop, perhaps via modernizr or something. I’m going to do some more testing tonight and will check back if I find anything.

    Hopefully one of the plugin developers can chime in and see if they’ve experienced any similar issues.

    Thread Starter corbinfraser

    (@corbinfraser)

    Sorry! It was just on a local server. I ended up just going with the default wordpress password protect feature as I was under the gun for time. If I have a chance to replicate it again on my current project I’ll send you a link to show you. The ajax method would be terrific to use in some of my client projects.

    Forum: Hacks
    In reply to: get_terms offset working?

    Scratch that. Got a 3rd column working by creating a custom offset and tweaking the formula a bit to reflect 3 columns.

    Thanks for pointing me in the right direction with this method, been trying to come up with a way to do this for a while now.

    function print_organizations3() {
    $countterms = wp_count_terms( 'base_suppliers_category' );
    if($countterms&1) {
    $firstcolumn = ( ( $countterms - 1) / 3 );
    } else {
    $firstcolumn = ( $countterms  / 3 ); }
    
    $secondcolumn = ( ( $countterms - $firstcolumn ) / 2 );
    $thirdcolumn = ( ( $countterms - $firstcolumn ) / 2 );
    $thirdcolumnoffset = ( $firstcolumn + $secondcolumn );
    
    $terms = get_terms( 'base_suppliers_category', array('offset' => $thirdcolumnoffset, 'number' => $thirdcolumn));
    print '<div class="four columns">';
    foreach ( $terms as $term ) {
         // The $term is an object, so we don't need to specify the $taxonomy.
        $term_link = get_term_link( $term );
        // If there was an error, continue to the next term.
        if ( is_wp_error( $term_link ) ) {
            continue;
        }
        // We successfully got a link. Print it out.
        print '<li><a href="#'. $term->slug.'">' . $term->name . '</a></li>';
    }
    print '</div>';
    }
    add_shortcode('print-organizations3', 'print_organizations3');
    Forum: Hacks
    In reply to: get_terms offset working?

    Any idea how one would include an additional column using this same method? I assume the entire math formula in the conditional statement would have to change, but any attempt I’ve made so far hasn’t produced any useable results. Just lots of repeated terms.

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