Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • Vendetta
    Participant

    @vendetta66

    Ok …

    FaceStream was the culprit for me.

    Thanks

    V


    Vendetta
    Participant

    @vendetta66

    Ok …

    FaceStream was the culprit for me.

    Thanks for the loads of help.

    V


    Vendetta
    Participant

    @vendetta66

    Was there ever any resolution to this?

    I’m having exactly the same issue.

    Each time I create a group I get a blank group created and thats the group id that gets passed back to the script causing it to fail to find any data.

    Thanks

    V


    Vendetta
    Participant

    @vendetta66

    Yeah I don’t think it’s theme related.

    I switched to the default theme and I have the same issue, when settings are saved a new blank group is created.

    Thanks for the help.

    V


    Vendetta
    Participant

    @vendetta66

    A child theme of the default.

    Thanks


    Vendetta
    Participant

    @vendetta66

    Ok I’ve isolated this to the save settings step.

    During this step an empty group is being created and that empty group id is being passed back to the script, since there is no information for this group as all the fields are blank, nothing gets displayed save the previous and next buttons.

    What should I do?

    Should I reinstall the BuddyPress plugin? Obviously there is an error somewhere that most people are not getting?

    I would appreciate some advice from some of you pros :)

    Thanks.

    V


    Vendetta
    Participant

    @vendetta66

    Nevermind,

    This worked:

    bp_core_redirect(basename($_SERVER).’/about’);


    Vendetta
    Participant

    @vendetta66

    Hey Ray,

    My users are added through another piece of software so I don’t allow registrations on site.

    The plugin get caught in a loop obviously since the register page redirects to the front site which is trying to redirect to the register page etc.

    I’d like this to redirect to my about page where I will provide a link to the site where they can actually sign up.

    I see where to to change this but what would I change it to?

    bp_core_redirect(bp_get_signup_page());

    Is it just my slug for my page?

    Thanks so much.

    V


    Vendetta
    Participant

    @vendetta66

    I was able to use the article above and the Capability Manger plugin https://wordpress.org/extend/plugins/capsman/ to create a very nice to accomplish exactly what I wanted.

    Using the WP install as opposed to MU I now have a Blog menu that allows Members (now with the role of Authors) to add, edit, and manage comments on the main blog.

    Very nice, works exactly as I wanted.

    1. Create bp-custom.php and place it in wp-content/plugins/
    2. Add the code below and save.

    (ok well sorry … tried adding the code but it gets all mangled.)

    If you want it I guess send me a message or something :)

    V


    Vendetta
    Participant

    @vendetta66

    Ok so I started from scratch with WPMU this time …

    But it seems like overkill for what I need, I prefer to have my users just post on the main blog. Is there a way to get the admin bar links to work like the do in MU (minus the Create a Blog link) so that users can go straight to the admin panel and post?

    If a “Member” types wp-admin into the browser bar they can access the panel and post, I just need to know if theres a way to add that functionality to the admin bar? Or maybe is there a plugin that does this?

    Thanks

    V


    Vendetta
    Participant

    @vendetta66

    Yeah I can’t upload an avatar here … been trying all day.

    Just keeps saying there was an error handling the image. It works fine on my site with the same image, not sure what that’s all about.

    V


    Vendetta
    Participant

    @vendetta66

    I’m not sure there’s really a way to categorize what the membership will be. Basically people who’ve purchased one of my internet marketing products.

    When they buy something I sign them up automatically for the community and then can hook up with other folks to network.

    A network of “networkers: I suppose would be the closest.

    @mercime thanks for that post, that certainly helps.

    I’m thinking more of the “must haves” ie: you wouldn’t be able to survive without Flash Player, or Adobe Reader, or a Zip utility on your computer, or I wouldn’t anyway. More like that, stuff that is just a must have to building a cool functional community.

    V


    Vendetta
    Participant

    @vendetta66

    Ok.

    For anyone else that may suffer this frustration.

    Make sure you include files outside any classes or functions you are calling the wp functions from.

    define(‘WP_USE_THEMES’, false);
    require_once (dirname (dirname (__FILE__)) . “/community/wp-blog-header.php”);
    require_once (dirname (dirname (__FILE__)) . “/community/wp-includes/registration.php”);

    Then inside your class method or function you can call the wp function you need to run ie:

    $userid = wp_create_user ($username, $password, $email);

    echo $userid;

    Thanks for everyone’s help.

    V


    Vendetta
    Participant

    @vendetta66

    Yeah I discovered that I needed to move the include outside of my class and now I’ve gotten rid of that error.

    But now we can’t find the individual functions.

    Fatal error: Call to undefined function wp_create_user() in /home/netics/public_html/test.php on line 33

    Cool thanks for the links Ray.

    V


    Vendetta
    Participant

    @vendetta66

    This is where it dies:

    Fatal error: Call to undefined method stdClass::set_prefix() in /home/netics/community/wp-settings.php on line 287

    Which is:

    $prefix = $wpdb->set_prefix($table_prefix);

    V


    Vendetta
    Participant

    @vendetta66

    Yeah this is exactly what I was trying earlier.

    The only difference being that have no need to loop through anything, I need only call wp_create_user ()

    I haven’t tried it turning off the themes, I’ll give that a shot and see if it flies.

    Thanks for the reference.

    V


    Vendetta
    Participant

    @vendetta66

    No, I set up subdomains in their own root folder parallel with the public_html folder.

    I’ll check that out, thanks Ray.

    V


    Vendetta
    Participant

    @vendetta66

    Yes, the file path is correct.

    My application is in:

    /home/mysite/public_html/

    WP is in:

    /home/mysite/community/

    So yes this file path is correct.

    V


    Vendetta
    Participant

    @vendetta66

    Yeah it would other than the fact that I can’t call those function from an external application.

    And including files from the wp installation doesn’t seem to work either.

    It seems that you’d be able to simply include the wp-header file:

    require_once (dirname (dirname (__FILE__)) . “/community/wp-blog-header.php”);

    and be able to access all the functions within the system, but apparently I’m missing something, because I keep getting invalid function errors.

    This is why I’m trying to use curl to simply post the few fields needed to sign people up.

    Pretty frustrating so far.

    Thanks

    V


    Vendetta
    Participant

    @vendetta66

    Yeah no love on that solution either.

    This is ridiculous.

    Where in the world to the registration form post to in BP?

    V


    Vendetta
    Participant

    @vendetta66

    LOL, thanks man I appreciate it.

    V


    Vendetta
    Participant

    @vendetta66

    Uh …. anyone?

    Just need to know what url to post this script to … tried

    register/
    wp-register.php
    wp-login.php

    also the register page in the actual buddypress plugin, but no love there either.

    Thanks.


    Vendetta
    Participant

    @vendetta66

    I’m adding users based on signup to my own application.

    For instance a new users signs up to my site, I then use curl posts to add them to additional pieces of software such as our support desk, mailing list, and in this case community.

    $fields_string = “”;
    $url = ‘http://community.mysite.com/no-idea-what-url-to-post-to.php’;
    $fields = array (‘signup_username’ => urlencode($username), ‘signup_email’ => urlencode($email), ‘signup_password’ => urlencode($password), ‘signup_password_confirm’ => urlencode($password), ‘field_1’ => urlencode($username), ‘signup_profile_field_ids’ => urlencode(1));
    foreach($fields as $key => $value) {
    $fields_string .= $key.’=’.$value.’&’;
    }
    rtrim ($fields_string, ‘&’);
    $ch = curl_init ();
    curl_setopt ($ch, CURLOPT_URL, $url);
    curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 0);
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt ($ch, CURLOPT_POST, count ($fields));
    curl_setopt ($ch, CURLOPT_POSTFIELDS, $fields_string);
    $results = curl_exec ($ch);
    curl_close ($ch);

    If there’s a better way, please advise, everything is on the same server so I can include specific files to do a more API style function, just can’t seem to find any reference material that tells me what I need to know.

    I found a post on WordPress.org on using the

    wp_create_user ($username, $password, $email)

    function, but I can’t seem to find a way to implement it for an outside application.

    There really needs to be an external API.

    Anyway, appreciate the help :)

    V

Viewing 23 replies - 1 through 23 (of 23 total)
Skip to toolbar