-
Joshua Blevins replied to the topic Creating Custom Member Types in the forum Creating & Extending 8 years, 2 months ago
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?
-
Joshua Blevins replied to the topic Creating Custom Member Types in the forum Creating & Extending 8 years, 2 months ago
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?
-
Joshua Blevins replied to the topic Creating Custom Member Types in the forum Creating & Extending 8 years, 2 months ago
Worked like a charm!
Is the member directory /members/index.php and the loop for the directory is /members/members-loop.php? right?
-
Joshua Blevins started the topic Creating Custom Member Types in the forum Creating & Extending 8 years, 2 months ago
I wrote the following code and put it in functions.php inside of the bp-default theme. Is this wrong? If so where should i put it?
/*
* Create the custom coach role for users.
*/
function createRoles(){
//create coach roles
$type = "Coach";
$args = array("labels" => array("name" => "Coaches", "singular_name" => "Coach"), "has_directory" =>…[Read more] -
Joshua Blevins replied to the topic About bp-custom in the forum Creating & Extending 8 years, 10 months ago
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',…[Read more]
-
Joshua Blevins started the topic About bp-custom in the forum Creating & Extending 8 years, 10 months ago
I see the code here about creating custom member types, but it didn’t say much about where to put this code. I assumed one of two places. Either in the bp-custom.php file wp-content/plugins/ or in functions.php. However, when i post the code below into both I did not get the desired effect.
[Read more]
function… -
Joshua Blevins replied to the topic About BuddyPress Templates in the forum Creating & Extending 8 years, 10 months ago
Got it to work. Thank you for your help Hugo.
-
Joshua Blevins replied to the topic About BuddyPress Templates in the forum Creating & Extending 8 years, 10 months ago
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.
-
Joshua Blevins replied to the topic About BuddyPress Templates in the forum Creating & Extending 8 years, 10 months ago
Just gonna bump this up.
-
Joshua Blevins replied to the topic About BuddyPress Templates in the forum Creating & Extending 8 years, 10 months ago
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!
-
Joshua Blevins replied to the topic About BuddyPress Templates in the forum Creating & Extending 8 years, 10 months ago
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?
-
Joshua Blevins replied to the topic About BuddyPress Templates in the forum Creating & Extending 8 years, 10 months ago
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.
-
Joshua Blevins replied to the topic About BuddyPress Templates in the forum Creating & Extending 8 years, 10 months ago
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…[Read more]
-
Joshua Blevins replied to the topic About BuddyPress Templates in the forum Creating & Extending 8 years, 10 months ago
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…[Read more]
-
Joshua Blevins replied to the topic Group Type Development in the forum Creating & Extending 8 years, 10 months ago
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.
-
Joshua Blevins replied to the topic About BuddyPress Templates in the forum Creating & Extending 8 years, 10 months ago
Anybody know how BuddyPress looks for and puts together the group profile page?
-
Joshua Blevins started the topic About BuddyPress Templates in the forum Creating & Extending 8 years, 10 months ago
I see in bp-legacy there are many files (including: group-header.php, home.phpm admin.php, cover-image-header.php, activity.php, members.php,etc.). Is there anybody within the community that can explain how WordPress and BuddyPress put together the group profile pages and what files they use.
Example: WordPress uses get_header to fetch…[Read more]
-
Joshua Blevins replied to the topic Question about bp_activity_action in the forum Creating & Extending 8 years, 11 months ago
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.
-
Joshua Blevins replied to the topic Question about bp_activity_action in the forum Creating & Extending 8 years, 11 months ago
I did look at that function as well.
/**
[Read more]
* 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… -
Joshua Blevins started the topic Question about bp_activity_action in the forum Creating & Extending 8 years, 11 months ago
Right now I am trying to make my own custom entry.php for my activity loops. When looking at the bp-default one to get a good idea of what one should look like i ran into the following code.
<?php bp_activity_action(); ?>
Now I found this function in bp-activity-template.php in the github project, but that was not too helpful either. The file…[Read more]
- Load More
@jblevins1991
Active 8 years, 2 months ago