Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • bigkill
    Participant

    @bigkill

    copy the code you used in your footer here and we might can see what you did wrong and tell you how to fix it..


    bigkill
    Participant

    @bigkill

    I use IXWEBHOSTING

    past three years it\’s all good. 24/7 support and if you call in via the phone you won\’t get India

    ** about 3 months ago anyone with a .htaccess file got a redirect added – it took them about 2 weeks to figure this out – since then they have tightened up security which is a plus –


    bigkill
    Participant

    @bigkill

    would be nice if this topic dived deeper into apeatlings comment “Attach it to the action ‘signup_extra_fields’ and it will show up” how does one do this? or is it better to leave this to the uber php geeks?

    good idea on changing the wp-signup.php

    lets mark this resolved..

    bottom line is if you want to use wp-recapatcha you need to install it in mu-plugins

    thank you all for your help.. I’m going to start working on my theme now..


    bigkill
    Participant

    @bigkill

    okay if I force it sitewide (by placing it in mu-plugins) it works.. BUT recaptcha will allow you to enter only a portion of the image.. I tested this at multiple sites.. get half of the question right and you’re in. Will see how well this works against spam. I though recaptcha was the best but this seems.. not so hot?!?

    john, we are kinda off the hook.. so long as owners don’t mind forcing this sitewide. You agree we mark this resolved? if not I’ll be glad to assist as your lab rat if you have any ideas.

    thank you all for your efforts!


    bigkill
    Participant

    @bigkill

    rich, wp-recaptcha works in my comments section just not the sign-up piece.

    I didn’t install wp-recaptcha in mu-plugins as it would force it sitewide however since you said you didn’t have issues I’ll give it a try in about 1 hour. I can live with it being forced sitewide.

    Thanks for the input, I’ll let you know how it goes.


    bigkill
    Participant

    @bigkill

    I’ll keep hackin John.. can anyone confirm

    a) I’m supposed to be modifying bp-core-signup.php

    b) I’m inserting, add_action( ‘signup_extra_fields’, ‘function_name’ );, into the correct line number – currently 121 ish

    c) I’m inserting, add_filter( ‘wpmu_validate_user_signup’, ‘function_name’, 10, 1 );, into the correct place line 126 ish


    bigkill
    Participant

    @bigkill

    thank you for advice.. but you guys must think I’m a programmer.. sorry Im just a networking guy with web design hobby. When it comes to PHP I’m a green horn but have been hacking WP for some time now with decent success. with that said here is where I stand and what I have tried.. so far no good

    I have been working in bp-core-signup.php

    I inserted this ***** add_action( ‘signup_extra_fields’, ‘public.php’ ); *****

    before line (and tried it after ) 123ish

    do_action( ‘signup_extra_fields’, $errors );

    and also

    I inserted this

    add_filter( ‘wpmu_validate_user_signup’, ‘private.php’, 10, 1 );

    before line (and tried it after )

    return wpmu_validate_user_signup($_POST, $_POST);

    am i putting it in the right areas??

    the code in public.php is a follows:

    <?php
    require_once('recaptchalib.php');
    $publickey = "…"; // you got this from the signup page
    echo recaptcha_get_html($publickey);
    ?>

    the code in private.php is a follows:

    `

    <?php

    require_once(‘recaptchalib.php’);

    $privatekey = “…”;

    $resp = recaptcha_check_answer ($privatekey,

    $_SERVER[“REMOTE_ADDR”],

    $_POST[“recaptcha_challenge_field”],

    $_POST[“recaptcha_response_field”]);

    if (!$resp->is_valid) {

    die (“The reCAPTCHA wasn’t entered correctly. Go back and try it again.” .

    “(reCAPTCHA said: ” . $resp->error . “)”);

    }

    ?>

    I did indeed try adding the code directly in the fields (both with and without php tags) ** add_action( ‘signup_extra_fields’, ‘code-from-above-pasted-here’ ); ** .. that didn’t work out..

    Help please? Thanks


    bigkill
    Participant

    @bigkill

    john.. to the rescue again. I could add the capcha myself if I knew which php doc’s were the “form.php” and “process.php” Can someone please point me to where the registration form is and where that registration form is processed? I’ll post the modifications necessary to get wp-recapcha working once I have this information, granted I can get it to work..

    I assume – /bigkill.com/wp-content/mu-plugins/bp-core/bp-core-signup this is the “form”

    but where is the “process.php” piece? I assume /registration.php .. but I can’t find this

    TIA


    bigkill
    Participant

    @bigkill

    johnjamesjacoby – only with your help! thanks


    bigkill
    Participant

    @bigkill

    okay.. for future BP installers if you get 500 error after mu install and your host doesn’t like your .htaccess file

    the default htaccess.dist looks like this

    RewriteEngine On
    RewriteBase BASE/

    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
    RewriteRule . index.php [L]

    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

    But…

    notice line #2

    RewriteBase BASE/

    this should read

    RewriteBase /

    so if you get 500 error.. this could be the culprit – works for me

    source – https://mu.wordpress.org/forums/topic.php?id=11076


    bigkill
    Participant

    @bigkill

    johnjamesjacoby – so what should my directory look like where wordpress lives?

    /.htaccess

    /htaccess.dist

    or that the content of htaccess.dist and place into .htaccess?

    I have been fighting this and my php.ini.. so if I knew the correct way I need to start there.

    TIA


    bigkill
    Participant

    @bigkill

    to-do-mini-forms – brilliant!

    many thanks


    bigkill
    Participant

    @bigkill

    johnjamesjacoby – you got it man.. it was in the wp-config

    changed from

    $base = ‘base’;

    changed to

    $base = ‘/’;

    /** The Database Collate type. Don’t change this if in doubt. */

    define(‘DB_COLLATE’, ”);

    define(‘VHOST’, ‘no’);

    $base = ‘/’;

    define(‘DOMAIN_CURRENT_SITE’, ‘bigkill.com’ );

    define(‘PATH_CURRENT_SITE’, ‘/’ );

    define(‘BLOGID_CURRENT_SITE’, ‘1’ );

    but now that I can see the blog it appears that the theme doesn’t get applied http://bigkill.com/foundonweb/

    time to open a new post


    bigkill
    Participant

    @bigkill

    yes I’d like them to sign up as users.. once logged in as a user they can submit content to the site without having a blog.

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