Search Results for 'wordpress'
-
Search Results
-
Topic: phone number or email
First thanks for your awesome plugin.
Please at the sign up page, I want visitors to be able to use phone instead of email during sign up
In the email field of the sign up form, is it possible to display email or phone number, so that visitors can use either email or phone number, thank you. Am using the latest WordPress.
Topic: New Theme for Free
I’ve been developing a new theme called Centro which supports the core functionality of WordPress & BuddyPress.
It’s currently still in development but has been released and is available on GitHub.
You can view a demo on buddycore or here also and a download is available via GitHub.
Issues will be answered and resolved via GitHub.
Enjoy! Happy New Year!
**********************
Some Features
**********************
Colour customizations in wp-admin.
Support for posts and pages
Archive pages for search and taxonomies
Post thumbnails and post formats
Post commentsActivity streams
Member profiles
– xProfile
– Settings
– Friends
– PMs
– Notifications
– MultisiteRegistration
– Basic member
— With blog creationResponsive
HTML5
Cross Browser (IE10+)*************************
Group support will definitely be added in the next updates
Plan to add support for BBPress and possibly WooCommerceAll of this depends on how many people are using the theme and feature requests from users.
The problem:
I want to display different types of names on the updates in the activity stream like:
– first name + last name for updates which the user posts on their stream
– username/display name when there are updates in groupsi have written the following code:
/** * Get the fullname of the current member in the loop. * * Full name is, by default, pulled from xprofile's Full Name field. * When this field is empty, we try to get an alternative name from the * WP users table, in the following order of preference: display_name, * user_nicename, user_login. * * @return string The user's fullname for display. */ function bp_get_member_name_custom() { global $members_template, $bp; // print_r($members_template->member->id); $firstname= bp_get_profile_field_data('field=vorname&user_id='.$members_template->member->id); $lastname= bp_get_profile_field_data('field=nachname&user_id='.$members_template->member->id); if(!empty($firstname) || !empty($firstname)){ $fullname = $firstname.' '.$lastname ; return apply_filters( 'bp_get_member_name_custom',$fullname ); }else{ $name_stack = array( 'display_name', 'user_nicename', 'user_login' ); foreach ( $name_stack as $source ) { if ( !empty( $members_template->member->{$source} ) ) { // When a value is found, set it as fullname and be done with it. $members_template->member->fullname = $members_template->member->{$source}; break; } } return apply_filters( 'bp_get_member_name_custom', $members_template->member->fullname ); } /** * Filters the display name of current member in the loop. * * @since 1.2.0 * * @param string $fullname Display name for current member. */ } add_filter( 'bp_get_member_name_custom', 'wp_filter_kses' ); add_filter( 'bp_get_member_name_custom', 'stripslashes' ); add_filter( 'bp_get_member_name_custom', 'strip_tags' ); add_filter( 'bp_get_member_name_custom', 'esc_html' ); // full name to all memebr list add_filter('bp_get_member_name','bp_get_member_name_custom'); // Fullname in group memeber list function bp_get_group_member_link_custom() { global $members_template, $bp; $firstname= bp_get_profile_field_data('field=vorname&user_id='.$members_template->member->id); $lastname= bp_get_profile_field_data('field=nachname&user_id='.$members_template->member->id); if(!empty($firstname) || !empty($firstname)){ $fullname = $firstname.' '.$lastname ; return apply_filters( 'bp_get_group_member_link_custom', '<a href="' . bp_core_get_user_domain( $members_template->member->user_id, $members_template->member->user_nicename, $members_template->member->user_login ) . '">' . $fullname . '</a>' ); }else{ $name_stack = array( 'display_name', 'user_nicename', 'user_login' ); foreach ( $name_stack as $source ) { if ( !empty( $members_template->member->{$source} ) ) { // When a value is found, set it as fullname and be done with it. $members_template->member->fullname = $members_template->member->{$source}; break; } } return apply_filters( 'bp_get_group_member_link_custom', '<a href="' . bp_core_get_user_domain( $members_template->member->user_id, $members_template->member->user_nicename, $members_template->member->user_login ) . '">' . $members_template->member->display_name . '</a>' ); } } add_filter('bp_get_group_member_link','bp_get_group_member_link_custom'); /** * Fetch the display fullname for a user. * * @param int|string|bool $user_id_or_username User ID or username. * @return string|bool The display name for the user in question, or false if * user not found. */ function bp_core_get_user_displayname_custom( $user_id_or_username ) { if ( empty( $user_id_or_username ) ) { return false; } // return $user_id_or_username; if ( ! is_numeric( $user_id_or_username ) ) { $user_id = bp_core_get_userid( $user_id_or_username ); } else { $user_id = $user_id_or_username; } if ( empty( $user_id ) ) { return false; } global $bp; $firstname= bp_get_profile_field_data('field=vorname&user_id='.$user_id); $lastname= bp_get_profile_field_data('field=nachname&user_id='.$user_id); // return $user_id; if(!empty($firstname) || !empty($firstname)){ $fullname = $firstname.' '.$lastname ; return apply_filters( 'bp_core_get_user_displayname_custom', $fullname, $user_id ); }else{ $display_names = bp_core_get_user_displaynames( array( $user_id ) ); if ( ! isset( $display_names[ $user_id ] ) ) { $fullname = false; } else { $fullname = $display_names[ $user_id ]; } return apply_filters( 'bp_core_get_user_displayname_custom', $fullname, $user_id ); } } add_filter( 'bp_core_get_user_displayname_custom', 'strip_tags', 1 ); add_filter('bp_core_get_user_displayname_custom'); add_filter('bp_core_get_user_displayname','bp_core_get_user_displayname_custom'); // Fullname on profile page on other member add_filter('bp_displayed_user_fullname','bp_core_get_user_displayname_custom');which is creating the following output on my site:
It was working before updating to WordPress 4.7.
Can anyone help since i can’t find a solution or error?
Or am i thinking to complicated?i’m currently working on:
Wordpress Version 4.7.
Buddypress Version 2.7.4
BP Xprofile Member Type Field Version 1.0.2Hello, im using woffice and i want the user to change his password and profile picture only from the front end .
i dont want him to :
– change his name
– edit anything in (Editing ‘Base’ Profile Group)
– change his email .
– change anything in (Send an email notice when: )
i have this link :
https://buddypress.org/support/topic/dont-allow-users-to-change-some-fields-after-sign-up-hide-those-fields/
but i don`t know if it will be like my customization
thanks so much.—————————-
1. Which version of WordPress are you running?
WordPress 4.7 running Woffice Child theme.6. Which version of BP are you running?
2.7.410. Which theme do you use ?
woffice11. Have you modified the core files in any way?
yes12. Do you have any custom functions in bp-custom.php?
i dont think so13. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
bult in15. Which company provides your hosting?
sitegroundVersion of WordPress: 4.7. Version of BP: 2.7.4.
Link to site: classroomlink.orgI use WPML to create a multilangual site along with BuddyPress.
Here is the problem: when I navigate between pages on Japanese (2nd language)
– the site loads back to English (main language)
– users that are logged in keep getting kicked outCan you please tell me what possibly makes this happen?
Thank youI’ve successfully installed BuddyPress and BB Press to create the website I was wanting to achieve.
I do have 4 questions that I’ve not been able to solve myself.
I’m using WordPress Version 4.7Why isn’t each Profile / Member offered a separate gallery or media library?
I’ve noticed when a new person joins the site and they go to upload any photos for profile pic or background that they have access to my Media Library. I’ve created a separate profile and was able to see that the gallery’s seemed to be shared with all members.Yes they can add a new gallery but still have access to mine so can this be modified?Can you put a cap on how many Mb’s a user is allowed to upload for the total amount of media space allowed.Videos can take up a lot of space.
Why do all members have to be Authors in order to be able to Post because this was the only method that worked for me.
Users have privileges that shouldn’t be allowed.Last question when using BuddyPress and BB Press how should I set up my .htaccess file
for robots to crawl as I don’t think they should be able to crawl past the index.php.
Thanks in advance for any help or suggestions.
Topic: Delete Account Tracking
Hi, I would like to add a required textbox on the delete account page so that I can capture why someone is leaving the site. Upon completion I would like it to send me an email with the account user’s username (if possible) and reason why he/she deleted his/her account. Help please.
Buddypress Version 2.7.4. WordPress 4.6.1 running Sweetdate Child theme.
Topic: delete notifications
if buddypress clear notifications plugin does not working for u , this is a solution how to do it ,we will add a button”clear all notifications” in the notifications nav menu , first we will edit a php script called test.php wich contain this code
<?php function clear_all_notifications() { require_once( 'wp-load.php' ); //put correct absolute path for this file $id = get_current_user_id(); // on se connecte à MySQL $db = mysql_connect('localhost', 'user', 'password'); //replace user and password mysql_select_db('name of database',$db); $requete = 'SELECT * FROM prefix_bp_notifications WHERE user_id='. $id ; // verify the name of table here prefix_bp_notifications can be wp_bp_notifications $sql = 'DELETE FROM prefix_bp_notifications WHERE user_id ='. $id ; // verify the name of table here prefix_bp_notifications can be wp_bp_notifications $reponse = mysql_query($requete); $resultat = mysql_num_rows($reponse); if($resultat > 0){ $req = mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error()); mysql_close(); echo "Notifications supprimees"; } else { echo $resultat ; echo "pas de notifications"; mysql_close(); } } clear_all_notifications(); ?> copy this script into ur document root where u have installed ur wordpress then add this code to wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/notifications.php under <?php bp_get_options_nav(); ?> line 13 <li id="notifications-my-notifications-personal-li" class="current selected"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <script type = "text/javascript"> function myAjax () { $.ajax( { type : 'POST', data : { }, url : 'ur website adresse/test.php', // <=== CALL THE PHP FUNCTION HERE. success: function ( data ) { return 1; // <=== VALUE RETURNED FROM FUNCTION. }, error: function ( ) { return 1; } }); } //function execute_del(){ //myAjax(); //window.location.reload(); //} </script> <button onclick="myAjax();window.location.reload();">delete all notifications</button> <!-- BUTTON CALL PHP FUNCTION --> </li>that’s all 🙂
WordPress 4.6.1 running Sweetdate Child theme.
Buddypress Version 2.7.4
https://www.ambwdate.com.I want to make it so that certain wordpress roles have special css styling in the member’s directory to differentiate them from other roles as well as have an image display on their actual profile page. How would I go about doing this? And what pages should I edit to reflect these changes. Thanks for any help you can provide.
