Forum Replies Created
-
You’re welcome.
In reply to: [Resolved] Warning: strstr(): Empty needle inHi @ramuzic,
read the related ticket for more explanation from here:
https://buddypress.org/support/topic/warning-strstr-empty-needle/#post-239979If the error is still in after changing to one of twenty theme, it’s possible you use a cache plugin containing some old files or your browser history is…very old. Clear it !
In reply to: Private Message PaginationYeah @henrywright, i stumbled upon that topic yesterday :-). Better later as never !
In reply to: Private Message Paginationper_page option is availble for the message loop, like inbox (which is default), sentbox and notices where all received message are stored. This option let you paginat the result.
Now, the case of a long conversation. This start in the inbox, where you found it at page 1 or 12…
You click on the message and you see the content. This page is not concerned by the loop containing your per_page option. You can control that in the url.If you read the code in the file i indicated you previously, you’ll see that there is no pagination system in it.
Message option can be set in bp-templates\bp-legacy\buddypress\members\single\messages\message-loop.php
You need to copy this file into your child-theme first so you won’t loose your modification at next update. See codex if you need more infos about theming.
A username is not a real name and wordpress use only username, email and password (the only real security point) to allow access.
And the default behavior of WordPress is to set the nicename equal to the username. So, where is the security issue ?If you’re affraid by the Name field coming with BuddyPress during registration, rename it to Pseudonyme and you’re done. The field must contain a value, which can be first name, last name or whatever. The value is mandatory, not the name as name… ch1n3s3b0y is certainly not your name !
You’re asking to replace the username by a another value collected with the same register form. Do you think that such other field has less importance in regard of security ? Why would the username be critical and the custom field not ?
You can even disallow dashboard access to your subscriber, so they never can change anything outside of what is on hand on front-end profile management.
Please read here to calm you down (hopefully) 🙂
You can use the loop which is in groups-loop.php.
Try this and add some CSS class to your need to fit with your theme. code goes to bp-custom.php
function my_groups_avatar_on_profile() { $user_id = bp_displayed_user_id(); if ( bp_has_groups( 'type=alphabetical&user_id=' . $user_id ) ) : ?> <div style="clear:both;"> <ul> <?php while ( bp_groups() ) : bp_the_group(); ?> <li style=""> <div> <a href="<?php bp_group_permalink() ?>"><?php bp_group_avatar_thumb() ?></a> </div> </li> <?php endwhile; endif; ?> </ul> </div> <?php } add_action ( 'bp_after_member_header', 'my_groups_avatar_on_profile' );In reply to: Private Message PaginationHi @recagenda,
you can’t enable this, because it doesn’t exist. I could be wrong, but so far i know, private conversation are not paginable.
Reference file is bp-templates\bp-legacy\buddypress\members\single\messages\single.php
https://buddypress.org/support/topic/pagination-private-message-thread/ – @henrywright
In reply to: Adding Profile Link to MenuUse a condition.
Function xxxxx() { if( is_user_logged_in() ) { echo '<li><a href="'. bp_get_loggedin_user_link() .'">View my profile</a></li>'; } }In reply to: Group Widget Link TargetReference file: buddypress\bp-groups\bp-groups-widgets.php
To make your own version of the widget: https://codex.wordpress.org/Widgets_API
HTML definition
target="_blank"Or maybe this plugin ?
https://wordpress.org/plugins/bp-extend-widgets/In reply to: collecting cards ( images )See MediaPress http://buddydev.com/mediapress/
In reply to: Latest on Admin approved groupsStudy http://mycred.me/
In reply to: My accaunt in menu or headerHowdy [username] is part of WordPress Toolbar. When BP is activated, it add a sub-menu to this menu.
If you want it elswhere, it’s not really possible as the BP part of it was written to go to the admin_bar only.
To get a similar menu, you simply add buddypress menu to your theme main menu (explained on above codex link). But this menu will be static and you cant get same details.
Another solution is to recode that menu, so you can add it with a filter function to wp_nav_menu, which handles the main menu or the header menu.
To do this, you can use a new Walker Class extention or the existing filter. Possibly also some other ways to do this, but i don’t know them.
To remove the Howdy menu and the attached BuddyPress Profile sub menu from the Toolbar, you can use this snippet (in functions.php or bp-custom.php):
function bpfr_remove_my_account_menu() { global $wp_admin_bar; $wp_admin_bar->remove_menu('my-account'); } add_action( 'wp_before_admin_bar_render', 'bpfr_remove_my_account_menu' );Codex References
https://codex.wordpress.org/Function_Reference/wp_nav_menu
https://codex.wordpress.org/Navigation_Menus@djsteveb +1 !
– you go to your menu dashboard and select the menu of your theme (if exist, it should be there)
– you open screen option (top right) on menu admin and select BuddyPress
– you select profile in the left column where BuddyPress appeared and give it a title XYZ
– save and you’re done !Now you have a XYZ button near Home, About and whatever is already on your theme menu.
Doc is here https://codex.buddypress.org/getting-started/buddypress-links-in-wordpress-menus/In reply to: Adding Profile Link to MenuThis question was asked 4 days ago here:
https://buddypress.org/support/topic/how-users-can-link-to-their-profile/And some other search result you can read also, here:
https://buddypress.org/support/search/bp_get_loggedin_user_link/Finally, question is: which menu are you talking about ? Give details please.
In reply to: Need urgent help with BP notificationsLet’s ask @shanebp, @henrywright, i’m not a dev ninja.
In reply to: BUDDYPRESS 2.3.2 PROBLEM WITH PROFILE BUTTONShi @kostasbarkas30,
i even tried to copy some functions from bp default theme in my functions php theme but still nothing.
Revert back to the original install by deleting that custom work. then follow @djsteveb advice.
Keep in mind that you should never install something on WordPRess before WP is working correctly. Same thing when you add, let’s say BuddyPress. In this case, WP and BP should work flawlessly together. Once you hace the built your house, you can add the wallpaper. OMG ! Like IRL ! 😉
That way, it’s much easier to debug if an issue occurs. 1 is ok, add 2. 1 & 2 are ok. Add 3. 1 & 2 & 3 are ok, and so on.
Note also that BP-Default theme is no more maintained and is only in for backward compatibility. BuddyPress works on slightly any theme !
BP has no theme, just some templates with minimal styles. This stuff is stored in bp-templates/bp-legacy/buddypress/. If you need to modify some theme functions, you do it from within a child-theme, in which you copy what you want to change from bp-legacy.
All this and more, is explained on Codex. Don’t hesitate to read through it, if you’re new to BP !
We all started a day. Rome wasn’t built in one day. It’s a Long Way to Tipperary . Facebook is unique and BuddyPress is great. Hold on, it’s just the begin ! 🙂
In reply to: Need urgent help with BP notificationsI mean what you wrote in your first example:
function setup_globals( $args = array() ) {...}The right way is the one indicated on codex and by @henrywright on stackexchange. (in fact, the same snippet).
The question now is, what do you want to notify to a user ? You’re testing, ok, but what’s your purpose ? We need an activity ! For example, is celebrities (in your first topic) a custom post type ?
The example on Codex tells a user he was mentionned. This is now built in BP, so it’s no more representative of how to insert a non core activity. It shows you only the way to do it, and you can’t use it by simply copy/pasting.
In reply to: problems edit friend tab colorsAdd !important to your custom rules. For example:
background-color: #FFF9DF!important;In reply to: Looking how to implement custom nav bars@seore, please search a bit before asking ! For example “add profile tab to nav bar”
https://buddypress.org/support/search/add+profile+tab+to+nav+bar/BP use slgihtly same technique as WordPress to build menus.
https://codex.wordpress.org/Function_Reference/wp_nav_menuIn reply to: Photo uploadSee here: http://buddydev.com/buddypress/presenting-mediapress-media-plugin-will-ever-need-buddypress/
Works fine !
In reply to: No Change Avatar link and urlNo thank you ! If you need someone to get the job, hire a dev. You could post at the official WordPress Jobs Board at https://jobs.wordpress.net and/or here at https://buddypress.org/support/forum/plugin-forums/bp-jobs-board/
In reply to: [Resolved] Removing Activity from members pageplease search the forum if a similar question already exist, before asking.
https://buddypress.org/support/topic/remove-item-from-sub-nav-on-profile-page/The plugin should be removed from the site too.
And yes! phpmyadmin is the software name who allows you to manage a mySQL DB.In reply to: Can’t change class name of BP menu elementsThis behave is intented so. Read in bp-core-admin-functions.php:799
* If a person is editing a BP menu item, that person should not be able to * see or edit the following fields: * * - CSS Classes - We use the 'bp-menu' CSS class to determine if the * menu item belongs to BP, so we cannot allow manipulation of this field to * occur. * - URL - This field is automatically generated by BP on output, so this * field is useless and can cause confusion.Why would you change the class name, as you can override any CSS rule within from your child-theme.
In reply to: No Change Avatar link and urlIf you hav so much session, i would be preferably for yu to have a local install where you can test and replicate what’s going on live site.
Now, regarding your avatar issue, it can be related to the same symptom reported here:
https://buddypress.org/support/topic/profile-pic-upload-failure/or not !
In this case (and also the missing sidebar), we nead more details about your config, (ms, single), active theme and used plugins. Or at least a site URL.