Search Results for 'wordpress'
-
Search Results
-
Topic: Buddypress Login Box Error
Hi,
I am launching a new website – FoodFitNature.Com – and I am having issues with a sign-up box located on my website sidebar. I have attached a picture of the issue here – https://snag.gy/K7zwnQ.jpg – as you can see circled in red the Username box says “usernameusername” and the password box says “passwordpassword”. Can someone help with this fix?
BuddyPress Version – 2.7.4
Wordpress Version – 4.7.1
Website – http://www.foodfitnature.com
Picture of error – https://snag.gy/K7zwnQ.jpgI added the following code (from this post) to enable email addresses in user profiles – which works but only when a user is logged in.
How can I change it to show the email address regardless of whether one is logged in or not?
function tiquality_add_custom_field() { if ( bp_is_active( 'xprofile' ) ) : if ( is_user_logged_in() ) { ?> <div class="bp-widget <?php bp_the_profile_group_slug(); ?>"> <table class="profile-fields"> <tr class="my_mail"> <td class="label">Contact me</td> <td class="data"><a href="mailto:<?php bp_displayed_user_email(); ?>"><?php bp_displayed_user_email(); ?></a></td> </tr> </table> </div> <?php } endif; } add_action('bp_profile_field_buttons', 'tiquality_add_custom_field');I tried deleting the line…
if ( is_user_logged_in() ) {but it took down the whole site.
WP v 4.7.1
Dear all,
maybe this should be question for core WordPress, so I apologise in advance 😉
I’m importing 100s of users from different non WordPress website to new WP with BuddyPress 🙂
The old database has User/Comments/Mentions… all of this is going to be transferred…
So, is there any way I can stop all email notifications (when user is created etc) and all BuddyPress notifications when I transfer the comments with existing @ mentions?
Thanks a lot 🙂
Hi. first i want apologize for my english :E
Now to the point. I need to turn on comments from non registred users in actvity stream.
I found this plugin (https://wordpress.org/plugins/bp-include-non-member-comments/), but it’s too old and doesn’t work. I want to ask you, if there is any other similar plugin, or another solution.
I am using last version of WP and BP.
Thank you for your help.
Topic: Clear WP Errors at Signup
Hi all,
I have customized the way Buddypress registers members by checking to see if the Display Name already exists. If a Display Name is found, I create a new WP error. The problem is, once the user changes their Display Name to something that isn’t found, the error persists when you get the success signup screen. I’ve tried manually clearing it, but not getting any results.
A few details:
Wordpress Version: 4.7.1
Buddypress Version: 2.7.4I’d like to keep my site anonymous if that’s ok.
Here is what I’ve done in the php files to achieve this:
buddypress\bp-members\classes\class-bp-signup.php
public static function add_backcompat( $user_login = '', $user_password = '', $user_email = '', $usermeta = array() ) { global $wpdb; $display_capture = sanitize_title($usermeta["field_1"]); //CUSTOM CODE $display_capture = ucfirst(strtolower($display_capture)); //CUSTOM CODE $user_id = wp_insert_user( array( 'user_login' => $user_login, 'user_pass' => $user_password, 'display_name' => $display_capture, //CUSTOM CODE 'user_email' => $user_email ) );wordpress\wp-includes\user.php
function wp_insert_user( $userdata ) { global $wpdb; /* Lots of code before here... */ if ( empty( $userdata['display_name'] ) ) { if ( $update ) { $display_name = $user_login; } elseif ( $meta['first_name'] && $meta['last_name'] ) { /* translators: 1: first name, 2: last name */ $display_name = sprintf( _x( '%1$s %2$s', 'Display name based on first name and last name' ), $meta['first_name'], $meta['last_name'] ); } elseif ( $meta['first_name'] ) { $display_name = $meta['first_name']; } elseif ( $meta['last_name'] ) { $display_name = $meta['last_name']; } else { $display_name = $user_login; } } else { $display_name = $userdata['display_name']; } //CUSTOM CODE $display_name = ucfirst(strtolower($display_name)); $display_name_check = $wpdb->get_var( $wpdb->prepare("SELECT ID FROM $wpdb->users WHERE display_name = %s AND user_login != %s LIMIT 1" , $display_name, $user_login)); if($display_name_check) { return new WP_Error( 'existing_display_name', __( 'Sorry, that display name already exists!' ) ); } /* Lots of code after here... */ }This successfully checks for the existence of a display name already in the database. It displays an error like it should and doesn’t allow the user to register. Now the only issue, how to clear the error when the user changes the display name to something not in the database?
As stated earlier, once the error occurs, it will persist through to the success message. I’ve confirmed that the error does not occur if the user selects a display name not currently being used on the first registration attempt.
I appreciate your time and help, thank you.
Hi support team,
On this page https://www.beforeplastic.com/members/beforeplastic/share-stories/
A non-logged in user can see the “Add Friend” button
Add friends was disabledAlso displaying is an unpublished post in draft mode. Shouldn’t these be hidden?
I am running wordpress 4.7.1. and buddy press 2.7.4
I am using a non-bundled theme but changing my theme may crash my site so don’t want to risk it.
Topic: front.php not working?
Okay, so I took the wordpress template files and put them in my theme. I then created front.php located at: mytheme/community/single/front.php
So what am I doing wrong? I copied my index.php and took out the header to see if it would work. It didn’t.
Also, where is all of this getting called from? It’s sooo confusing lol.
Hi,
I’m writing a WordPress/Buddypress installation script in bash with wp-cli.
The script installs a few plugins including buddypress.
After installing the plugins, the script needs to get the buddypress pages ids (activity, members, register…), but it seems that they are created only when the site admin logs in for the first time.
Is there a way to manually register these pages so that I could do this using wp-cli (or simple bash)?Thanks in advance.
regardsHi everyone,
So, my issue is relatively simple, and I’m sure there is a simple solution. I am using https://www.000webhost.com/ to create a free site that uses wordpress and, by extension, buddypress. My goal is basically to practice with these tools before deciding if I want to make a real site, considering all my site building experience is through other platforms. 000webhost appears lovely at first: I was able to easily create an account, choose a domain name, and then it even had wordpress there as a pre-set option that would auto-install if you so chose. I did it, and it appeared to work flawlessly and took me straight to the wordpress dashboard. However, the second I installed the BuddyPress plug-in, everything went blank. There is still the menu on the left hand side of the screen, but none of the tabs load whatsoever.
Considering I have never used wordpress or buddypress before, this could be a totally simple error on my part, but I couldn’t find a solution just from googling it. And I can’t just play around with it until it works, like I normally do, because there is nothing there to play with. What did I do wrong, and how can I fix it?
In my default registration page there are two forms: one of wordpress, and 1 of BuddyPress. I want to hide what BuddyPress, and I did, but as there is a “name mandatory field after have pressed the send button does not work because in fact lacks the coverage of this” name “field that I hid.
 I will then delete the mandatory field “name” from the registration page, or at least make sure that it is not mandatory add. How can I do this? thanks
Had this problem for some time now, so I had to disable all of my plugins to check which causes the problem. Unfortunately it’s buddypress.
When I want to edit an image with the image editor, it first shows me the broken image symbol. If i then click one of the buttons (mirror, rotate etc), the following message appears:Could not load the preview image. Please reload the page and try again.
As I said, I am pretty sure this is b/c of buddypress, because as soon as I disable that plugin, image editing works again.
Tried to reinstall bp but still get the error. Theme is MornerTopic: Sorting members list by job
Hello,
I am using BP 2.7.4 and the most recent WordPress version (4.7.1).
The registered members all need to fill out the profile field “Tätigkeit”, which is basically “job” in english. I added the job information to each profile in the members-loop now.
People are supposed to search for job-names and find every member, that has the keyword in any of their profile-fields (I did all that with BP Members Search already).
Now for a better overview, I want all the people with the same job listed underneath each other, e.g. at first everybody with party-location-rentals as their job, then everybody with party-catering as their job, etc.
This would be easy to archieve, if I was able to just sort the members by their job and in a alphabetical order. At the moment, the are ordered alphabetically, but by their name.How can I just switch the attribute they are sorted by from username to the field Tätigkeit? I have been digging through a bunch of php files lately, but couldn’t find the responsible one yet.
I will appreciate every reply that gets me a little closer to solve my problem.
Thanks in advance and have a good time!Topic: Quote under profile picture
Wordpress 4.7.1
Buddypress 2.7.4
http://www.medicinalplantclub.comHi, I am hoping someone can help. I just got buddypress set up on my site and there is a quote under my admin profile page that I apparently do not have access to change?? I cannot find it anywhere. I want to remove or change it but don’t know how. Sorry if this is extremely basic, but I am new to buddypress and there is no field within the profile or settings page. Thanks!
Hello everyone! I guess this is not a common issue, I haven’t found anything to solve this. I got 3 sites in a multisite wordpress system. some of the main site users will access the other ones. They need to have their profile in all of the sites. so far I managed to get the custom fields data but can’t get the avatar. Any hint?
Thanks
Topic: Change BuddyPress Login Link
So I’m using the buddypress Login/register links in my header, but the login link redirects to the standard wordpress page, my theme came with a custom login page so I’d like to use that page, how could I achieve that?
Did some research on here and Google but all I get are toolbar plugins and code that doesn’t work…
Thanks in advance!