Joshua4550 (@joshua4550)

Forum Replies Created

Viewing 1 replies (of 1 total)
  • In reply to: Guest Posting Question

    Joshua4550
    Participant

    @joshua4550

    Mike,

    I have just stumbled upon the thread from 3 years ago and it led me to finding yours here. Is this really not resolved?

    I recently got bbPress up and running and I also needed this. I went ahead and found the solution… here goes…

    It’s in the template. Seriously. Let’s take the previous answer (sorry for no reference) that souneone suggested to “tell the users to use anon@example.com”, and we’ll make it even easier for the user.

    Make sure to copy the default bbpress template “form-anonymous.php” to /wp-content/themes/your-theme/bbpress/

    Open up form-anonymous.php from your theme and find the following code section:

    <p>
    			<label for="bbp_anonymous_email"><?php _e( 'Mail (will not be published) (required):', 'bbpress' ); ?></label><br />
    			<input type="text" id="bbp_anonymous_email"   value="<?php bbp_author_email(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_anonymous_email" />
    		</p>

    Delete that. In fact, replace it with the following:

    <input type="hidden" id="bbp_anonymous_email" value="anon@yourdomain.com" tabindex="-1234" name="bbp_anonymous_email" />

    Save it out, close it out. You’re done!

    Now you don’t require names.. it forces the “anon@yourdomain.com” as the value.
    Developers can still change it 😉

    remember to change yourdomain.com to your actual domain in the values I gave above.

    if you have further questions or anything reach out on skype joshuasadler4550

Viewing 1 replies (of 1 total)