Forum Replies Created
-
I am really confused about how a child theme overrides a standard theme. So does the child theme just have to be named Twenty Sixteen Child and it will override Twenty Sixteen?
If I change code like the h3 tags or something will the changes show up on the members directory page? I am trying to modify the bp-default because im not very familiar with child themes. I figure if I modify the parent theme it would show up on the main theme right?
Worked like a charm!
Is the member directory /members/index.php and the loop for the directory is /members/members-loop.php? right?
Okay, I did those changes (shown below). I still see no additional role added to the WordPress extended profile. I should be able to see it there. Correct?
<?php /* * */ function custom_member_types(){ bp_register_member_type('role', array('labels' => array('name' => 'role', 'singular_name' => 'role'))); } add_action('bp_init', 'custom_member_types'); ?>
Got it to work. Thank you for your help Hugo.
Do you have a fully custom BuddyPress theme that is not a child theme? I’d really like to look at the code and figure it out under the hood.
Just gonna bump this up.
I copied the files that are located in bp-legacy/buddypress/groups to MyTheme/buddypress/groups. Hmmmm, I will have to look into that Hugo. So that would be why you never see get_header or get_footer, etc. in any buddypress templates. That makes a hell of a lot more sense!
I really should not have posted before testing. However I copied pasted the BuddyPress Template for index.php to my theme and It comes up as a blank page. Any ideas why this would happen?
Okay. Revisiting that page kind of game me some direction. I think I just stumbled into a state of pure confusion. I’ll post back if I have any questions.
Right, when it says directory it means that its where all of the groups are shown in a list right?
I am trying to find which pages are what right now so I can mirror the directory structure and move on to coding them out and testing things on them.
Can you give me some more information on which ones are which? I really couldn’t find which one would be the profile page where you can view that groups activities and members, etc.
Okay because I was looking at bp-core-template-loader. I saw the many functions such as bp_register_template_stack and bp_get_template_stack. From the description of the function in the comments I infer these functions allow me to say “instead of bp-legacy use these folders instead”. Is there a way to get BuddyPress to use the files at my-theme/buddypress/groups instead?
Also is index.php the page that shows lists of groups or the groups profile page?
I would really like this. As of now I have to create my own solution for this. Im not to the step where I have started the code for my custom group types, but if it would help the community in any way I will post a link to the code for it when I do get that far.
Anybody know how BuddyPress looks for and puts together the group profile page?
Right now I am trying out Dreamweaver for production. However for a bit more versatility I am thinking about going back to Sublime Text. If not mainly for awesome plugins.
I did look at that function as well.
/** * 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 activity content. */ function bp_get_activity_content() { /** * If you want to filter activity update content, please use * the filter 'bp_get_activity_content_body'. * * This function is mainly for backwards compatibility. */ $content = bp_get_activity_action() . ' ' . bp_get_activity_content_body(); return apply_filters( 'bp_get_activity_content', $content ); }
Do you know which file holds all of the buddypress specific filters and actions? I’d really like to dig deeper and understand those as well. I think that is what is holding me back from developing faster and better.
Creating a child theme is not necessary. I figured out that if you create template files using the //Template Name you can go to the pages that BuddyPress makes and assign template pages to those pages. So you can create a file named activity.php and make it a template file and add the activity loop inside of that file. Once you have assigned that template to the Activity page in the WordPress dashboard you can then go to the BuddyPress settings and make sure that your Activity page is set up under the Activity drop down and save changes and it will work. I didn’t want to add unnecesary steps to making a single theme that did everything I needed. I will work on compiling a tutorial series on how to work with BuddyPress and then contribute it to the codex. Thank you for the response. Also if you look at the code in the BuddyPress plugin on the codebase you will see that bp-legacy is completely deprecated. There is compatibility code to not break old themes, but it is not the best way to do things.
I just figured that out. I have the activity folder added to the twentyfifteen theme. I am trying to modify the file, but it really doesn’t look like it should. I am logged in and I dont see any activity nor do i see the message Sorry, there was no activity found, Please try a different folder.
I am so confused and frustrated. I am pretty competent with wordpress as well as php, and i don’t feel like this should be so difficult.
I guess I didn’t have the answer. Can someone seriously help me out? There are no notes on this anywhere on google and I don’t see it on the site or on github. I’m about to give up on buddypress.
I found the answer myself. BuddyPress uses specific folders for the default pages (Activity, Groups, Forums, etc.) located at wp-content/plugins/bp-templates/bp-legacy/buddypress. In each folder found here are the corresponding default templates. These can be added to a folder you create in your theme. The folder you add to your theme must be named community or buddypress.
So I found this page, which says I can make a directory named buddypress or community. However, it doesn’t say the name of any of the files I can override. What files can I override and what do they do?
So if I took the info from the github catacombs and summarized it, I can submit it? That I would love to do. Thank you Henry :3
Late response from me, but I just feel like the codex should not be so freaking skimpy and weak. I have nothing against digging around in github. However, if the developers want the platform to grow the codex should be more comprehensive. Is buddypress an npo or community project?