-
shanebp replied to the topic How to add item to main activity Subnav in the forum How-to & Troubleshooting 11 years, 1 month ago
Take a look at:
buddypressbp-templatesbp-legacybuddypressactivityindex.phpYou’ll see the link markup there.
So you can over-ride that template and add some markup.Or you can leave it alone and use one of the many hooks, such as:
do_action( 'bp_activity_type_tabs' );
To insert your link via a function. -
shanebp replied to the topic What to use when, and HOW? in the forum How-to & Troubleshooting 11 years, 1 month ago
Try posting here:
-
shanebp replied to the topic Adding a particular user type as friend in the forum How-to & Troubleshooting 11 years, 1 month ago
That can be done via filters.
For example, look at function bp_is_friend in buddypressbp-friendsbp-friends-template.php
For the members loop, you could use that filter to hook into a custom function that determines whether the members is a client or lawyer or already a friend and return true or false or empty depending on whether you want to…[Read more]
-
shanebp replied to the topic strong passwords in the forum Creating & Extending 11 years, 1 month ago
There is a pre-submit hook in General Settings
Look in memberssinglesettingsgeneral.phpWrite a function that calls your strong password plugin.
-
shanebp replied to the topic how to store a table data in a veriable in buddypress in the forum How-to & Troubleshooting 11 years, 1 month ago
bp_get_displayed_user_fullname() will only retrieve the data.
If you see it, then your code has a problem.
If you want further help, use pastebin or gist to create a code snippet showing your code and then post the link here.
-
shanebp replied to the topic how to store a table data in a veriable in buddypress in the forum How-to & Troubleshooting 11 years, 1 month ago
$variable = bp_get_displayed_user_fullname();
-
shanebp replied to the topic Displaying the search term or phrase on member search in the forum How-to & Troubleshooting 11 years, 1 month ago
If it’s available, why assign it to a global in a different file ?
The use of a global is the only thing funky about what you’re doing.
Try just checking ‘s’ in members-loop.
-
shanebp replied to the topic PHP Errors in the forum Requests & Feedback 11 years, 1 month ago
@keiser-media
Please add ‘your’ notices to that ticket, if you haven’t already done so. -
shanebp replied to the topic Displaying the search term or phrase on member search in the forum How-to & Troubleshooting 11 years, 1 month ago
$_REQUEST[‘s’] isn’t available in members-loop after clicking ?
-
shanebp replied to the topic Buddypress x-profile visibility doesn't work in the forum How-to & Troubleshooting 11 years, 1 month ago
Visibility checks are not done when profile data is retrieved ‘outside’ BP_XProfile_Group.
You can use bp_xprofile_get_hidden_fields_for_user() to do your own check.
It is reasonable to expect bp_member_profile_data() to include an argument re visibility check.
So it’s not a bug, but you can create an enhancement request ticket on trac.
-
shanebp replied to the topic Replace BuddyPress Avatars with Custom User Meta Avatars in the forum Creating & Extending 11 years, 1 month ago
I can see why you’d look at bp-core-avatars functions.
But have you tried just replacing the avatar calls in templates with your own function?
You’ll have to hunt down the calls in several templates, but probably easier than messing with core-avatar filters given that you don’t want anything from bp avatar code anyway.
Try it in something…[Read more]
-
shanebp replied to the topic friends_notification_new_request_message in the forum Showcase 11 years, 1 month ago
This:
add_filter('friends_notification_new_request_message' , 'my_bp_friends_notification_new_request_message' , 110 , 2);
Should be:
add_filter('friends_notification_new_request_message' , 'my_bp_friends_notification_new_request_message', 110, 5);
5 is the number of arguments you are passing, not 2.
-
shanebp replied to the topic [Resolved] Extend bp_members() – Custom Query in the forum Creating & Extending 11 years, 1 month ago
Instead of writing new queries to manipulate data after the main user query has run, use this filter to make your adjustments before the main query:
bp_pre_user_query_construct in bp-core-classes.phpAnd run it via a conditional based on the page being viewed.
Then your pagination data will be what you want. -
shanebp replied to the topic WP search results page kills BP member widgets in the forum How-to & Troubleshooting 11 years, 1 month ago
Thanks for sharing your fix.
To suggest a change to core code, please use
https://buddypress.trac.wordpress.org/
to submit a ticket re a bug or enhancement.The core devs will definitely see it there.
-
shanebp replied to the topic Adding classes to profile fields in the forum How-to & Troubleshooting 11 years, 1 month ago
Don’t initialize $i as a string if you’re going to use it as an integer.
if ( $items = bp_get_profile_field_data( array( 'field' => 'Budget' ) ) ) {
$i = 0;
foreach ( $items as $item ) { ?>
<div id="size-<?php echo ++$i; ?>">
<?php echo $item; ?>
</div>
<?php… -
shanebp replied to the topic activity stream gone in the forum How-to & Troubleshooting 11 years, 1 month ago
I always use the files from
/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypressAnd would put them in:
/wp-content/themes/BuddyEnglish/buddypress/ -
shanebp replied to the topic [Resolved] Retrieving username within the members-loop in the forum How-to & Troubleshooting 11 years, 1 month ago
try:
echo bp_core_get_username( bp_get_member_user_id() );
-
shanebp replied to the topic Search for user role in the forum Creating & Extending 11 years, 1 month ago
@henrywright-1
I’ve never done it, but don’t see why you couldn’t do that. -
shanebp replied to the topic Search for user role in the forum Creating & Extending 11 years, 1 month ago
?s=band will only search within Post and Page content.
If you want to search by user role, you will need a custom search function.And your 404 means you don’t have a basic search page set up.
https://codex.wordpress.org/Creating_a_Search_Page -
shanebp replied to the topic Buddypress checkbox field display in profile in the forum Installing BuddyPress 11 years, 1 month ago
You could explode to an array and then loop thru it.
But the default is to return an array, so just remove this
$multi_format = 'comma'
Then use a foreach loop to generate some markup that uses br or li tags.
- Load More
@shanebp
Active 4 hours, 33 minutes ago