Search Results for '"wordpress'
-
AuthorSearch Results
-
February 13, 2015 at 5:01 am #158337
In reply to: Custom Roles & Capabilities
Robin W
Moderatorok, 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 bottomIt 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
February 12, 2015 at 8:26 pm #158304Robin W
ModeratorIt 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' ); });February 12, 2015 at 6:42 pm #158289In reply to: Moving Forums Root to sub page
Joe Dostie
ParticipantI 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.jpgWith my Forums Root = forums
//69.195.124.253/~ctwocndo/wp-content/uploads/2015/02/root-forums.jpgThe breadcrumbs (both bbPress and WordPress) will show correctly
//69.195.124.253/~ctwocndo/wp-content/uploads/2015/02/correctBreadcrumb.jpgThe 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.jpgIn 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.jpgAnd that will fix the permalink of a new forum
//69.195.124.253/~ctwocndo/wp-content/uploads/2015/02/Page31.jpgBut 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
February 12, 2015 at 6:18 pm #158280In reply to: Custom Roles & Capabilities
kc9wwh
ParticipantHere 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
February 12, 2015 at 5:27 pm #158273In reply to: Forum Width
Robin W
ModeratorFebruary 12, 2015 at 3:06 pm #158268In reply to: Forum Width
kc88
ParticipantHi 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.
February 12, 2015 at 8:06 am #158252In reply to: Log In Problems
Robin W
ModeratorEmails 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 strippedFebruary 12, 2015 at 7:25 am #158251In reply to: Log In Problems
don5999
ParticipantThanks 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\nHowever, nothing is received at the email address in eith er inbox or junk :0(
February 12, 2015 at 4:44 am #158243In reply to: Log In Problems
Robin W
ModeratorTry https://wordpress.org/plugins/check-email/
to see if your email is working
February 12, 2015 at 12:57 am #158236In reply to: Forum Width
kc88
ParticipantAre 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.
February 11, 2015 at 8:06 pm #158231In reply to: Log In Problems
don5999
ParticipantYes, 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 thereDo 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?
February 11, 2015 at 7:44 pm #158225Robin W
Moderatorok, 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
February 11, 2015 at 5:30 pm #158194vikingpoker
ParticipantUsing 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!!!
February 11, 2015 at 2:01 pm #158183In reply to: URGENT – Nickname displays in address bar
Robin W
Moderatoryes 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 !
February 11, 2015 at 12:10 pm #158178In reply to: URGENT – Nickname displays in address bar
format19
ParticipantHi 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 TwoHere is a screen shot of what registered
https://www.dropbox.com/s/lxu0vysxd3edams/deault%20Profle%20Field2.jpg?dl=0So 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
MarkFebruary 11, 2015 at 9:29 am #158176In reply to: bbPress User Profile Manipulation
Robin W
Moderatorgood 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
February 11, 2015 at 6:53 am #158170In reply to: Using shortcode [bbp-reply-form] to specific topic!?
Robin W
ModeratorFebruary 11, 2015 at 6:53 am #158169In reply to: Using shortcode [bbp-reply-form] to specific topic!?
Robin W
ModeratorPerhaps we decide that it would be great to have this feature for our platform and hire someone.
February 11, 2015 at 5:12 am #158162In reply to: Subscription email notifications not working
milenushka
ParticipantHi @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
February 11, 2015 at 4:53 am #158160In reply to: Significant trouble with a stubborn sidebar
Robin W
Moderatorhmm…. 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.
February 10, 2015 at 11:17 pm #158153In reply to: Whitelisting users?
Doug Smith
ParticipantAh, 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.phpAnd 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.phpFebruary 10, 2015 at 6:20 pm #158146In reply to: Subscription email notifications not working
Robin W
ModeratorEmails 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
February 10, 2015 at 6:08 pm #158143In reply to: Log In Problems
Robin W
ModeratorIn 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
February 10, 2015 at 1:17 pm #158133Topic: Log In Problems
in forum Troubleshootingdon5999
ParticipantI 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.
February 10, 2015 at 11:09 am #158129In reply to: User registration on multisite
Nicolas Korobochkin
Participant@caneblu it is not a bug. wp-signup.php on the root site – is how WordPress working.
-
AuthorSearch Results