Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '"wordpress'

Viewing 25 results - 8,026 through 8,050 (of 26,874 total)
  • Author
    Search Results
  • #158337
    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

    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' );
    });
    #158289
    Joe Dostie
    Participant

    I guess that makes sense…I took out http:

    Hi Robin,

    Thanks for your response, hopefully I can clear this up a little with some images.

    My goal is to have my forums as a child page
    //69.195.124.253/~ctwocndo/wp-content/uploads/2015/02/forums_child.jpg

    With my Forums Root = forums
    //69.195.124.253/~ctwocndo/wp-content/uploads/2015/02/root-forums.jpg

    The breadcrumbs (both bbPress and WordPress) will show correctly
    //69.195.124.253/~ctwocndo/wp-content/uploads/2015/02/correctBreadcrumb.jpg

    The problem is that when I create a new forum, it will not take the “connect” parent page into consideration.
    //69.195.124.253/~ctwocndo/wp-content/uploads/2015/02/BadForum.jpg

    In order to fix this, I can modify the Forum root = “connect/forums”
    //69.195.124.253/~ctwocndo/wp-content/uploads/2015/02/root-connect-forums.jpg

    And that will fix the permalink of a new forum
    //69.195.124.253/~ctwocndo/wp-content/uploads/2015/02/Page31.jpg

    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”)

    So that where I kind of am.

    I did see your recommendation, but wouldn’t that get wiped the next time I upgrade bbPress?

    Again, thank you for your response.

    Kind Regards,

    Joe

    #158280
    kc9wwh
    Participant

    Here is the list of plugins installed and activated…

    • bbPress
    • bbPress Pencil Unread
    • BuddyPress
    • Buddypress Xprofile Custom Fields Type
    • GD bbPress Attachments
    • GD bbPress Tools
    • If Menu
    • Jetpack by WordPress.com
    • Login Logo
    • The Events Calendar
    • Theme Logo
    • WPFront User Role Editor
    • WP Maintenance Mode
    #158273

    In reply to: Forum Width

    Robin W
    Moderator

    They have move the link

    try

    Child Themes

    #158268

    In reply to: Forum Width

    kc88
    Participant

    Hi Robin, the link works, the link that doesn’t work is in the document https://make.wordpress.org/training/modules-in-progress/child-theme-module/
    The tutorial on how to make a child theme. I’m having trouble with how to do this, do you know of any tutorials that explains it clearly step by step starting from setting up the child theme files.

    When I go try to add files to the theme it asks me for a zip file.

    #158252

    In reply to: Log In Problems

    Robin W
    Moderator

    Emails not working can be caused by many factors. Try working through the following :
    Spam filters
    You should be aware that many spam filters strip messages that do not come from the correct address. So if your site is mysite.com and your email address in wordpress settings>general is fred@gmail.com then it is likely that messages will be dumped in transit. You need to set up email to come from your site egfred@mysite.com, your hosting provider can help if needed.
    Host Provider
    Talk to your host provider about why emails are being stripped

    #158251

    In reply to: Log In Problems

    don5999
    Participant

    Thanks Robin, I’m grateful for all your help.

    Check Email
    The test email has been sent by WordPress. Please note this does NOT mean it has been delivered. See wp_mail in the Codex for more information. The headers sent were:
    MIME-Version: 1.0\r\n
    From: ******@*************.***\r\n
    Content-Type: text/plain; charset=”UTF-8″\r\n

    However, nothing is received at the email address in eith er inbox or junk :0(

    #158243

    In reply to: Log In Problems

    Robin W
    Moderator

    Try https://wordpress.org/plugins/check-email/

    to see if your email is working

    #158236

    In reply to: Forum Width

    kc88
    Participant

    Are there any links to teach you how to make a child theme and put it into wordpress? I tried clicking the link within the article that you referenced but that link lead to a page not found.

    #158231

    In reply to: Log In Problems

    don5999
    Participant

    Yes, it has that shortcode.

    a) I have no idea if it is sending – I havent set anything up email wise
    b) I have tried my business email and personal email addresses and its not receiving on either
    c) I have looked in both junk folders and nothing in there

    Do I need to set up an external link to email or setting inside of wordpress or bbpress to open my Outlook to send it or should it automatically send through wordpress?

    #158225
    Robin W
    Moderator

    ok, the simplest way would be

    Dashboard>forums>all forums and edit each forum

    put the banner in the description

    then download my plugin

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

    and tick item 6 Add Forum Description on the forum display tab

    vikingpoker
    Participant

    Using bbpress 2.5.4, wordpress 4.1, buddypress 2.2 http://www.new.stonemagegames.com

    I just started learning all of this so please be patient with me. How come when I make a new forum and it brings up the new page where I can place an image, the image does not appear on the forum page when I click on the forum? I do not understand why this is so complicated. All I want is a banner on the top of the forum page. That’s it. Nothing more… nothing less… I haven’t found any way to do this or make it work. I dont know the proper terminology to use when searching for answers so I am completely lost. I have watched youtube videos and read many posts. My head is about to explode!!!

    I made a page and threw it up in the top menu that says forums. It has a picture on it. My forums are on the side bar and they work fine. Why would they even bother giving me a page to upload media when I create a new forum if it wont even display it? It doesn’t make sense.

    So then I tried using widgetlogic. I have entered every code I can find and nothing makes it display on the page that I put the banner on. All that happens is that my forum list disappears from the sidebar.

    Please tell me that i’m just an idiot and I am overlooking something stupid and simple. Please tell me that it is not this complicated just to have a banner on the top of my forum pages. Please HELP!!!

    #158183
    Robin W
    Moderator

    yes that’s to do with how wordpress stores stuff.

    the code you need to use is in the post above, don’t use the email one !

    Try again and come back !

    #158178
    format19
    Participant

    Hi Robin,

    I do understand I too have had other things to do.

    I dont know what you mean by “the standard wordpress registration” do you mean the standard bbpress registration ?

    I installed WordPress, I installed bbpress, I installed Buddy Press
    The default registration page is now NOT the default wordpress it is the bbpress registration?
    And by default the bbpress plugin ads “Profile Fields” of which there is a default set of “NAME” which you cant delete and IS required. I believe it is this field that is transferring to the “Nickname” field and causing the problem.

    https://www.dropbox.com/s/3mzrx6ry5stb7mh/deault%20Profle%20Field.jpg?dl=0

    See the pic above

    I have just run a test, i registered
    Username : testing2
    Name : Testing Two

    Here is a screen shot of what registered
    https://www.dropbox.com/s/lxu0vysxd3edams/deault%20Profle%20Field2.jpg?dl=0

    So the first and last name are definitely being filled out from that default Name field (dont really care about the first and last name, its the nickname thats the problem)

    Any ideas? I cant go live with this site promising anonymity and then have the users name displayed in the address bar 😕

    Thanks
    Mark

    #158176
    Robin W
    Moderator

    good start, but that approach gets very complicated, as whilst you have added the fields, you have not saved them or said where to save them – that requires a whole bunch of other code !

    Easier approach :

    bbpress uses wordpress registration, so it’s easier to hook to that.

    The whole bunch of code below is not my original work (but I do use it on one of my sites, so know it works) but if you have a play with it, you should be able to adapt it.

    `//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 and last_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’, __(‘ERROR: You must include a first name.’,’mydomain’) );
    if ( empty( $_POST[‘last_name’] ) )
    $errors->add( ‘last_name_error’, __(‘ERROR: 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’]);
    }

    in essence start by looking at the end – 3. save

    and the line

    update_user_meta($user_id, ‘first_name’, $_POST[‘first_name’]);

    this is updating a user_meta field called ‘first_name’ for the user_id $user_id with the information entered in $_POST[‘first_name’]

    So it is saving the first name the user enters in a user_meta field for that user called ‘first_name’

    My plugin stores the data in a user_meta field called ‘rpi_label1’, so a find/replace to change ‘first_name’ to ‘rpi_label1’ is what is needed throughout the code. then some tidying up of things like the prompts and you should have it working.

    Give it a go, and see how you get on. IF you get it working, the deal is you post the result back here, and I can nick it for the plugin (and give you a credit) !

    If you don’t then come back with how you are getting on, and I’ll help – too tied up to do all the work myself !

    This code by the way goes in your functions file see

    Functions files and child themes – explained !

    #158170
    Robin W
    Moderator
    #158169
    Robin W
    Moderator

    Perhaps we decide that it would be great to have this feature for our platform and hire someone.

    Contact

    Contact me

    #158162
    milenushka
    Participant

    Hi @robin-w

    My email in settings is set to my site’s email , and I tested it with the plugin you suggested too, it says its all good:

    This test email proves that your WordPress installation at “Mysite” can send emails. Sent: Wed, 11 Feb 2015 08:27:40 +0000

    Subscribers also receive email notifications from buddypress- if somebody replies to their comment, or tags them in a post – or a bbpress thread.

    Just no email at all if one is subscribed to the forum, topic or replies.

    I am not using the mandrill service (wpMandrill), so this solution I think- does not apply to me https://bbpress.org/forums/topic/problem-with-the-default-do-not-reply-email-address/
    and my server is bluehost.

    The forum is a big part of my site’s community life , so the fact that there are no email notifications is pretty upsetting.

    I searched this forum and for days, really hope there is a simple solution.

    P.s I also tested it without any plugins but bbpress, default theme and reinstalled bbpress. Still no email are being received.

    Thank you

    @netweb
    I would really appreciate if you could take a look at this thread too.

    there is another one that seems unresolved here

    Email notifications not working; looking for help

    #158160
    Robin W
    Moderator

    hmm…. bbpress plays well with wordpress, so that should not happen.

    Usually a 500 error in wordpress a coding issue.

    Do you only get the 500mn errors when you btry and do something wordpressy?

    and when you get a 500 error, click the refresh on your browser, and usually it comes up with the specific error that is occurring – come back with that.

    #158153

    In reply to: Whitelisting users?

    Doug Smith
    Participant

    Ah, I didn’t realize it was Akismet doing that rather than bbPress itself.

    There was a plugin for the old bbPress and WordPress that disabled Akismet checking for certain user roles. I’ll have to see if I can adapt the WordPress part of that to work for the new bbPress posting instead of just WordPress comments.

    Here is the old plugin for reference of anyone following along.
    https://plugins-svn.bbpress.org/skip-akismet/trunk/skip-akismet.php

    And here is a modified version that disabled checking for users who have been registered for a certain time.
    https://github.com/Gamua/bbPress/blob/master/my-plugins/skip-akismet.php

    #158146
    Robin W
    Moderator

    Emails not working can be caused by many factors. Try working through the following :
    1. Spam filters
    You should be aware that many spam filters strip messages that do not come from the correct address. So if your site is mysite.com and your email address in wordpress settings>general is fred@gmail.com then it is likely that messages will be dumped in transit. You need to set up email to come from your site eg fred@mysite.com, your hosting provider can help if needed.
    2. Just bbpress?
    Then you need to see if this is wordpress wide or just bbpress.
    Try https://wordpress.org/plugins/check-email/

    then come back

    #158143

    In reply to: Log In Problems

    Robin W
    Moderator

    In order to test, I have created a new user (in users) but when I log out, and try to log in the new details it comes up with the wordpress admin panel saying wrong details.

    Can you give the exact error please

    #158133
    don5999
    Participant

    I am using wordpress theme Customizr and have downloaded bbpress.

    When I go to my site I can view the created forum (it is private for members only) as I am logged in.

    In order to test, I have created a new user (in users) but when I log out, and try to log in the new details it comes up with the wordpress admin panel saying wrong details. If I try to go back into the wordpress dashboard, it has logged me out from there too.

    I would really appreciate all your help.

    http://www.rosemaryheart.com

    #158129
    Nicolas Korobochkin
    Participant

    @caneblu it is not a bug. wp-signup.php on the root site – is how WordPress working.

Viewing 25 results - 8,026 through 8,050 (of 26,874 total)
Skip to toolbar