Search Results for 'theme'
-
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 2:54 am #276712wettowel
ParticipantHey guys I need some help with php/buddypress.
Im trying to create a custom member directory for my website that displays online users…I am very new to php, I have looked at the documentation but i don’t understand what i am doing wrong.
Things i have done thus far:
I created a new directory called “buddypress” in my theme (my theme is Divi), I then copied the “members” folder from buddypress and put a duplicate in my new “buddypress” folder within my theme. After that i renamed the “members-loop.php” file to “online-members-loop.php”, and created a new page called “online members”.
I didn’t make any adjustments to the code at this point and tried to see if it worked… It did not, my online members page is still just blank. I then tried to edit some things within the “online-members-loop.php” file i now have. I changed “<?php if ( bp_has_members( bp_ajax_querystring( ‘members’ ) ) ) : ?>”
to this: “<?php if ( bp_has_members( ‘type=online’ ) ) : ?>”
I tried to load the page again annnnddd… nothing, nothing at all. It was at this point i knew i was doing something incredibly wrong because even before altering code, the members page didnt load anything.
If anyone could help a newbie out i would greatly appreciate it 🙂
September 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 7:19 am #276674Prashant Singh
ParticipantHi,
You can put code like this:
function buddypress_notifications_layout() { global $bp; if ('notifications'== $bp->current_component){ wp_enqueue_script('test', 'http://example.com/wp-content/themes/twentyfifteen- child/js/test.js', array('jquery'), '1.0', true); } } add_action('wp_enqueue_scripts', 'buddypress_notifications_layout');Thanks
September 23, 2018 at 1:29 pm #276664In reply to: Child-theme style.css
shanebp
Moderatorbuddypress\bp-themes\is deprecated any only included for legacy installs.Your child theme structure seems okay.
But try using the register templates from herebuddypress\bp-templates\bp-legacy\buddypress\members\in your child theme.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 21, 2018 at 12:42 pm #276630aldorr
ParticipantYou can try placing this in the functions.php of your Child Theme. Though for buddypress you might want to use
bp_get_profile_field_datainstead ofxprofile_get_field_data.
I’m trying to do something similar, but the fields are not showing up in my email. I have a feeling the email is getting sent before the database is updated, but for the life of me, I can’t get them… Good luck!September 20, 2018 at 11:46 pm #276623In reply to: Register Form Button Doesn’t Work
r-a-y
KeymasterYou’re using the Kleo theme. Can you try another theme to see if it is a problem with Kleo?
Same report here – https://buddypress.org/support/topic/bp-registration-page-preventing-new-signup-from-same-ip-address/
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.
September 18, 2018 at 11:18 pm #276556In reply to: register problem in mobile
r-a-y
KeymasterCould be caused by the Kleo theme. (Btw, that error log entry has nothing to do with the problem.)
Does the mobile layout problem happen with another theme like Twenty Seventeen?
September 18, 2018 at 3:00 pm #276544In reply to: How to Disable ALL BuddyPress Emails
Christian Freeman (codelion)
ParticipantNice, I didn’t know that the object could be passed in that way. Very cool indeed.
Also, I checked the
validatemethod, and I found thebp_email_validatefilter that I can use to force it to fail the validation as well:From what I understand, I only need to swap the current value with my own WP Error to force it to fail validation and stop sending the BP Email, right? I think this could be a bit smoother for toggling BP Emails on and off via my plugin settings.
Well, not I just need to track down all of those email tokens and we’re in business!
Many thanks for all of your help @shanebp! It’s much appreciated.
My goal with this plugin is to eliminate the need for BP users to have to purchase a theme coded for BuddyPress. And beyond that, it will add a ton of functionality designed to make starting and running a BP community a breeze.
I should have my new BP plugin onto the WP Repo within the next 30 days or so. What do you think is the best way to spread the word to BP users?
September 17, 2018 at 7:54 pm #276516ajuuls
ParticipantI might need a theme that supports BuddyPress more. I’ve made a search for themes and marked BuddyPress as a Feature. Then it maybe work?? Let me try.
September 17, 2018 at 7:48 pm #276514ajuuls
ParticipantI’m using GeneratePress theme.
September 17, 2018 at 7:29 pm #276506ajuuls
ParticipantI’ve seen that post and tried it. But sadly without luck..
I’ve tried to pick a basic WP theme like “Twenty Fifteen” to check if it was my WP theme.
I am getting frustrated that it doesnt work.. Do you have discord maybe? Then we can speak and i can share screen. Much easier, if u can so.
September 17, 2018 at 6:56 pm #276495In reply to: Creating a BP theme
Prashant Singh
ParticipantHi,
In child theme you can override only BuddyPress templates and can write styles for them only. Rest of the styling will be the same as your parent theme. Creating a child does not mean that you have to restyle or redesign everything.
Please read this: https://codex.wordpress.org/Child_Themes
We always includes parent theme’s style in child theme using functions and that’s it.
Thanks
September 16, 2018 at 10:33 pm #276462In reply to: Nouveau group post/activity not shown
relevanttools
ParticipantIt doesn’t matter what theme is being used, anytime it is set to Nouveau templates activity doesn’t load. It works in legacy. Interesting enough I CAN load activity using activity shortcode. I have disabled this to test and there is no change for buddypress loading activity like it should.
September 16, 2018 at 6:05 pm #276461In reply to: Cry for assistance
mrditt
ParticipantSounds like a plugin or theme conflict. Have you tried checking both? If you need more help, let me know.
September 15, 2018 at 8:28 pm #276439Séan Patrick Small
ParticipantHello I am having this same issue, but in my case, I cannot find a theme that will work to display the navigation. AS the OP put it, nothing seems to help. True to what the OP said, going to the legacy options in settings causes the navigation to display. I am running very similar to what the OP has running as well, but I have disabled all of the plugins, to see if that was the issue. I have now gone through about 40 themes trying to find a solution.
September 15, 2018 at 6:13 pm #276435In reply to: Nouveau group post/activity not shown
Séan Patrick Small
ParticipantHello there, I am having this same issue it happens on groups, friends, members, etc. I can produce the same results as you. If I go to legacy, there is no issue. I have tried about 20 themes that are compatible with BuddyPress and it produces the same result. I too thought maybe it was a plugin and disabled everything, and nothing seemed to help. I also tried to flip the side bar, go without a sidebar, and it just does not change.
September 15, 2018 at 5:12 pm #276434In reply to: Site won’t load after updating to 3.2.0
Prashant Singh
ParticipantHi,
Please enable wp-debug in wp-config file and see the detailed error. It seems like theme is not compatible with the version that’s why it is happening.
Thanks
September 14, 2018 at 7:47 pm #276423Topic: Nouveau group post/activity not shown
in forum How-to & Troubleshootingrelevanttools
ParticipantWhen I toggle to Nouveau the group post and activity does not display. The post box is gone and all that is displayed for activity is “Loading the group updates. Please wait.” I am using the Divi theme. Toggling back to legacy everything works. Everything is current – this is a new site.
Please let me know where I should look and what I should do to fix this. I have disabled plug-ins but it all comes down to the template selection.
I am sorry in advance is this is not the proper place to post this. Please point me in the right direction.
Nouveau on left – not working but beautiful, legacy on the right, working but not as pretty
September 14, 2018 at 11:17 am #276404In reply to: Widgets / sidebar issue
mattmatthew
ParticipantActually, it was working some time ago and was showing all widgets but, I wanted to remove the Title of the page as it was showing repeated Title, so for Members page from “Page Attributes” I changed “Default Template” to “No Title” and then all widgets gone away. So, I don’t think its a bug of theme.
All other buddypress pages are showing sidebar widgets. Only Members page has issues. So my question is, in case if I deletes or edit members or any other buddypress default pages by mistakes, I can’t recreate them? Technically they are all blank pages.
-
AuthorSearch Results