Search Results for 'theme'
-
AuthorSearch Results
-
January 28, 2018 at 9:57 am #270375
Shashi Kumar
Participant@ngoegan the logic in the Buddypress is correct why an user would like to go to register page when he is already registered and logged in. According to your stated problem your can make register page as static homepage and add the above code in your child’s theme function file or bp-custom.php. It will redirect all your logged in user to activity page.
To know about how to add bp-custom file read this beautiful postJanuary 28, 2018 at 9:32 am #270371Shashi Kumar
Participant@ngoegan add the following code in your child theme’s function file. It modifies default behavior and redirect user to activity page. Link to the source of code
function bbg_bp_loggedin_register_page_redirect_to( $redirect_to ) { if ( bp_is_component_front_page( 'register' ) ) $redirect_to = bp_get_root_domain() . '/activity'; return $redirect_to; } add_filter( 'bp_loggedin_register_page_redirect_to', 'bbg_bp_loggedin_register_page_redirect_to' );January 27, 2018 at 6:21 am #270364klubnika74
ParticipantYes. There is a feature in BuddyPress where one user can send a private email to another user. Since my site is an online training site, I set it up such that my students can email privately to the course teacher (I use Social Learner theme). The problem is that course teacher do not always respond to emails and I need to be able to follow up to make sure that my students get their answers.
January 26, 2018 at 9:20 pm #270362In reply to: Show Follow Button on Each Member’s Profile Page
otty-dev
ParticipantHi @djpaul
My theme was not built to be compatible with Buddypress unfortunately. Where can I edit the php and html myself for this issue? I was trying to navigate plugin > editor > buddypress but I couldn’t find the php for each members profile page and also the html file. So far I could only edit CSS using appearance > customize css.
January 26, 2018 at 4:01 pm #270334Paul Wong-Gibbs
KeymasterHi @ottiya
Good question, but the answer’s hard. You’ll need to learn how to modify WordPress theme templates. Start reading through all the linked pages on https://codex.buddypress.org/themes/ and when you have a specific question after you’ve made a try, let me know.
January 26, 2018 at 4:00 pm #270333olufemishield
ParticipantYes Paul. I since settled for themekraft’s plugins. Thank you
January 26, 2018 at 3:55 pm #270330Paul Wong-Gibbs
KeymasterI think the go-to for this is https://themekraft.com/products/woocommerce-buddypress-integration/ — might be worth a look.
January 26, 2018 at 3:50 pm #270328In reply to: Show Follow Button on Each Member’s Profile Page
Paul Wong-Gibbs
KeymasterHi @ottiya
On the default templates, there is a “Add Friend” button, and we usually position is just below (or next to) the user’s name and avatar picture. But not every theme has to show BuddyPress content in the same way!
If you’ve bought a theme with BuddyPress templates, or customised some yourself, it might be worth going back to where you got them from and ask for help.
January 24, 2018 at 10:16 pm #270292ToobHed
ParticipantI am trying to call this outside of any buddypress files. I am calling it in my themes functions, it is to run on a cron. I must be missing a global or required file, any ideas?
January 24, 2018 at 3:24 pm #270286Venutius
ModeratorThe first thing to do is to deactivate all other plugins but buddypress and switch your theme to 2017 and see if it works (it should), then you will have a working configuration to test against, reintroduce your theme and other plugins in stages and check it still works until you find the plugin that is (possibly) causing the issue.
January 24, 2018 at 3:04 pm #270285neo323neo323
ParticipantHi guys! I have this problem and i spent all the morning read online but nothing seems work so i wish someone around here with a nice heart would help me to find a solution for this. I am building a forum using Buddypress and BBpress everything seems work smooth but when it comes to register a new user of the forum the activation mail it’s not sent. I tried to send again from Users->All Users and then send again the activation link but it dosen’t work. I also tried to send a test mail with WP Mail SMTP choosing PHP Default caption and the mail it’s sent and in general all the other mail about wordpress like update and comments to my posts(before i don’t have a forum) are always sent. I also tried Tools->Buddypress->Reinstall email(delete and restore defaults) but nothing changed. Seems it’s a problem only with Buddypress… anyone had this problem and found a solution?
Wordpress verions 4.9.2
Buddypress version 2.9.2
Theme SydneyJanuary 23, 2018 at 4:50 pm #270273ToobHed
ParticipantThanks for the reply,
The code runs fine when I call it from “theme\buddypress\members\index.php” and outputs:
rray(2) { [“groups”]=> array(6) { [0]=> string(1) “2” [1]=> string(1) “0” [2]=> string(2) “11” [3]=> string(1) “7” [4]=> string(2) “12” [5]=> string(2) “13” } [“total”]=> int(6) }But when I call it from functions.php in my theme I get the errors:
Notice: Undefined property: BP_Groups_Component::$table_name_members in /home/vetsgami/public_html/wp-content/plugins/buddypress/bp-groups/classes/class-bp-groups-member.php on line 561
Notice: Undefined property: BP_Groups_Component::$table_name in /home/myserver/public_html/wp-content/plugins/buddypress/bp-groups/classes/class-bp-groups-member.php on line 561
Notice: Undefined property: BP_Groups_Component::$table_name_members in /home/myserver/public_html/wp-content/plugins/buddypress/bp-groups/classes/class-bp-groups-member.php on line 562
Notice: Undefined property: BP_Groups_Component::$table_name in /home/myserver/public_html/wp-content/plugins/buddypress/bp-groups/classes/class-bp-groups-member.php on line 562
array(2) { [“groups”]=> array(0) { } [“total”]=> int(0) }Makes me wonder if I need to include a file from buddypress to run it here?
January 23, 2018 at 1:53 pm #270264In reply to: A custom feature I wish I found how to do
Venutius
ModeratorRegarding 2) a while back Henry passed me this code snippet to go into functions.php in your child theme. I think it could be modified to deliver what you are looking for:
function keshabee_display_member_role() { global $members_template; // This is a confirmed group member. if ( $members_template->member->is_confirmed ) echo '<p>Member</p>'; // This is a group moderator. if ( $members_template->member->is_mod ) echo '<p>Group Mod</p>'; // This is a group admin. if ( $members_template->member->is_admin ) echo '<p>Admin</p>'; } add_action( 'bp_group_members_list_item_action', 'keshabee_display_member_role' );January 22, 2018 at 8:24 am #270227stoi2m1
ParticipantOk, not a bug
The function that returns the HTML exists in the bp-legacy theme. In
buddypress/bp-templates/bp-legacy/buddypress-functions.phpSo I copied the file into my child theme and modified it to act like I wanted.
Problem Solved!
January 21, 2018 at 8:26 am #270214In reply to: customizing buddypress profile page
Varun Dubey
ParticipantYou can override default template files inside the child theme and adjust UI as you need. You can check corresponding template files name at following path
Files inside /buddypress/members/single/ will be responsible for single profile layout.January 21, 2018 at 8:07 am #270212In reply to: Bullet Points on the Buddypress Menu
Varun Dubey
ParticipantYou could add a template file named buddypress.php to your theme’s directory, and BP would use that template instead since that file is ahead of page.php in the hierarchy above.
If your theme has full-width template file for page, you can use the same to create buddypress.php
For further details, you can check https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/
January 19, 2018 at 3:33 pm #270188In reply to: How to hide CPT Links from profile view
Peter Hardy-vanDoorn
ParticipantThis may depend on your theme, and I don’t have rtmedia installed so you’ll have to work it out for yourself, but you should be able to just hide that tab using CSS.
On my install of BuddyPress a class of
logged-inis added to thebodyelement when the user is logged in. Check your page to make sure that this is the same for you too.If it is, you can add CSS to target the rtmedia tab for people who aren’t logged in. Like I said, I don’t have rtmedia installed, so you’ll have to find out the class or ID of the media tab you want to get rid of for yourself (sorry!). But, for the sake of this example, let’s pretend it has an ID of “rtmediatab”.
So, you could add a line something like this to your CSS and the tab would be hidden:
body:not(.logged-in) #rtmediatab { display: none; }Obviously it doesn’t remove it completely as the underlying HTML will still be in the page, but it won’t be visible on the page and that’s better than nothing.
Hope that helps
January 18, 2018 at 3:13 am #270163stoi2m1
ParticipantI found the default theme was also showing issues which I missed.
I had both Groups and Members as a Child Page to My Activity Page, named Community. This was causing both single members profiles and single groups to not work. Until I find a solution I have made them Main Pages (no parent assigned). Is there a way to set the slug? I found these deprecated constants, is there some new way?
Deprecated Method in bp-custom.php use:
define ( 'BP_MEMBERS_SLUG', 'community/groups' ); define ( 'BP_GROUPS_SLUG', 'community/members' );From the following link:
I also found my other issue in bp-custom.php. Forgot all about that one.
I created an aggregate feed called “My Feed” to display a more personal feed (which is working just fine). I used it on both the Activity in Profiles and the Main Activity Stream (site wide). I am using the following function to change the default sub nav for activities in profiles (Profile >> Activity >> Default Sub Nav) to “My Feed”. This works for profiles but causes the Site Activity to stop working.
function gzp_set_default_activity_sub_nav() { bp_core_new_nav_default ( array( 'parent_slug' => buddypress()->activity->id, 'subnav_slug' => 'my-feed', 'screen_function' => 'gzp_bp_my_feed_screen_activity' ) ); } add_action( 'bp_setup_nav', 'gzp_set_default_activity_sub_nav', 20 );January 17, 2018 at 10:24 am #270149HDcms
ParticipantHI,
I’m trying to filter the buddypress members in the list of members and display them in descending order of precedence on a numeric xprofile field (0 to 10).
Example of filter xprofile field “I search” = xprofile field “I am”I found the function that should work, but I can not do the query:
function my_bp_loop_querystring( $query_string, $object ) { if ( ! empty( $query_string ) ) { $query_string .= ‘&’; } // $query_string .= ‘per_page=2’; //works $jerecherche = xprofile_get_field_data(‘Je recherche’, $user_id, $multi_format = ‘comma’ ); $query_string .= ‘search_terms=true&per_page=2’; // <del datetime="2018-01-17T10:23:06+00:00">works</del> return $query_string; } add_action( ‘bp_legacy_theme_ajax_querystring’, ‘my_bp_loop_querystring’, 20, 2 );January 17, 2018 at 2:29 am #270147stoi2m1
ParticipantSuper weird. I disabled all of my plugins except Buddypress, Activated the Parent Theme and still had issues. Copied over the BP Default theme and things work.
I have not changed anything in the parent theme, very odd that it seems to be the issue. Maybe some of this happened when I upgraded to the most recent WP and BP.
January 16, 2018 at 6:48 am #270126In reply to: How to add buddypress favorite button on a blog post
cding
ParticipantYes, I have made a child theme of twentyseventeen. I just don’t know where to put the codes you gave.
January 16, 2018 at 3:57 am #270123In reply to: How to add buddypress favorite button on a blog post
leog371
ParticipantOh no, you should be making a child theme. Anytime you update that theme, your works could be lost forever.
January 16, 2018 at 2:33 am #270121In reply to: How to add buddypress favorite button on a blog post
cding
ParticipantOh, that would be very good!
I’m sorry that I know nearly nothing about codes.
By **need to be a function**, do you mean I have to put the code into function.php and add “my_function{…}”?
I really do not know where to put the second code. My theme is twentyseventeen.
January 15, 2018 at 1:13 pm #270102HDcms
ParticipantHI,
I got a message from the theme author, but if you could help me or give me an example?- “The member loops uses the bp_ajax_querystring function to build member results aslo this function has a filter with you can alterate the query, the filter it’s : bp_ajax_querystring / https://codex.buddypress.org/developer/function-examples/bp_ajax_querystring/
So there should be made a custom function/s that check it’s there it’s member directory and only then to run that function and also should be builded the logic of your flow.”
January 14, 2018 at 8:01 am #270085In reply to: Translation issues in certain places
Varun Dubey
Participant@lpedley It’s theme specific issue, contact theme support for a solution.
When theme and other related BuddyPress plugin override template files, you have to translate theme and additional plugin strings with correct text domain. - “The member loops uses the bp_ajax_querystring function to build member results aslo this function has a filter with you can alterate the query, the filter it’s : bp_ajax_querystring / https://codex.buddypress.org/developer/function-examples/bp_ajax_querystring/
-
AuthorSearch Results