Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 10,801 through 10,825 (of 14,219 total)
  • @robin-w

    Moderator

    This is a valid IP address – it’s just a IPv6 address – the new bigger ones as the world is running out of the old IPv4 addresses

    @robin-w

    Moderator

    1.
    The following if added to your functions file will add fields, you can alter the coding as needed

    //add code for adding first and last name to registration
    
    //1. Add a new form element...
        add_action('register_form','myplugin_register_form');
        function myplugin_register_form (){
            $first_name = ( isset( $_POST['first_name'] ) ) ? $_POST['first_name']: '';
    		$last_name = ( isset( $_POST['last_name'] ) ) ? $_POST['last_name']: '';
            ?>
    		<p>
    		<label for="first_name"><?php _e('First Name  as people call you eg Dave','mydomain') ?><br />
                    <input type="text" name="first_name" id="first_name" class="input" value="<?php echo esc_attr(stripslashes($first_name)); ?>" size="25" /></label>
            </p>
    		<p>
                <label for="last_name"><?php _e('Last Name','mydomain') ?><br />
                    <input type="text" name="last_name" id="last_name" class="input" value="<?php echo esc_attr(stripslashes($last_name)); ?>" size="25" /></label>
            </p>
            <?php
        }
    
        //2. Add validation. In this case, we make sure first_name is required.
        add_filter('registration_errors', 'myplugin_registration_errors', 10, 3);
        function myplugin_registration_errors ($errors, $sanitized_user_login, $user_email) {
    
            if ( empty( $_POST['first_name'] ) )
                $errors->add( 'first_name_error', __('<strong>ERROR</strong>: You must include a first name.','mydomain') );
    		if ( empty( $_POST['last_name'] ) )
                $errors->add( 'last_name_error', __('<strong>ERROR</strong>: You must include a last name.','mydomain') );
    			
    
            return $errors;
        }
    
        //3. Finally, save our extra registration user meta.
        add_action('user_register', 'myplugin_user_register');
        function myplugin_user_register ($user_id) {
            if ( isset( $_POST['first_name'] ) )
                update_user_meta($user_id, 'first_name', $_POST['first_name']);
    		if ( isset( $_POST['last_name'] ) )
                update_user_meta($user_id, 'last_name', $_POST['last_name']);
        }
    

    Plenty of captcha plugins – just google ‘wordpress plugin captcha’

    If you’d like to specify your req’s further, I’ll try to help.

    2. no need to change theme, just add the following to your css file

    .site-content .entry-header, .site-content .entry-content, .site-content .entry-summary, .site-content .entry-meta, .page-content {
      max-width: 100% !important;
    }

    Functions files and child themes – explained !

    In reply to: locked out of admin

    @robin-w

    Moderator

    the a:2 says that there is an array with two entries then they are contained within the {}

    the S:13 says that the entry is a string with 13 letters ie ‘administratior’ so yes you need to change that if you change the contents.

    dinlt know what the b:1 is, except that you need it after the entries !

    @robin-w

    Moderator

    edited filter above

    @robin-w

    Moderator

    that is entirely intentional – it lets keymasters see IP addresses to spot people who might post under several names.

    you could hide it with css

    .bbp-reply-ip {
    display : none !important ;
    }

    or amend line 512 of loop-single-reply

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    find
    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-reply.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/loop-single-reply.php
    bbPress will now use this template instead of the original

    then take out line 51 – you may also need to do this to loop-single-topic

    or use a filter to get rid of it

    function remove_ip () {
    $author_ip = '' ;
    return $author_ip ;
    }
    
    add_filter( 'bbp_get_author_ip', 'remove_ip');
    

    @robin-w

    Moderator

    sorry capabilities are forum wide, and lots of code would be needed to make them forum specific.

    I can’t immediately think of an alternate solution

    @robin-w

    Moderator

    @robin-w

    Moderator

    If your site is that busy, you really should have a test site

    https://codex.bbpress.org/creating-a-test-site/

    @robin-w

    Moderator

    ok, I thin k this is your theme – can you try a default one such as twentyten, just as a test

    @robin-w

    Moderator

    ok, did you do either of

    Dashboard>settings>permalinks. Don’t change anything, but just click save. This resets the permalinks, and can solve some 404 errors.
    Dashboard>tools>forums>repair forums and run one at a time. Useful if you’ve got some stuff not showing – doesn’t often fix but occasionally does.

    @robin-w

    Moderator

    great !

    In reply to: Users' avatar

    @robin-w

    Moderator

    @robin-w

    Moderator

    so presume you are fixed?

    @robin-w

    Moderator

    ok, I don’t think you have the standard index template

    Have you got in your theme the following file

    wp-content/themes/%your-theme-name%/bbpress/content-archive-forum.php

    where %your-theme-name% is the name of your theme

    or have you amended

    wp-content/plugins/bbpress/templates/default/bbpress/content-archive-forum.php

    @robin-w

    Moderator

    what other plugins do you have?

    viz

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    @robin-w

    Moderator

    Great – glad you’re fixed !

    @robin-w

    Moderator

    It could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.

    Then come back

    In reply to: Font Size

    @robin-w

    Moderator

    Great !

    @robin-w

    Moderator

    Don’t know – never tried it ! 🙂

    @robin-w

    Moderator

    sorry without spending a large amount of time and code, best I can come up with.

    @robin-w

    Moderator

    Currently it is using the bbpress.php template

    which you got from where, and have put where?

    @robin-w

    Moderator

    You originally posted a picture of a screen with ‘…marketing forum’ which I took to be a forum not a topic, and therefore I posted a solution for forum.

    Now you have posted a topic without a description, complaining that my solution did not work which it would have as it is a topic not a forum, the forum being the solution to the original picture.

    Please re-describe what exactly it is that you do want. and how/where you would expect to post a topic description?, are you expecting topic creators to have an area to put a description?

    Yours confused …

    @robin-w

    Moderator

    no firm ideas except that you blocked yourself by mistake !

    @robin-w

    Moderator

    yes, just create a topic, no forums, and then create a page with the following shortcode

    [bbp-single-topic id=$topic_id]

    That way you’ll just have a page with that one topic.

    In reply to: Permalink

    @robin-w

    Moderator

    dashboard>settings>forums and look for the forum slugs

Viewing 25 replies - 10,801 through 10,825 (of 14,219 total)