Forum Replies Created
-
Thanks for your help testing it out and reporting issues, @InterMike.
I’ve just added a theme options page so that users can choose from a few basic color choices and use a custom.css stylesheet if they want to override anything. Aiming to get some other basic options in there for fonts.
For the custom stylesheet, check off the custom stylesheet option box in theme options, and create custom.css in the root theme directory.
A reminder that Frisco requires BuddyPress 1.5 and WordPress 3.2.1 or 3.3 (nightly build).
You can download the theme at https://github.com/davidtcarson/frisco/
Do you have this in a url we can check out? Much easier to see what’s going on that way.
You also might want to consider importing the bp-default theme’s stylesheet near the top of your child theme stylesheet, and then only including your custom CSS on the child theme stylesheet. See https://github.com/davidtcarson/frisco/blob/master/style.css for an example.
It sounds like you might have copy/pasted the stylesheet from bp-default into your child theme and that’s probably not a good idea.
@intermike Have you refreshed your cache? The dropdowns should have a dark grey zebra stripe. I think I committed that to the trunk yesterday. If not, check for an update tonight but I would try refreshing your browser cache first.
@PJ Are you using the latest BP trunk? https://buddypress.trac.wordpress.org/browser/trunk
And are you using the latest theme from here – https://github.com/davidtcarson/frisco?
@InterMike. Are you using `define(‘BP_USE_WP_ADMIN_BAR’, true);` in your wp-config.php file as recommended? That should square away your admin bar width issue.
Thanks for trying it out InterMike. I think that a few of your issues are related to the theme not being updated in the last week. I’ve been away on vacation and, as I’m sure you know, the BP Trunk has been getting loads of updates every day. I’ll have a chance to look into the updates this weekend and look for an updated version of the theme on Monday.
Thanks @mercime. Very good to know that.
Thanks @mercime. I haven’t submitted a theme before but I have read through the codex/theme links before. Just haven’t seen any info specifically discussing BuddyPress child themes.
If BuddyPress isn’t active, my child theme doesn’t work.
Do you know if that is going to be an issue? I have looked through other child themes in the repository and they seemed to make it through.
Will you be submitting this to the WP Theme Repository?
That’s the plan. I remember reading about BuddyPress child themes having difficulty with theme review, so if anyone has any updates on that or if you’d like to help, please let me know.
Duplicate post. I replied to your other post yesterday – https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/making-an-exclusive-login/
It’s probably better to keep any conversation going on that orignal post.
buddypress.org is undergoing some maintenance and search/activity is hard to keep track of right now.
You’ll most likely want to create a replacement function for the function that adds the “My Account” section in the nav bar (see `bp_adminbar_account_menu()` in bp-core directory) and override it with your own custom function with the logout section removed using a `bp-custom.php` file.
This help page provides a good overview of what to do:
https://codex.buddypress.org/theme-development/modifying-the-buddypress-admin-bar/
echo bp_loggedin_user_domain();I’d probably just use CSS.
http://css-tricks.com/630-css-image-replacement/
But I like to use CSS for almost everything.
I haven’t used or tested this plugin, but it looks like it might work for you.
https://wordpress.org/extend/plugins/user-domain-whitelist/
P.S. Go Jumbos! I’m an alum.
Look for the `bp_adminbar_thisblog_menu` function in `bp-core/bp-core-adminbar.php`. It’s around line 151 (BP Version 1.2.7).
There is an `if` statement with `current_user_can( ‘edit_posts’ )`. Replace `edit_posts` with whatever role you want to check it for. https://codex.wordpress.org/Roles_and_Capabilities
And you might already know this, but you should try to make your changes to the function using `bp-custom.php`. https://codex.buddypress.org/extending-buddypress/bp-custom-php/
@satomom – Unfortunately, I’m not accepting any new projects at the moment. But you could try posting your project in the BuddyPress jobs board.
@satomom – No membership software. Just some basic PayPal subscription buttons and theme/function customizations based on whether a user is logged in or not. This method requires more oversight and maintenance (ex. if someone cancels their subscription), but it keeps everything simple for upgrades.
If you’re looking for a more robust solution, you might want to check out – https://wordpress.org/extend/plugins/s2member/
There is an epic thread on this that is worth a read – https://buddypress.org/community/groups/creating-extending/forum/topic/securing-components-from-non-logged-in-users/
That thread has lots of examples and discussion.
Here’s an example:
`
function restrict_access(){
global $bp, $bp_unfiltered_uri;if (!is_user_logged_in() &&
(
BP_MEMBERS_SLUG == $bp_unfiltered_uri[0] ||
BP_GROUPS_SLUG == $bp->current_component ||
BP_BLOGS_SLUG == $bp->current_component ||
‘forums’ == $bp->current_component ||
is_page_template(‘private-page.php’)
)
) {bp_core_redirect( get_option(‘home’) . “/private/” );
}
}add_action( ‘wp’, ‘restrict_access’, 3 );
`You can put that in bp-custom.php in the `wp-content/plugins/` directory. https://codex.buddypress.org/extending-buddypress/bp-custom-php/
There are lots of CSS hooks so you can customize the look of your messages pages. It would be easiest to just use some creative theming and create the effect. You could hide most profile information/avatar using CSS.
Or you could also try creating a custom page template using the private messages loop and adjust the parameters to suit your needs.
You just need to add an extra selector to override the default.
`
#header #nav { left: 15px; }`
Make sure that you have deactivated all other plugins except BuddyPress. Or better yet, remove them from your plugins directory. And then try to reinstall the BuddyPress forums again.
Or, install a shiny new version of WP/BP in another subdirectory with a fresh database to see if you still experience the forum error. That will help you to at least isolate the issue. It’s pointless to troubleshoot something after you’ve added other plugins and customizations to the mix.
I think there are probably a number of things that would cause that message but I doubt it’s permissions.
When you installed BuddyPress, did you get the forums working *before* any customizing (plugins/themes)? I’d recommend always doing this when installing or upgrading because it will help you to discover issues before you make customizations of your own.
I’m not sure what to advise, but you might try installing a completely vanilla (untouched) WordPress install in another subdirectory on your domain/server, and then install BuddyPress and and activate the forums on that test install.
If it works on the test install, something you customized along the way is causing the issue and you should begin removing/adding those customizations one by one to pinpoint the problem.
Have you tried re-installing the forums? `wp-admin/admin.php?page=bb-forums-setup`
Do you have any Groups set up with the forum option enabled? If not, create or edit a group and make sure the `Enable discussion forum` option is checked under the `Admin` tab for that group.