Forum Replies Created
-
In reply to: Poor Avatar quality
BuddyPress is not Photoshop. The cropper is only cropping, ie from too big to admitted default size.
Size is dimension (150x150px), not quality (dpi).Default avatar are registered in full-size of 150×150 and 50×50 for thumbnails. Both CSS adjusted depending where the avatar is used.
Adjusting a size from to big to smaller is generally better rendered as going from too small to bigger. But once a picture is cropped, his size fits to what is setup for default_size by WP/BP or you.
Picture format: jpg or png ? In brief; jpg remain static, png is more elastic. But nothing to do with BuddyPress img
handlingdisplaying (avatar, covers).To fit img quality – from mobile to retina – you need an original picture of at least 145 dpi, what ever the size and the picture format. Actually for best quality, 300 dpi is a common usage.
But who knows what your users upload for their avatar ? A 3mo jpeg in 72 dpi 2400 x 1850 or a 30ko jpeg in 150 dpi and 800x600px ? Or an exact and optimized (default) 150X150, jpeg/145dpi of 9 ko ?
Frankly the only thing you can do in regard of “quality” pictures for BuddyPress, is to use the default size for avatars, eventually adjusted by a few more pixel because of your theme and available place.
I won’t struggle much with code but inform clearly my user to use a picture of 250×250 max for custom avatar and to respect – so far as possible – the size indicated for a cover img, for which you can recommand a dpi of 150. But without any waranty they obey your recommandations.
To adjust max cropping size, you can add this to your bp-custom.php file:
/* AVATAR MAX CROP SIZING */ define ( 'BP_AVATAR_THUMB_WIDTH', 60 ); define ( 'BP_AVATAR_THUMB_HEIGHT', 60 ); define( 'BP_AVATAR_FULL_WIDTH', 175 ); define( 'BP_AVATAR_FULL_HEIGHT', 175 );In reply to: Redirect site title when clickedIn wp settings, define a static page as homepage (wich will be your welcome page), and don’t use BP “activity” page. Dashboard > Settings > Read
Add all BP items (activity, members, groups, …) to a menu ( haven’t seen them).
And for your site title link, use something like this:
instead ofhome_url( '/' ), replace byhome_url( '/activity' )for both if/elseIn reply to: Buddypress Meta Title and DescriptionThat’s related to Yoast seo plugin. Would be better to ask on their forum as it is Yoast who removes a WP/BP part.
In reply to: Members display nameTry this plugin:
https://wordpress.org/plugins/buddypress-usernames-only/
(old but still working)In reply to: [Resolved] Warning: reset() error messageGive details please.
Plugins ?
Theme ?
Custom functions ?
PHP version ?When did those errors appear ?
Can you check for JS errors ? Use browser tools or Firebug…
Can also come from avatars or malformed nav items (changed since 2.6), so it might be a theme issue. Activate one of Twenty’s theme and see if errors remain.In reply to: [Resolved] Rename BuddyPress Profile Nav ItemsIs your custom language file in the correct folder ?
wp-content/languages/buddypress/buddypress-en_US.moCould also be your theme who contains some BP elements ?
Or you can also try what is indicated here:
In reply to: change email sent on event creationAs you use buddypress group email subscription, i would check there.
The link in the email goes to the group.Any thoughts @r-a-y ?
In reply to: SMS VerificationIn reply to: How to get a blog post link from a comment link@henrywright, ah ?
OK, thx for the lesson 🙂
In reply to: How to get a blog post link from a comment linkA bit different method is explained here.
In reply to: Buddypress Profiles Display In Wrong Order@eli225, please calm down. @sharmavishal is only trying to help you !
It’s not easy trying to help people asking questions without giving much details. It’s the case with this topic and your previous. Have you even read this before asking ?
This is not possible: Buddypress Profiles Display In Wrong Order as it is not BP but the site admin who determines this.
xprofile fields and xprofile field groups (what you call section i suppose ) are drag’n’dropable.
If despite a correct positionning in the backend, the order changed on front-end, two possibilities: the drag’n’drop was to fast or there is a js error/latentency/cookie somewhere. And this is generally due to the theme in conflict with a plugin (which could be BP).
Unfortunately, kleo is a premium theme for which you can’t expect assistance here, as we have no access to it’s code.
For the part related to BuddyPress, note that the actual version works flawlesly with the xprofile component. Nobody related a similar issue to yours recently.
So back to handcrafted annoying but very related questions:
What do you call section ?
Which type of field do you use ?Also related to general debug work:
Have you tested with another theme ?
Have you tested without any other plugin as BP ?In reply to: False spam registrationSpam is an endless discussion on the web over years. Search this forum, you’ll find many topics.
Half of my users registrations are reported by buddypress like a spam.
The question is why ? Aside, note that it is WP who controls the registration, not BuddyPress.Do you use Askimet or some other plugin who controls your registry ?
So I think it’s sufficient? no?
Simply ? NO !
Captchas are helping to determine a human activity, but generally don’t spam users.
Many spam bots go through captcha and many other goes directly to your db. And many many, if not all, can send emails !
Spammers are even cleverer as most door keepers, it’s a sad fact and a great part of that “sport” to prove it continuously.Here some common tasks explained to avoid spam and other unwanted content on your site. Note that one of the first thing to do is to use another table prefix as the universal knowed
wp_!In reply to: Customize URL in Group WidgetThe simplest way would be to create a copy of the group widget from within your child-theme functions.php file.
By doing this you can hardcode whatever you need to the original html. Once done, you use your widget instead the original widget. Only thing you have to take care is the function name which should be unique.
And voilà .
Of course, if you are a php ninja, you can probably extend the
BP_Groups_Widgetclass to get the same result. Many examples here.In reply to: Redirect site title when clickedHi,
an option could be to change the default behave of the site title by modifying this from within your child theme.
This URL is generally hardcoded in header.php. For example, Twenty Sixteen use this:
<?php if ( is_front_page() && is_home() ) : ?> <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> <?php else : ?> <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p> <?php endif;Of course, this can vary from one theme to another. But that’s the idea.
From this, you can play with the conditionnals or add activity to the URL.
On a default single install, all users can access their credentials via your-site/wp-admin/profile.php
From there they have access to the WP fieldss and to the extended profil fields.
From there, they can change email & password.
Admitting you closed admin access to all users, the only other way for them to modify there email and password is to use the “forgotten your password ?” at loggin stage.
All this is not really a BP thing, but how WP is working since 2003.
The 3 mandatory field (username, email and password) belonging exclusively to WP. They are showed on registration, ASIDE BuddyPress custom fields. BP doesn’t exactly handle them, it only show them. And as these fieds are WP territory and a bit sensible, they are not accessible from within frontend profile settings.Guess the word “critical’ is a bit exagerated. Not every user change his mail or password every day. How long do you wait for a new phone number or new electricity supply ? Probably more critical things as a mail/password change !
In reply to: Help Please Register Page Not working….Not related to BuddyPress.
WordPress is a CMS.
Members are the heart of BuddyPress, which is a plugin.Once BP is activated, your user haven’t to go to their dashboard, as anything can be done from front-end. If you need wp’s bio field, you could recreate one with xprofile.
Suggest to read the Codex to understand how BP is working.
And if it’s not enough, see this plugin (but probably only usefull if you had a wp install running with many contributors before using BP).
In reply to: common forumThere is nothing to do ! Private groups are even private. If user 1 is only member of group A and NOT of group B, user 1 can only act with group A forum.
Aside, question related to bbPress should be asked on bbPress forum, not on BuddyPress forum.
In reply to: Get users using specific profile fieldNormally profile field values are clickable and by doing this, each visitor can see a list of user who entered the same value. This is buit-in and intended to work on profiles.
Another approach would be to associate a member type to that value.
MT lets you create specific Member Directory.In reply to: [Resolved] Change setting’s delete-account slugDocumentation for this is in bp-core-buddybar.php
Some working examples for navigation (since 2.6) here.
And here a working example for:
- remove Delete Account on user profile settings tab
- add a new sub-nav item for “Memberships” to Profile > Settings
1 )
function bpex_remove_profile_settings_sub_tab() { // remove Delete Account from Profile Settings bp_core_remove_subnav_item( BP_SETTINGS_SLUG, 'delete-account' ); } add_action( 'bp_actions', 'bpex_remove_profile_settings_sub_tab' );2 )
function bpex_add_sub_nav_to_profile_settings() { global $bp; $parent_slug = 'settings'; $child_slug = 'memberships'; //Add subnav item bp_core_new_subnav_item( array( 'name' => __( 'My Memberships', 'textdomain' ), 'slug' => $child_slug, 'parent_url' => $bp->loggedin_user->domain . $parent_slug.'/', 'parent_slug' => $parent_slug, 'screen_function' => 'bpex_profile_membership_screen' ) ); } function bpex_profile_membership_screen() { add_action( 'bp_template_content', 'bpex_profile_membership_screen_content' ); bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) ); } function bpex_profile_membership_screen_content() { do_action( 'my_membership_post' ); } add_action( 'bp_setup_nav', 'bpex_add_sub_nav_to_profile_settings', 100 ); function bpex_membership_stuff() { echo 'Some stuff here ?'; ?> <h2>Lorem Ipsum for ever !</h2> <p>Aenean suscipit nulla in justo. Suspendisse cursus rutrum augue. Nulla tincidunt tincidunt mi. Curabitur iaculis, lorem vel rhoncus faucibus, felis magna fermentum augue, et ultricies lacus lorem varius purus. Curabitur eu amet.</p> <?php } add_action( 'my_membership_post', 'bpex_membership_stuff' );Add this to bp-custom.php
In reply to: Issue with site activity pageHi @shanehidir,
it’s not a BuddyPress issue. Ask on buddypres-media and/or theme support.
In reply to: /forums/forum/forum/In reply to: How to reduce user’s view on groups only to his ownsIn reply to: [Resolved] member addressassuming your fields names are Address, City and Postal code, add this snippet to bp-custom.php and any logged-in user will see these fields on the Member Directory page underneath the already existing informations.
function bpex_address_on_directory( ) { if( bp_is_active( 'xprofile' ) && is_user_logged_in() ) : echo '<p>'; if ( $address = xprofile_get_field_data( 'Address', bp_get_member_user_id() ) ) : echo $address.' '; endif; if ( $zipcode = xprofile_get_field_data( 'Postal code', bp_get_member_user_id() ) ) : echo $zipcode .' '; endif; if ( $city = xprofile_get_field_data( 'City', bp_get_member_user_id() ) ) : echo $city .' '; endif; echo '</p>'; endif; } add_filter ( 'bp_directory_members_item', 'bpex_address_on_directory' );In reply to: Lost access to my siteModified topic title to be more explicit.
@kvnqprezo, please notice, such a title doesn’t help anybody: Please Urgent Help Needed
https://codex.wordpress.org/Forum_Welcome#Choose_A_Good_Topic_Title