Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • kvdamme
    Participant

    @kvdamme

    This is an old thread but I was looking to do the same thing. I had a list of 200 nationalities that I wanted to import.

    I used Autohotkey. The script looked somewhat like this:

    Loop 200 {
    
    WinActivate Microsoft Excel
    send {down}
    send ^c
    
    SetTitleMatchMode 2
    WinActivate Mozilla Firefox
    send {tab}
    send {tab}
    send {tab}
    send {enter}
    send ^v
    
    }
    

    You might need to tweak it a little. It took only a few minutes to add all the values.


    kvdamme
    Participant

    @kvdamme

    I had the exact same problem. I solved it by redirecting users to their profile page upon login by adding the code below (which I found here: http://buddydev.com/buddypress/buddypress-trick-redirect-users-to-their-profile-on-login/) to functions.php

    /*let us filter where to redirect */
     
    add_filter("login_redirect","bpdev_redirect_to_profile",10,3);
     
    function bpdev_redirect_to_profile($redirect_to_calculated,$redirect_url_specified,$user)
    {
    if(empty($redirect_to_calculated))
    $redirect_to_calculated=admin_url();
     
    /*if the user is not site admin,redirect to his/her profile*/
    if(!is_site_admin($user->user_login))
    return bp_core_get_user_domain($user->ID );
    else
    return $redirect_to_calculated; /*if site admin or not logged in,do not do anything much*/
     
    }
Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar