Search Results for 'wordpress'
-
AuthorSearch Results
-
September 25, 2018 at 2:24 pm #276746
In reply to: Redirect from page if not logged in
Prashant Singh
ParticipantHi,
Please paste the code in your child theme’s functions.php. If you do not have child theme then install this plugin https://wordpress.org/plugins/code-snippets/ and add a new snippet there and paste this code.
add_action( 'template_redirect', 'ps_redirect_to_login' ); function ps_redirect_to_login() { if ( is_page('members') && ! is_user_logged_in() ) { auth_redirect(); } }Thanks 🙂
September 25, 2018 at 8:22 am #276728In reply to: Please help….please!
Prashant Singh
ParticipantHi,
Please paste the following code in your child theme’s functions.php file:
add_action( 'bp_before_directory_groups_list' ,'ps_add_image_before_groups'); function ps_add_image_before_groups(){ echo "<img src='your_image_url_here'>"; }If you do not have child theme just add this plugin https://wordpress.org/plugins/code-snippets/ and add a new snippet and paste this code there.
Please remember to change ‘your_image_url_here’ with your image source URL.
Thanks
September 25, 2018 at 4:06 am #276716In reply to: Missing config.php to change language
r-a-y
KeymasterYou should post on the bbPress forums:
https://bbpress.org/forumsbbPress handles the forum aspect of your site. It looks like Turkish should be supported based on the community’s translation efforts:
https://translate.wordpress.org/projects/wp-plugins/bbpressSeptember 24, 2018 at 2:02 pm #276694In reply to: Members Masonry – Element
Prashant Singh
Participantohh 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' => '', 'width_height' => '', 'online' => 'show' ), $atts ) ); //var_dump($avatarsize); $params = array( 'type' => $type, 'scope' => $member_type, 'per_page' => $number ); if ($rounded == 'rounded') { $rounded = 'rounded'; } $avatarquery = ''; if( $avatarsize == 'large' ) { $avatarsizewh = explode( 'x', $width_height ); if( isset( $avatarsizewh[0] ) && isset($avatarsizewh[1] ) ) { $avatar_width = $avatarsizewh[0]; $avatar_height = $avatarsizewh[1]; $avatarquery = 'type=full&width='.$avatar_width.'&height='.$avatar_height.' '; } } if ( function_exists('bp_is_active') ) { if ( bp_has_members( $params ) ){ ob_start(); echo '<div class="wpb_wrapper">'; echo '<div id="members-dir-list" class="members dir-list">'; echo '<ul id="members-list" class="item-list row kleo-isotope masonry '.$class.'">'; while( bp_members() ) : bp_the_member(); echo '<li class="kleo-masonry-item">' .'<div class="member-inner-list animated animate-when-almost-visible bottom-to-top">' .'<div class="item-avatar '.$rounded.'">' .''. bp_get_member_avatar($avatarquery) . kleo_get_img_overlay() . ''; if ($online == 'show') { echo kleo_get_online_status(bp_get_member_user_id()); } echo '</div>' .'<div class="item"> <div class="item-title">' .''. bp_get_member_name() . ' </div>'; echo "<div class=item-meta><p>". bp_member_profile_data('field=Expertise')." </p></div>"; echo '<div class="item-meta"> <span class="activity">'.bp_get_member_last_active().'</span></div>'; if ( bp_get_member_latest_update() ) { echo '<span class="update"> '. bp_get_member_latest_update().'</span>'; } do_action( 'bp_directory_members_item' ); echo '</div>'; echo '<div class="action">'; do_action( 'bp_directory_members_actions' ); echo '</div>'; echo '</div><!--end member-inner-list--> '; endwhile; echo ''; echo '</div>'; echo '</div>'; $output = ob_get_clean(); } } else { $output = __("This shortcode must have Buddypress installed to work.","k-elements"); }Please try this code.
Thanks
September 24, 2018 at 12:58 pm #276692In reply to: Members Masonry – Element
israel4lincelot
ParticipantDoes not work. I think it’s because de line I’m writing is within an echo already.
Full code:
<?php
/**
* 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' => '',
'width_height' => '',
'online' => 'show'
), $atts )
);
//var_dump($avatarsize);$params = array(
'type' => $type,
'scope' => $member_type,
'per_page' => $number
);
if ($rounded == 'rounded') {
$rounded = 'rounded';
}$avatarquery = '';
if( $avatarsize == 'large' ) {
$avatarsizewh = explode( 'x', $width_height );
if( isset( $avatarsizewh[0] ) && isset($avatarsizewh[1] ) ) {
$avatar_width = $avatarsizewh[0];
$avatar_height = $avatarsizewh[1];
$avatarquery = 'type=full&width='.$avatar_width.'&height='.$avatar_height.' ';
}
}if ( function_exists('bp_is_active') ) {
if ( bp_has_members( $params ) ){
ob_start();
echo '<div class="wpb_wrapper">';
echo '<div id="members-dir-list" class="members dir-list">';
echo '<ul id="members-list" class="item-list row kleo-isotope masonry '.$class.'">';while( bp_members() ) : bp_the_member();
echo '<li class="kleo-masonry-item">'
.'<div class="member-inner-list animated animate-when-almost-visible bottom-to-top">'
.'<div class="item-avatar '.$rounded.'">'
.''. bp_get_member_avatar($avatarquery) . kleo_get_img_overlay() . '';
if ($online == 'show') {
echo kleo_get_online_status(bp_get_member_user_id());
}
echo '</div>'.'<div class="item">
<div class="item-title">'
.''. bp_get_member_name() . '
</div><div class="item-meta"><p">
<?php echo bp_member_profile_data('field=Expertise'); ?>
</p></div><div class="item-meta">
<span class="activity">'.bp_get_member_last_active().'</span></div>';
if ( bp_get_member_latest_update() ) {
echo '<span class="update"> '. bp_get_member_latest_update().'</span>';
}do_action( 'bp_directory_members_item' );
echo '</div>';
echo '<div class="action">';
do_action( 'bp_directory_members_actions' );
echo '</div>';echo '</div><!--end member-inner-list-->
';
endwhile;echo '';
echo '</div>';
echo '</div>';
$output = ob_get_clean();
}}
else
{
$output = __("This shortcode must have Buddypress installed to work.","k-elements");
}September 24, 2018 at 9:24 am #276679In reply to: Two membership directory
Prashant Singh
ParticipantHi,
You can check this plugin: https://wordpress.org/plugins/buddypress-shortcodes/
But still, it will need customization to add different fields there.
Thanks
September 23, 2018 at 8:03 pm #276667In reply to: Hide specific user profile tabs
Prashant Singh
ParticipantHi,
Please check this plugin: https://wordpress.org/plugins/buddypress-members-only/
Hopefully, it will help you.
Thanks
September 23, 2018 at 9:20 am #276662In reply to: DIrect messaging problem
casper99
ParticipantSame problem here.
And: I won’t get an ajax recommendation by entering @username in the field with bp-nouveau.It seems to be a problem with the “bp-nouveau” theme.
With the old standard-theme, it works!BuddyPress 3.2.0
WordPress 4.9.8September 22, 2018 at 10:26 am #276645In reply to: Problem with news feed (activities) filter
Prashant Singh
ParticipantHi,
Please follow these links:
Add custom filters to loops and enjoy them within your plugin
Hopefully, this will help you.
Thanks
September 22, 2018 at 10:16 am #276643In reply to: How to mark all notifications as read
Prashant Singh
ParticipantSeptember 22, 2018 at 10:12 am #276642In reply to: autopost to twitter, facebook , instagram
Prashant Singh
ParticipantHi,
Please try to use this one: https://wordpress.org/plugins/bp-activity-social-share/
It is not having an auto post but you can share activities on your favourite social network.
Thanks
September 20, 2018 at 11:52 pm #276624In reply to: register problem in mobile
r-a-y
KeymasterI cannot duplicate your problem with a WordPress tehme. Tested with Chrome’s developer tools with its mobile simulator.
Can you tell me what mobile device you are emulating with Chrome’s developer tools? If you have some plugins activated, deactivate ones that might be interfering with the registration process.
DL
ParticipantI like the idea of friends-only PM’s but that plugin hasn’t been updated and carries the warning.
This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
It looks like r-a-y is still active here though, so maybe it’s ok with the latest WP and BP?
September 20, 2018 at 5:55 pm #276614r-a-y
KeymasterLooks like the same problem as this user:
That user is also using the Kleo theme.
What happens when you change your theme to something else like Twenty Seventeen or another WordPress default theme?
September 20, 2018 at 10:51 am #276605In reply to: register problem in mobile
Layo_BCN
ParticipantHi,
We have already been changing to the WordPress theme and the same thing happens, when you finish entering the data in the registration and registration update fields, the page is reloaded and loads the same registration page with the fields already completed just missing the password. , and it is put back and repeated in bukle.
He also tested on another web that we have with another theme and deactivating all the plugins and still presenting the same error.
Â
in the Main web we use BuddyPress Version 3.2.0 and in the other one that we have tested we have Version 3.1.0I hope I can solve the situation for elelvamso two weeks without receiving user registrations since our potential partners are always conceded by the mobile and we usually receive more than 10 weekly registration.
So it is URGENT that you can register to BuddyPress by mobile device.
proweb01
ParticipantI installed this plugin and all PM spam stopped ever since. It requires a person to be your friend before they can PM you. https://wordpress.org/plugins/buddypress-private-message-for-friends-only/
September 19, 2018 at 9:01 pm #276591In reply to: Members listing and sorting
Prashant Singh
ParticipantHi,
You can create xprofile fields to save there data and then can search them on the basis of those fields under members directory using this plugin https://wordpress.org/plugins/bp-profile-search/
Thanks
September 19, 2018 at 8:41 pm #276583In reply to: How to filter members by profile field entries?
Prashant Singh
ParticipantSeptember 19, 2018 at 8:05 pm #276581jeffreyls
ParticipantHi Ray,
Big thanks, looks like the way to go. I did find
https://wordpress.org/support/plugin/disable-embedsIt looks to disable everything… just need to find a way to disable everything with an exception. i.e. YouTube and Vimeo.
Thanks again… appreciated.
Jeff
September 19, 2018 at 5:28 pm #276577In reply to: BuddyPress pages not secure
shanebp
ModeratorThere are a few plugins that can do that, for example:
September 19, 2018 at 5:12 pm #276574r-a-y
KeymasterBuddyPress just uses the oEmbed providers that WordPress uses:
https://codex.wordpress.org/Embeds#oEmbedSo to only use WordPress and Vimeo, disable all the other oEmbed providers by WordPress. Not sure if there is a plugin to do that natively, but there is a brief description under the “Removing Support for An oEmbed-Enabled Site” section on the codex page I linked to above.
September 19, 2018 at 5:09 pm #276573In reply to: Warning: Invalid argument supplied for foreach()
r-a-y
KeymasterIt looks like you didn’t post a support thread on the
bp-profile-searchforum:
https://wordpress.org/support/plugin/bp-profile-searchPlease create a thread over there first before creating a ticket on Trac as you did here.
September 18, 2018 at 11:15 pm #276555In reply to: Can’t Post in Activity Stream
r-a-y
KeymasterTo all of those experiencing this issue, do you have certain BuddyPress components deactivated?
I came across another similar issue and the problem was due to some BuddyPress components being deactivated and a bug with Nouveau.
September 18, 2018 at 10:28 pm #276554In reply to: Bug: Membership List in Groups does not show
r-a-y
KeymasterThanks for the bug report, @brianbws. I’ve just created a ticket here – https://buddypress.trac.wordpress.org/ticket/7969
Update – I’ve also added a potential fix here – https://buddypress.trac.wordpress.org/attachment/ticket/7969/7969.02.patch
—
For future reports, if there are bugs and you are able to list the steps in order to reproduce the problem on a fresh install, please create tickets over at https://buddypress.trac.wordpress.org (use the same credentials you use on wordpress.org). (Do not make support threads there though!)
The reason is not all developers are checking the support forums.
September 18, 2018 at 3:59 pm #276548In reply to: Warning: Invalid argument supplied for foreach()
r-a-y
KeymasterNotify the plugin developers of
bp-profile-searchand let them know of the problem.If they find that the problem ends up coming from BuddyPress, tell them to post a ticket at https://buddypress.trac.wordpress.org
-
AuthorSearch Results