Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 23 replies - 1 through 23 (of 23 total)
  • @jblevins1991

    Participant

    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?

    @jblevins1991

    Participant

    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?

    @jblevins1991

    Participant

    Worked like a charm!

    Is the member directory /members/index.php and the loop for the directory is /members/members-loop.php? right?

    @jblevins1991

    Participant

    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');
    
    ?>

    @jblevins1991

    Participant

    Got it to work. Thank you for your help Hugo.

    @jblevins1991

    Participant

    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.

    @jblevins1991

    Participant

    Just gonna bump this up.

    @jblevins1991

    Participant

    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!

    @jblevins1991

    Participant

    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?

    @jblevins1991

    Participant

    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.

    @jblevins1991

    Participant

    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.

    @jblevins1991

    Participant

    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?

    @jblevins1991

    Participant

    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.

    @jblevins1991

    Participant

    Anybody know how BuddyPress looks for and puts together the group profile page?

    @jblevins1991

    Participant

    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.

    @jblevins1991

    Participant

    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.

    @jblevins1991

    Participant

    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.

    @jblevins1991

    Participant

    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.

    @jblevins1991

    Participant

    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.

    @jblevins1991

    Participant

    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.

    @jblevins1991

    Participant

    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?

    @jblevins1991

    Participant

    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

    @jblevins1991

    Participant

    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?

Viewing 23 replies - 1 through 23 (of 23 total)
Skip to toolbar