-
Anonymous User 16480907 replied to the topic Remove invite members link for group members in the forum How-to & Troubleshooting 2 years, 5 months ago
use this code.
/**
* Removes send invite tab according to Group Invitations setting.
*
* @since 2.2.0
*/
function remove_send_invite_tab() {
if ( ! bp_is_group() || ( bp_is_current_action( ‘admin’ ) && bp_action_variable( 0 ) ) || is_super_admin() ) {
return;
}// Add the admin subnav slug you want to hide in the…[Read more]
-
Anonymous User 16480907 replied to the topic Remove invite members link for group members in the forum How-to & Troubleshooting 2 years, 5 months ago
/**
* Removes send invite tab according to Group Invitations setting.
*
* @since 2.2.0
*/
function remove_send_invite_tab() {
if ( ! bp_is_group() || ( bp_is_current_action( ‘admin’ ) && bp_action_variable( 0 ) ) || is_super_admin() ) {
return;
}// Add the admin subnav slug you want to hide in the following array.
$hide_tabs =…[Read more] -
Bharat started the topic Buddypress Registration shortcode in the forum Miscellaneous 4 years, 9 months ago
Hello Buddybpress team
I want to create custom short code for buddypress registration from and i have follow below thing .
1) plugin -> bp-custom.php file in I’ve add copy register.php file code and create short code using same register page code but when i place that shortcode other pages not working .Is there any solution for that ?
Here my…[Read more]
-
Prashant Singh replied to the topic Is it possible in Buddy Press to give only permission to delete private message in the forum How-to & Troubleshooting 6 years, 1 month ago
<?php
/**
* BP Nouveau Messages main template.
*
* This template is used to inject the BuddyPress Backbone views
* dealing with user's private messages.
*
* @since 3.0.0
* @version 3.1.0
*/
?>
<div class="subnav-filters filters user-subnav bp-messages-filters" id="subsubnav"></div><div class="bp-messages-feedback"></div>
<div…[Read more] -
Prashant Singh replied to the topic Members Masonry – Element in the forum How-to & Troubleshooting 6 years, 2 months ago
ohh ok got that.
/**
* Buddypress Members masonry
*
*
* @package WordPress
* @subpackage K Elements
* @author SeventhQueen <themesupport@seventhqueen.com>
* @since K Elements 1.0
*/$output = '';
extract(
shortcode_atts( array(
'type' => 'newest',
'member_type' => 'all',
'number' => 12,
'class' => '',
'rounded' => "rounded",
'avatarsize' =>…[Read more] -
Slava Abakumov replied to the topic Email all users of updated Forums in the forum Creating & Extending 7 years, 9 months ago
Yes, you can use a hook in a function
bp_activity_add()
called the same./**
* Fires at the end of the execution of adding a new activity item, before returning the new activity item ID.
*
* @since 1.1.0
*
* @param array $r Array of parsed arguments for the activity item being added.
*/
do_action( 'bp_activity_add', $r );
So you should…[Read more]
-
@mercime replied to the topic [Resolved] Front.php and BuddyPress 2.6 in the forum Miscellaneous 8 years, 4 months ago
@destac There are different ways to implement the new feature. For the screenshot, I did it in 4 simple steps.
Note that you might need to adjust how the widgets are registered, named, or styled based on your theme.
1. Registered three new widget areas in the child/theme’s
functions.php
file.<?php // Only add this line if you are adding this…
[Read more] -
Joshua Blevins replied to the topic Question about bp_activity_action in the forum Creating & Extending 8 years, 11 months ago
I did look at that function as well.
/**
[Read more]
* Return the activity content.
*
* @since 1.0.0
* @deprecated 1.5.0
*
* @todo properly deprecate this function.
*
* @uses bp_get_activity_action()
* @uses bp_get_activity_content_body()
* @uses apply_filters() To call the 'bp_get_activity_content' hook.
*
* @return string The… -
Joshua Blevins started the topic Question about bp_activity_action in the forum Creating & Extending 8 years, 11 months ago
Right now I am trying to make my own custom entry.php for my activity loops. When looking at the bp-default one to get a good idea of what one should look like i ran into the following code.
<?php bp_activity_action(); ?>
Now I found this function in bp-activity-template.php in the github project, but that was not too helpful either. The file…[Read more]
-
Marc started the topic Bug in bp_notifications_get_notifications_for_user hook or misunderstood in the forum Installing BuddyPress 9 years, 3 months ago
Hi everyone,
I’am currently try to add custom notification from a non BuddyPress component. I’m using this hooks:
bp_notifications_get_registered_components
bp_notifications_get_notifications_for_user
and this function:
bp_notifications_add_notification
Everything works well except the hook
bp_notifications_get_notifications_for_user
. My problem…[Read more] -
Mr. Vibe replied to the topic BP Messages Star fx for themes based on bp-deafult in the forum How-to & Troubleshooting 9 years, 5 months ago
Updated :
add_action('wp_ajax_messages_star','bp_course_messages_star');
[Read more]
function bp_course_messages_star(){
if(function_exists('bp_messages_star_set_action') && is_numeric($_POST['message_id']) && in_array($_POST['star_status'],array('star','unstar'))){
echo bp_messages_star_set_action(array(
'action' => $_POST['star_status'],… -
https://www.rebelmouse.com/NetworkheadsoftheArabLiberatio/ replied to the topic in the forum since 10 years, 7 months ago
<?php
/**
* WordPress User Page
*
* Handles authentication, registering, resetting passwords, forgot password,
* and other user handling.
*
* @package WordPress
*//** Make sure that the WordPress bootstrap has run before continuing. */
require( dirname(__FILE__) . ‘/wp-load.php’ );// Redirect to https login if forced to use SSL
if (…[Read more] -
yaakhi replied to the topic Redirecting Logged in users to activity.. in the forum Third Party Plugins 11 years, 5 months ago
Sorrry but could not find the line you mentioned 🙁 here is the whole bp_profile_as_homepage_fork.php file `<?php
/*
Plugin Name: BP Profile as Homepage Fork
Description: Sets the user BP Profile as homepage on the site for logged in users. This emulates Facebook.
Author: Mort3n
Version: 1.0
License: GPL2
*//* Copyright 2013 Mort3n
This…[Read more]
-
TracyByrne replied to the topic URL for Menu to Logged-in User's Profile Page in the forum How-to & Troubleshooting 11 years, 5 months ago
you’re not going to believe this but there is VERY little in the functions.php file …
<?php
/**
* Infinity Theme: theme functions
*
* @author Marshall Sorenson <marshall@presscrew.com>
* @link http://infinity.presscrew.com/
* @copyright Copyright (C) 2010-2011 Marshall Sorenson
* @license http://www.gnu.org/licenses/gpl.html GPLv2 or… -
Bigjimmysisco started the forum topic Function to Display Topic Tags in bp-1.3 not working for me. in the group How-To and Troubleshooting: 13 years, 5 months ago
I have been wanting to display the tags in my topic for the longest time in the world, and when I finally think I have it, of coarse , I don’t. I put this in my bp-custom.php file: `function bp_forum_topic_tag_list_1() { echo bp_get_forum_topic_tag_list_1(); } /** * Get the current topic’s tag list * * @package BuddyPress * @since 1.3 […]
-
Oliver Williams posted on the forum topic Forums Bug: There are no posts for this topic. in the group How-To and Troubleshooting: 13 years, 11 months ago
` < ?php
/**
* The base configurations of bbPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys and bbPress Language. You can get the MySQL settings from your
* web host.
*
* This file is used by the installer during installation.
*
* @package bbPress
*/// ** MySQL settings – You can get…[Read more]
@since
Not recently active