Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 11,151 through 11,175 (of 14,141 total)
  • @robin-w

    Moderator

    ok, do keep us updated on your progress, I am interested to see how it turns out, hope it’s you:1 the technology:0 !

    @robin-w

    Moderator

    ok, you will need to set it in lots of places.

    try my plugin

    https://wordpress.org/plugins/bbp-style-pack/

    @robin-w

    Moderator

    ahh, so you started again, maybe I won’t suggest others delete their set-up to get it working 🙂

    I’ll have another play myself in a few weeks, but thanks for all your testing, and patience – many give up just before they would have fixed it !

    @robin-w

    Moderator

    well there you go, sounds like something needs ‘resetting’ to get it to work

    so did you deactivate/activate bbppress or what did you do? I’ll then add this as a suggestion in the documentation !

    @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

    @robin-w

    Moderator

    ok, do come back if you get it fixed – it should work, and something is stopping it !!

    @robin-w

    Moderator

    no problem

    @robin-w

    Moderator

    Oh and I am using the Houman Theme

    can you confirm you mean the hueman theme

    and that the plugin is ‘Responsive lightbox’ rather than ‘Responsive lightbox by dFactory’

    @robin-w

    Moderator

    Ok, I strongly think this is a theme issue to confirm try as a test switch to a default theme such as twentytwelve, and see if this fixes, the come back

    @robin-w

    Moderator

    So the “Forums” breadcrumb is never click-able as its the “current” page…

    it should be when you get to sub forums or topics viz

    Welcome › Forums › Main Forum › Chat › Joining the Forum

    only joining the forum is not clickable.

    If you can get it all working with

    Home/Forums

    Ie everything else is fine, then I’ll look at what you’d need to do to filter the breadcrumb to add the connect with a link to that page.

    @robin-w

    Moderator

    ok, more drastic action required

    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.

    Sorry I’m running out of ideas beyond this … 🙂

    @robin-w

    Moderator

    can you try disabling

    â—ľWPFront User Role Editor

    and see if that fixes?

    @robin-w

    Moderator

    @vikingpoker

    I have another plugin user with this issue, which helps as it should get me quicker to a solution.

    But can I also ask your help?

    Could I please ask you to do 2 things (or any combination will help me)

    1. Could you try version 1.2 – I’m not sure if the latest version 1.3 is an issue

    Therefore could you go to http://www.rewweb.co.uk/bbp-style-pack-1-2/ and follow the instructions.

    If this works, then let me know, as it will eliminate much of my code as the issue.

    2. If you are able to could you :
    a. Deactivate all plugins except bbpress and bbp style pack and see if this fixes. if it does, re-enable one at a time to see which is causing the error when my plugin is also active.
    b. If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.

    Then switch back to your normal theme and re-enable all plugins (except mine as this is causing the issue) and come back with the results

    @robin-w

    Moderator

    rewrite rules
    This could be an issue with your rewrite rules. To fix this try resetting your permalinks. In your WordPress Administration Screens navigate to Settings>Permalinks, select a different permalink structure and save. Then select your preferred permalink structure and save again.

    @robin-w

    Moderator

    sorry I’m not ignoring you or abandoning you, I’d like to get this working as well, but one of my plugins is causing users issues, so have diverted my attention to that.

    Just try pasting this into the line

    <label for="rpi_label1"><?php _e('First Name as people call you eg Dave','mydomain') ?><br />
    

    If I’m right it will fall over on the next line, and I can tell you the issue.

    If not, I’ll load you code into my test site and kick it when I get out from my plugin issue

    @robin-w

    Moderator

    ok, so what are

    2. wordpress role
    and
    3. forum role

    set to for your test user?

    @robin-w

    Moderator

    ok, slept on it, and we have three ‘user role’ areas

    1. buddypress membership level of a group
    dashboard>groups>buddypress group member
    2. wordpress role
    Dashboard>users>all users and edit a user
    the wordpress role is at the top
    3. forum role
    Dashboard>users>all users and edit a user
    the forum role is right at the bottom

    It is no. 3 that you are changing to member and should be the one affecting

    Can you confirm that this is the one we are talking about, and that you have changed to member

    @robin-w

    Moderator

    You may be psychic, but I nearly marked this as spam, sorry we don’t have time to go through sites to find pages and guess what this issue is.

    1. please provide a link to a forum page
    2. please state clearly what you mean ‘isn’t formatted properly’ and what you would like changed

    @robin-w

    Moderator

    thanks I’ll load that lot into my test site.

    If you need this fixed urgently, come back and I’ll cut just the key part you need into a mini plugin.

    Otherwise I’ll look at early next week

    In reply to: i ask theme ?

    @robin-w

    Moderator

    and where did you get the pic from?

    @robin-w

    Moderator

    no problem !

    @robin-w

    Moderator

    It was quicker to code it than describe it.

    Basically I’ve created a new widget called (rew) Login Widget

    Copy all the below into your functions file

    You’ll see that all it required was taking out the label, and putting ‘placeholder’ into the input line

    I even changed lost password into forgot your password !

    The go into widgets and you’ll see the new widget (rew) Login Widget

    enjoy !

    class Rew_Login_Widget extends WP_Widget {
    
    	/**
    	 * bbPress Login Widget
    	 *
    	 * Registers the login widget
    	 *
    	 * @since bbPress (r2827)
    	 *
    	 * @uses apply_filters() Calls 'bbp_login_widget_options' with the
    	 *                        widget options
    	 */
    	public function __construct() {
    		$widget_ops = apply_filters( 'rew_login_widget_options', array(
    			'classname'   => 'bbp_widget_login',
    			'description' => __( 'A simple login form with optional links to sign-up and lost password pages.', 'bbpress' )
    		) );
    
    		parent::__construct( false, __( '(rew) Login Widget', 'bbpress' ), $widget_ops );
    	}
    
    	/**
    	 * Register the widget
    	 *
    	 * @since bbPress (r3389)
    	 *
    	 * @uses register_widget()
    	 */
    	public static function register_widget() {
    		register_widget( 'Rew_Login_Widget' );
    	}
    
    	/**
    	 * Displays the output, the login form
    	 *
    	 * @since bbPress (r2827)
    	 *
    	 * @param mixed $args Arguments
    	 * @param array $instance Instance
    	 * @uses apply_filters() Calls 'bbp_login_widget_title' with the title
    	 * @uses get_template_part() To get the login/logged in form
    	 */
    	public function widget( $args = array(), $instance = array() ) {
    
    		// Get widget settings
    		$settings = $this->parse_settings( $instance );
    
    		// Typical WordPress filter
    		$settings['title'] = apply_filters( 'rew_widget_title', $settings['title'], $instance, $this->id_base );
    
    		// bbPress filters
    		$settings['title']    = apply_filters( 'rew_login_widget_title',    $settings['title'],    $instance, $this->id_base );
    		$settings['register'] = apply_filters( 'rew_login_widget_register', $settings['register'], $instance, $this->id_base );
    		$settings['lostpass'] = apply_filters( 'rew_login_widget_lostpass', $settings['lostpass'], $instance, $this->id_base );
    
    		echo $args['before_widget'];
    
    		if ( !empty( $settings['title'] ) ) {
    			echo $args['before_title'] . $settings['title'] . $args['after_title'];
    		}
    
    		if ( !is_user_logged_in() ) : ?>
    
    			<form method="post" action="<?php bbp_wp_login_action( array( 'context' => 'login_post' ) ); ?>" class="bbp-login-form">
    				<fieldset>
    					<legend><?php _e( 'Log In', 'bbpress' ); ?></legend>
    
    					<div class="bbp-username">
    						<input type="text" name="log" placeholder = "Username" value="<?php bbp_sanitize_val( 'user_login', 'text' ); ?>" size="20" id="user_login" tabindex="<?php bbp_tab_index(); ?>" />
    						
    					
    					</div>
    
    					<div class="bbp-password">
    						<input type="password" name="pwd" placeholder = "Password"  value="<?php bbp_sanitize_val( 'user_pass', 'password' ); ?>" size="20" id="user_pass" tabindex="<?php bbp_tab_index(); ?>" />
    					</div>
    
    					<div class="bbp-remember-me">
    						<input type="checkbox" name="rememberme" value="forever" <?php checked( bbp_get_sanitize_val( 'rememberme', 'checkbox' ), true, true ); ?> id="rememberme" tabindex="<?php bbp_tab_index(); ?>" />
    						<label for="rememberme"><?php _e( 'Remember Me', 'bbpress' ); ?></label>
    					</div>
    
    					<div class="bbp-submit-wrapper">
    
    						<?php do_action( 'login_form' ); ?>
    
    						<button type="submit" name="user-submit" id="user-submit" tabindex="<?php bbp_tab_index(); ?>" class="button submit user-submit"><?php _e( 'Log In', 'bbpress' ); ?></button>
    
    						<?php bbp_user_login_fields(); ?>
    
    					</div>
    
    					<?php if ( !empty( $settings['register'] ) || !empty( $settings['lostpass'] ) ) : ?>
    
    						<div class="bbp-login-links">
    
    							<?php if ( !empty( $settings['register'] ) ) : ?>
    
    								<a href="<?php echo esc_url( $settings['register'] ); ?>" title="<?php esc_attr_e( 'Register', 'bbpress' ); ?>" class="bbp-register-link"><?php _e( 'Register', 'bbpress' ); ?></a>
    
    							<?php endif; ?>
    
    							<?php if ( !empty( $settings['lostpass'] ) ) : ?>
    
    								<a href="<?php echo esc_url( $settings['lostpass'] ); ?>" title="<?php esc_attr_e( 'Forgot Your Password', 'bbpress' ); ?>" class="bbp-lostpass-link"><?php _e( 'Forgot Your Password', 'bbpress' ); ?></a>
    
    							<?php endif; ?>
    
    						</div>
    
    					<?php endif; ?>
    
    				</fieldset>
    			</form>
    
    		<?php else : ?>
    
    			<div class="bbp-logged-in">
    				<a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>" class="submit user-submit"><?php echo get_avatar( bbp_get_current_user_id(), '40' ); ?></a>
    				<h4><?php bbp_user_profile_link( bbp_get_current_user_id() ); ?></h4>
    
    				<?php bbp_logout_link(); ?>
    			</div>
    
    		<?php endif;
    
    		echo $args['after_widget'];
    	}
    
    	/**
    	 * Update the login widget options
    	 *
    	 * @since bbPress (r2827)
    	 *
    	 * @param array $new_instance The new instance options
    	 * @param array $old_instance The old instance options
    	 */
    	public function update( $new_instance, $old_instance ) {
    		$instance             = $old_instance;
    		$instance['title']    = strip_tags( $new_instance['title'] );
    		$instance['register'] = esc_url_raw( $new_instance['register'] );
    		$instance['lostpass'] = esc_url_raw( $new_instance['lostpass'] );
    
    		return $instance;
    	}
    
    	/**
    	 * Output the login widget options form
    	 *
    	 * @since bbPress (r2827)
    	 *
    	 * @param $instance Instance
    	 * @uses BBP_Login_Widget::get_field_id() To output the field id
    	 * @uses BBP_Login_Widget::get_field_name() To output the field name
    	 */
    	public function form( $instance = array() ) {
    
    		// Get widget settings
    		$settings = $this->parse_settings( $instance ); ?>
    
    		<p>
    			<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'bbpress' ); ?>
    			<input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $settings['title'] ); ?>" /></label>
    		</p>
    
    		<p>
    			<label for="<?php echo $this->get_field_id( 'register' ); ?>"><?php _e( 'Register URI:', 'bbpress' ); ?>
    			<input class="widefat" id="<?php echo $this->get_field_id( 'register' ); ?>" name="<?php echo $this->get_field_name( 'register' ); ?>" type="text" value="<?php echo esc_url( $settings['register'] ); ?>" /></label>
    		</p>
    
    		<p>
    			<label for="<?php echo $this->get_field_id( 'lostpass' ); ?>"><?php _e( 'Lost Password URI:', 'bbpress' ); ?>
    			<input class="widefat" id="<?php echo $this->get_field_id( 'lostpass' ); ?>" name="<?php echo $this->get_field_name( 'lostpass' ); ?>" type="text" value="<?php echo esc_url( $settings['lostpass'] ); ?>" /></label>
    		</p>
    
    		<?php
    	}
    
    	/**
    	 * Merge the widget settings into defaults array.
    	 *
    	 * @since bbPress (r4802)
    	 *
    	 * @param $instance Instance
    	 * @uses bbp_parse_args() To merge widget settings into defaults
    	 */
    	public function parse_settings( $instance = array() ) {
    		return bbp_parse_args( $instance, array(
    			'title'    => '',
    			'register' => '',
    			'lostpass' => ''
    		), 'login_widget_settings' );
    	}
    }
    
    add_action( 'widgets_init', function(){
         register_widget( 'Rew_Login_Widget' );
    });

    @robin-w

    Moderator

    will be at least tomorrow evening before I look at again, but the code does seem to work on my test stite with twenty ten, although I don’t know why it didn’t immediately !

    @robin-w

    Moderator

    But when I do that, the the breadcrumbs no longer work.
    //69.195.124.253/~ctwocndo/wp-content/uploads/2015/02/brokenBreadcrumb.jpg
    (I am sure the “Forums” in this image are truly the “connect/forum”)

    ok if you click that breadcrumb – I mean the forums bit, where does it go?

    If to forums, then we just need to add a breadcrumb before it to go to the connect page

    If not where does it go?

    Come back with that answer

    @robin-w

    Moderator

    ok, no easy filters, are you ok at coding, ie getting some code and amending it. If so i’ll come back with more info

Viewing 25 replies - 11,151 through 11,175 (of 14,141 total)