Search Results for 'theme'
-
AuthorSearch Results
-
March 4, 2016 at 6:16 pm #250659
In reply to: Filtering Activity Loops
mtraps
ParticipantOkay thanks. I’ll have to do some more research.Do you recommend using a theme that is meant for buddy press or would any theme work perfect with buddypress?
March 4, 2016 at 5:39 pm #250652In reply to: Paragraph breaks in messages
shanebp
ModeratorYou mean when viewing a single conversation / thread on your site?
Paragraph breaks are shown properly when viewed in WP themes like 2013.
Try switching momentarily to a WP theme to see if your issue is related to your theme.March 4, 2016 at 5:30 pm #250651In reply to: Filtering Activity Loops
mtraps
ParticipantThanks for the super quick response! I’ve looked into that. I personally thought buddy press allowed user to post from the front end already? Without this plugin they would have to login a backend using wordpress admin type settings?
Is buddy press best used with a theme that has buddy press integrated or could I use a theme like Divi and it would work perfectly fine? Also, would you know of a plugin that will filter out all the users posts sort of like Kijiji or amazons filter on the left? I am not even sure what that is called to search for it on google. Thanks again!
March 4, 2016 at 5:18 pm #250648In reply to: BuddyPress + bbPress Breaks bbPress Search Widget
shanebp
ModeratorYou need to provide a user / pw if you want someone to look at your forums.
Make sure your issue is not related to your theme; switch momentarily to a WP theme like 2013.
March 4, 2016 at 4:48 pm #250640In reply to: Visible profile fields
idoobi
ParticipantForgot to mention: using latest BuddyPress, bbPress in Divi theme.
March 4, 2016 at 2:44 am #250594In reply to: BuddyPress file in child theme
richdal
ParticipantHad to also copy over a couple functions to my theme’s functions.php file, rename them and make a couple minor changes, but was successful for me.
bp_xprofile_get_field_types()
bp_xprofile_create_field_type()March 4, 2016 at 12:13 am #250589In reply to: How to create profile fields for certain roles?
shanebp
ModeratorYou’ll need to be able to write and debug code.
You can create a template overload of this file:
buddypress\bp-templates\bp-legacy\buddypress\members\single\profile\profile-loop.phpSet a variable with the current user role. Google how to get that value.
Then create an array of profile field ids for a role.
For example :if ( $current_role == 'model' ) $show_fields = array( 1, 5, 23 ); elseif( $current_role == 'photographer' ) $show_fields = array( 1, 7, 12, 35 );Then check if the current profile field is in that array.
Something like:<?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> <?php if ( in_array( bp_get_the_profile_field_id(), $show_fields ) ) : ?> <?php if ( bp_field_has_data() ) : ?> <tr<?php bp_field_css_class(); ?>> <td class="label"><?php bp_the_profile_field_name(); ?></td> <td class="data"><?php bp_the_profile_field_value(); ?></td> </tr> <?php endif; ?> <?php endif; ?>Avoid setting any fields to ‘required’ if you’re only going to show them based on role.
March 3, 2016 at 9:30 pm #250579In reply to: How do I change the ‘activation successful’ text?
snazzypack
ParticipantThanks for your response Henry.
I am checking out your links now, but something came to mind. The issue I have is that this link sends customers to a WordPress login area, that looks exactly like the login screen for administrators (white screen with WordPress logo up top. I really don’t like that and would like the login page to look like the themes login page and I already have a login page that looks the way it should (which is why I am trying to which the link to direct to it).
Maybe, is there a way to change the look of the login page?
March 3, 2016 at 6:22 pm #250564In reply to: Widget memberbox
Mathieu M.
ParticipantWell,
I’ve tested your solution, and if it seems to duplicate all the elements from the Buddypress menu, it looks not so good : here’s the screenshot
Is it a problem with my theme (Hueman) ?
Thanks.
March 3, 2016 at 1:27 pm #250535In reply to: Activation mails not send after update
IngeB1983
ParticipantHi Paul,
Thank you for responding.
To answer your questions:
* How were you customising your activation emails?
-I was changing lines in the .pot file in PoEdit and generated a new .mo file in order to personalise the activation mail a bit more. (No core files were adjusted or changed)
-I made a change in the buddypress.min.css file* Is your site sending other emails correctly, or are all emails broken? Can you test to be sure?
I have only sent out activation emails up to this point. To test your question, I have manually added myself as a user and activated the account. Then, I send a confirmation email which it DID send, only the sender was WordPress instead of my site name.* Are you running WordPress multisite, or regular WordPress?
Regular WP. No multisite* Do you run any plugins that change wp_mail or affect how emails are delivered? For example, any plugins that send email via Mailchimp, etc?
Not to my knowledge. I am currently running these plugins:– BuddyPress
– Child Theme Configurator
– Jquery Updater
– Members
– Page Excerpt Widget
– Rating Widget
– User Submitted PostsAll of them were running as well yesterday when it still worked.
Let me know if you need any more info.
Inge.
March 3, 2016 at 12:27 pm #250523@mcuk
ParticipantHi mikee1001,
No worries :). I’m not familiar with that theme. But from your demo link (used the first of the three demos), the selector might be either:
.top-bar ul>li.bubbleor.top-bar ul>li.has-dropdown.bubble.This assumes that your live version of the theme is set up like their demo though. Note that I have added the
.bubble. As a check if you remove that bit from the selector and add something likeborder= 1px solid red;you should see a change on your site. If not then the selector is wrong.Have you got the bubbles appearing successfully somewhere on the page (even though you haven’t got the correct selector yet)? Check by pressing ctrl-A to select all, which highlights everything on your site in blue, then you can look for the numbers which are your notification counters etc. If you can’t see them then something may have been done wrongly and would need to be addressed prior to finding the correct CSS selectors.
If you manage to get them appearing and put a link to your site then I could tell you what the correct selector is.
March 3, 2016 at 10:41 am #250514paddy33
ParticipantThanks to @djpaul and @r-a-y, i got my custom BuddyPress templates to load by adding theme support from this post.
But now that the templates are loading properly, the BuddyPress nav and subnav bar (which were looking fine before) has lost its custom styling (after adding theme support for BuddyPress). As a long shot, I tried adding
wp_dequeue_style( 'buddypress' ), and thenwp_enqueue_style( 'buddypress' )to the same function but it didn’t work.function my_theme_setup() { add_theme_support( 'buddypress' ); // wp_enqueue_style( 'buddypress' ); // this didn't work to solve the nav bar styling issue // wp_dequeue_style( 'buddypress' ); // neither did this }Would greatly appreciate any pointers on how to get the child theme’s custom styling back. Thanks.
WordPress 4.4.2
BuddyPress 2.1.2March 3, 2016 at 10:12 am #250502Mike
ParticipantThanks so much for your step by step guide @mcUK. I’ve followed your instructions, but am stuck on changing the CSS Selector. The theme I’m using is (http://themeforest.net/item/sweet-date-more-than-a-wordpress-dating-theme/full_screen_preview/4994573), I’m trying to put the notifications in the top menu (Welcome/Features/Forums… on the demo, but I’ve added Buddypress menu items there). Do you know which selector I would need to use for that? Many thanks.
March 3, 2016 at 9:58 am #250497In reply to: Creating a modern web community
Henry Wright
ModeratorThe alternative to having WordPress posts as “topics” and WordPress comments as “topic replies” is to theme bbPress. Check out the Theme Compat article for some introductory info. You can either use an already-made theme, or have a go at developing something unique yourself.
March 2, 2016 at 9:13 pm #250483@mcuk
ParticipantHi @mikee1001,
The code i used for inserting the bubble counters for notifications, unread messages and total friends is:
// Notification counter bubble function bptest_main_nav_notification_bubble( $items, $args ) { if( $args->theme_location == 'header-menu' ) { // In manage locations via WP Dash>Appearance>Menus $items_array = array(); while ( false !== ( $item_pos = strpos ( $items, '<li', 3 ) ) ) { $items_array[] = substr( $items, 0, $item_pos ); $items = substr( $items, $item_pos ); } $items_array[] = $items; array_splice( $items_array, 3, 0, '<li class="bubble">' . bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) . '</li>' ); // 0,0 1st position, 1,0 2nd, etc $items = implode( '', $items_array ); } return $items; } add_filter( 'wp_nav_menu_items', 'bptest_main_nav_notification_bubble', 10, 2 );// Unread message counter bubble function bptest_main_nav_message_bubble( $items, $args ) { if( $args->theme_location == 'header-menu' ) { // In manage locations via WP Dash>Appearance>Menus $items_array = array(); while ( false !== ( $item_pos = strpos ( $items, '<li', 3 ) ) ) { $items_array[] = substr( $items, 0, $item_pos ); $items = substr( $items, $item_pos ); } $items_array[] = $items; array_splice( $items_array, 5, 0, '<li class="bubble">' . bp_get_total_unread_messages_count( bp_loggedin_user_id() ) . '</li>' ); // 0,0 1st position, 1,0 2nd, etc $items = implode( '', $items_array ); } return $items; } add_filter( 'wp_nav_menu_items', 'bptest_main_nav_message_bubble', 10, 2 );// Total friends counter bubble // Note, 'bp_friend_get_total_requests_count' will give the total connection request count if desired function bptest_main_nav_friend_bubble( $items, $args ) { if( $args->theme_location == 'header-menu' ) { // In manage locations via WP Dash>Appearance>Menus $items_array = array(); while ( false !== ( $item_pos = strpos ( $items, '<li', 3 ) ) ) { $items_array[] = substr( $items, 0, $item_pos ); $items = substr( $items, $item_pos ); } $items_array[] = $items; array_splice( $items_array, 7, 0, '<li class="bubble">' . friends_get_total_friend_count( bp_loggedin_user_id() ) . '</li>' ); // 0,0 1st position, 1,0 2nd, etc $items = implode( '', $items_array ); } return $items; } add_filter( 'wp_nav_menu_items', 'bptest_main_nav_friend_bubble', 10, 2 );In each of the above you will want to change the
theme_location == 'header-menu'totheme_location == 'INSERT YOUR HEADER MENU NAME HERE'. The name of your menu is found via your WP Dashboard > Appearance > Menus. The three functions above were inserted into bp-custom.php .The positions of the bubbles will also need changing depending on where they should be in your menu. Do that by changing the numbers on the section
array_splice( $items_array, 7, 0, '<li class="bubble">'. The comment alongside the line in the code should help you.You’ll also need some CSS for the bubbles otherwise you probably won’t see them even if they are functioning. If you hit ctrl-A to select everything on your web page, they should show up somewhere in your menu (assuming the code has been implemented correctly of course).
As you can see in the functions above all the bubbles have been given a class called “bubble”. So put in your style.css (of your child theme) something like:
#main-navigation .main-nav ul li.bubble { transform: translate(0, 50%); width: 20px; height: 20px; padding: 2px 6px; border: 1px solid #000; border-radius: 50%; margin: 0 10px 0 0; background: #fff; color: #000; font-size: 11px; }The selector (
#main-navigation .main-nav ul li.bubble) may be different on your site because it will depend on your theme etc. So use the developer tools, F12 button, on your browser to find out the correct one. It will be the bit before the.bubblethat is different.Hopefully the above helps!
March 2, 2016 at 5:57 pm #250477Mike
ParticipantHi @mcuk , I’ve added Buddypress menu items (e.g. messages, notifications etc.) in my main WordPress menu, together with WordPress menu items (e.g. home). I also want to have the notification counters next to each of the Buddypress items, but am struggling to get your solution to work for me (doesn’t help I’m not that proficient in coding)! Should I add the code above to the functions.php of my child theme, and is it only that one file I need to edit?
Many thanks.
March 2, 2016 at 12:58 pm #250464In reply to: place group & user meta outside of the header
Henry Wright
ModeratorThis can be done by modifying your theme. BuddyPress uses a Template Hierarchy. If you have any specific questions feel free to ask them here 🙂
March 2, 2016 at 8:45 am #250454In reply to: How to remove theme’s header from profile pages?
Hugo Ashmore
ParticipantThis requires an understanding of the WP approach to template parts and creating child themes (if you’re not already running as a child theme) plus the BuddyPress template hierarchy as outlined in our codex.
One approach would be to take advantage of the ability to call named template parts in WP so
get_header()can becomeget_header('no-logo')which would then look for a file namedheader-no-logo.phpA copy of header.php renamed to header-no-logo.php means you can now call a file that you can specifically modify – in this instance in the simplest terms you could remove any calls to rendering logos/backgrounds in this file.
Running your BP templates in your theme or child theme (see the bp codex templating guides) would then mean you could run a conditional query to see if in buddypress.php which get_header() template to use by using a check for bp_is_user() but you’ll need moderate php skills for this.
The better approach is to use the advanced BP template hierarchy which would allow you to create a file to act as index.php with all header/footer calls just for BP user screens.
The easy or possibly easier approach but not one I advice is to do what you have mentioned you have tried in using styles to hide the elements.
You’ll need a top level class identifier so we know it’s the BP screens we’re looking at and applying rules to:
body.bp-user .logo-element {display: none;}I can’t advice what the correct selectors are as I’ve no notion of your themes structure, you’ll need to identify them and test until you find the right combination.
`March 2, 2016 at 3:58 am #250448In reply to: Change profile button on hover
modemlooper
ModeratorNot too hard, add a button near avatar image and use css to place it over image. Hide the button until you hover.
Read here on how to customize bp templates https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/
March 1, 2016 at 7:02 pm #250438In reply to: Compose Private Message Issue
shanebp
ModeratorFor private messages, auto-complete only shows your friends.
To access everyone, put this in your theme/functions.php or in plugins/bp-custom.php
define( 'BP_MESSAGES_AUTOCOMPLETE_ALL', true );March 1, 2016 at 2:19 pm #250425In reply to: delete Comments on all pages
Henry Wright
ModeratorCheck out the Template Hierarchy article. It will show you how to set up templates for BuddyPress. You can then remove the comment section and comment form from the page(s) you want.
March 1, 2016 at 12:01 pm #250421In reply to: Files guide
Henry Wright
ModeratorThe Template Hierarchy article is what you’re looking for.
February 29, 2016 at 3:26 pm #250399In reply to: No Twentysixteen Companion Styles
Hugo Ashmore
Participant@tranny I’m not sure I’m inderstanding the question or problem here, but if you want the styling for vert menu that would appear with no sidebars but do have sidebar in use you’re alternative option to the above solution provided by @airsid would be to ensure you have a copy of a primary temple i.e page.php moved to a bp folder in your child theme, in that you would use conditional checks around the get_sidebar() to remove it from loading on profile pages then copy the companion styles over and find the section for the navigation and where/how I select to show only if the class
.no-sidebaris printed on the body element by adding in:
body.no-sidebar, body.bp-user {}to all the rulesets that cover the navigation properties.
( I realise this is a not that straightforward though, and am puzzling whether we can write something better, but it’s a problematical area things like theme sidebars for BP and user account screens.)February 29, 2016 at 1:14 pm #250388In reply to: No Twentysixteen Companion Styles
airsid
ParticipantAre you saying I need to install a sidebar plugin to see changes to the theme?
Yes ! Have you try the solution I gave you ?
As explain by @hnla, Buddypress companion style works only when the buddypress pages have enough width, that’s mean no sidebar or an empty sidebar (no widget in it).
For twenty sixteen theme, when the regular sidebar is empty (no widget) the buddypress content still not use 100% width, it’s why companion style isn’t working even with the empty regular sidebar.So an easy solution is to create a new empty sidebar that will replace the regular theme sidebar.
To do that I used the Content Aware Sidebars plugin as discribe in my previous post.
Try to follow those steps
2) Install Content Aware Sidebars plugin
3) Create a sidebar then select Buddypress Members type and add all proposed subcategories. Set it as substitution to the regular sidebar and then save it. Do not add any widget in this sidebar.
4) Don’t forget to clear your browser cache.February 28, 2016 at 12:35 pm #250338miguelcortereal
ParticipantIssue solved.
It was a function at child theme filtering one of the xprofile fields.
Thanks a lot for your concern.
-
AuthorSearch Results