Forum Replies Created
-
@mlvc1958, can you provide an URL ?
Activate debug in wp-config.php and check for php notices or warnings you maybe receive.
In reply to: Let moderators ban usersThis is not possible, only group admins can do that. Note that a group can have several admins and mods.
In reply to: Favorite Count in Buddypress Group in each activity@arifulalamtuhin, thank you for sharing this.
In reply to: How to import a list of members (link needed)Wich file format do you use for your list ? Where is this list taken from: wordpress, private list,… ?
Pehaps you could use this plugin if you used CSV ?
For more details, check on WP codex how to achieve this task. BP shares users with WP and is not concerned directly by your question.
In reply to: Buddypress groups stylesAlmost in bp-templates/bp-legacy/css/buddypress.css
Aside, if you use a tool like Firebug, you may be able to work easier with html, css or js.
Profiles are handled on the mandatory BP members page.
And yes you’re supposed to go to your-site/members/USERNAME/profile/ via the usermenu which is in the top-right corner of the toolbar (like on this forum) or from any profile, via the buddynav.Glad you got it !
FYI, see eventl. here:
https://buddypress.org/support/topic/add-dynamic-menu-link/#post-242555Try this:
function mohammad_remove_private_message_button( $button ) { $user_id = bp_loggedin_user_id(); if ( $user_id == '37' ) // the user ID $button = ''; return $button; } add_filter( 'bp_get_send_message_button', 'mohammad_remove_private_message_button', 1 , 1 );More details here:
@simon1970, thank you for sharing this.
You’re welcome ! 😉
/myaccount does no more exist ! BP doesn’t use such an item actually.
I’m unable to tell you from where the issue cames from (theme or plugin), but you can easily know it if you deactivate all your plugins except BP and test it with a Twenty theme.Normally you wouldn’t see My Account – it’s no more used. See the above BP user menu, under Howdy to get an idea how it is actually.
When you reactivate Gameon and see the button, you’ll know it’s a theme issue. If not, you do the same thing with each plugin until you find the one who fires My Account.It is also possible that you use some custom code related to BuddyNav or a cache system?
If you determine that it’s your theme, you have to contact it’s support and ask there. Unfortunately, it’s a premium one for which we can’t help you, as we have no access to it’s code. Also, was it recently updated, which can explain why that link stopped to work for you ?
The output of the My Account BuddyBar menu is deprecated since 2.1.
Can you please give details about your install ?
WP&BP version, theme and plugins list.
What is the url of My Account ?
In reply to: Cant see members activityTry this one which use CSS – and is working !
Add the snippet to child-theme’s functions.php
function replace_some_admin_menu_icons() { // dashicons-performance = f311 // dashicons-smiley = f527 // adminmenu is the ul ID // the second ID is the li // div is where the icon goes ?> <style type="text/css"> #adminmenu #toplevel_page_bp-activity div.wp-menu-image:before { content: '\f311'; } #adminmenu #menu-posts-reply div.wp-menu-image:before { content: '\f527'; } </style> <?php } add_action( 'admin_head', 'replace_some_admin_menu_icons' );Reference: WordPress Dashicons
In reply to: Buddypress groups stylesNo it’s not strange. It’s due to the fact that all BP “pages” have dynamic content.
– a BP page is just a sort of placeholder, it’s not an usual WP static page. There is no template for the page, but you have for each page different templates, depending the context.
– so it is very normal to have to declare styles separatly, for each context.
– by that, you have also much more flexibility to style quasi individually each content
– and finally, that’s why you can use almost any existing wp theme (respecting wp coding standarts) with BP.
Elle est pas belle la vie ?
In reply to: Activity tab title text changeHi,
this can be done via a child-theme or with a function to add to bp-custom.php or child’s functions.php
See examples here: https://codex.buddypress.org/developer/navigation-api/In reply to: Register LABELHi,
have you done this ?– create a new field
– enter Birthday as title
– give a description
– Under Type section, select date selector
– saveWhen you’re on a profile’s edit page, you should see
– title
– date selector (day, mounth, year)
– This field can be seen by:….
– the field descriptionIf you highlight the whole and check his source code, you would see something like:
<fieldset class="datebox"> <legend>Birthday</legend> <div class="input-options datebox-selects"> <label for="field_xx_day" class="bp-screen-reader-text">Select day</label> <select id="field_xx_day" name="field_xx_day"> <option value="">----</option> <label for="field_xx_month" class="bp-screen-reader-text">Select month</label> <select id="field_xx_month" name="field_xx_month"> <option value="">----</option> <label for="field_xx_year" class="bp-screen-reader-text">Select year</label> <select id="field_xx_year" name="field_xx_year"> <option value="">----</option> </div> </fieldset>If you can read this code but don’t see it’s ouput on your theme, you have to find which CSS rule is handling the labels.
Could be a simple contrast issue or something omitted somewhere.
To get sure of this, try first with one of Twenty’s theme.And if possible, answer the questions you already received from Paul and give some details about your install: used theme and plugins at least.
In reply to: How to show all members regardless of activity1) With that code, the directory output will be alphabetical by default and the filter continue to work as before. The default select “last active” doesn’t change unless you do it manually in the template.
2) see 1) !
In reply to: How to show all members regardless of activityWhy not making your member directory alphabetical by default ?
Add this to members-loop placed in /child-theme/buddypress/members/members-loop.php:22<?php if ( bp_has_members( bp_ajax_querystring( 'members' ) . 'type=alphabetical' ) ) : ?>Note:
– member must be approved (by validation mail or admin action) to appear in the list.
– default behave is that a new member only appear on directory after his first login.Hi @bazingauser,
try this solution and give feed back
https://buddypress.org/support/topic/suppressing-rich-text-on-xprofile-text-area/#post-247640
In reply to: Buddypress groups stylesThis is confusing. Do we talk about group header image or site header image ?
The first post of the thread mention group header. You added yours saying “i have the same problem”.
It is not the same problem apparently !As example, when i go to Lotus group, the group header image is in
<a id="header-cover-image" href=..../groups/lotus/"></a>So i’m pretty sure my solution should work for the group header image.
Your custom-header-image is in a div, that’s right, but it is the general site header image.
You received an answer on your theme support, but i suggest you try it without the error:
The single group page
body.single-item.groups #custom-img-headerinstead of (which is the group directory page)
body.directory.groups #custom-img-headerThis one is working on my theme
body.single-item.groups img.header-imgIn reply to: [Resolved] Register form not working on mobileThat’s very theme dependant and eventually if you customized your site it needs adjustment too. Essentially CSS and JS. Unable to tell more as you didn’t mention wich theme you use.
Perhaps you can also try to use this plugin
https://wordpress.org/plugins/buddymobile/In reply to: Buddypress groups stylesMy idea is that you use a wrong declaration.
Normally, the group cover image comes is a background image of a link to the group.
This means, if you respect BP’s original html & css in your custom work, that you have:
<a id="header-cover-image" href="..../groups/GROUP_NAME/"></a>By default, if the cover image doesn’t exist or is removed, you see a grey background.
This CSS will remove that and the second rule will reduce the empty height of the whole header, and ONLY on the group home page (if Home is the landing tab you use for groups)..group-home a#header-cover-image { background-image:none!important; /* remove the default grey background */ background-color: transparent!important; } /* this should probably be adjusted to your theme */ .group-home #item-header { margin-top: -150px!important; }you can filter the activity stream. Read here:
You’ll also find many snippets on the forum by searching for “_parse_args”.
Updates are an activity type ! This is already available in the activity filter.
In reply to: first_name & last_name automatically altered@mugwumpman,
first and last_name fields don’t belong to BuddyPress, but to WP profiles.BP use only a field called Name at first install. User can enter their first AND last name in that field. Is this what you’re talking about ?
After reading your topic on wp.org, it seems that you use those fields to enter datas which are not first and last names, but more for company and company activity or such.
As you use BP, i would suggest you use the power of xprofile and offer to your user a much better experience by adding a field for a company and another for company activity (or something like that). So you can forget WP’s profile fields and use BP’s xprofile fields.
WP’s profile field used when BP is activated are: username, email and password.
And BP adds his mandatory Name field, which can be first, lastname, username or whatever other unique name belonging to a subscriber (which can be a human, a pet, a company….).And yo can as many fields you want to the registery or for later on profiles.
The other problem related to font case is a mistery so far. Can be related to many things such as plugins or theme or custom function. This can be determined by debuging and using one of WP’s default theme and all plugins deactivated.
No matter to know if you fill a wp or a bp field for this. Both use a textarea, so it’s probably more a css thing somewhere.
See in bp-templates/bp-legacy/buddypress/members/single
and read here for some general guidance. Note: even if only Twenty theme are described as example, you can use (more or less) the same technique for any other theme.
What ever, all starts by creating a child-theme as very first step.
Related to your question, do drop down list of the sub nav and hide them in the object nav fields, i think you don’t need to alter a template, but to write a custom function.
As i can be wrong about you goal, perhaps take also a look to core file bp-core/bp-core-buddybar.php to understand how nav and subnav are instanciated.
Read also https://codex.buddypress.org/developer/navigation-api/