Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 6,251 through 6,275 (of 32,562 total)
  • Author
    Search Results
  • #250659
    mtraps
    Participant

    Okay 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?

    #250652
    shanebp
    Moderator

    You 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.

    #250651
    mtraps
    Participant

    Thanks 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!

    #250648
    shanebp
    Moderator

    You 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.

    #250640

    In reply to: Visible profile fields

    idoobi
    Participant

    Forgot to mention: using latest BuddyPress, bbPress in Divi theme.

    #250594
    richdal
    Participant

    Had 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()

    #250589
    shanebp
    Moderator

    You’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.php

    Set 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.

    #250579
    snazzypack
    Participant

    Thanks 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?

    #250564

    In reply to: Widget memberbox

    Mathieu M.
    Participant

    Well,

    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.

    #250535
    IngeB1983
    Participant

    Hi 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 Posts

    All of them were running as well yesterday when it still worked.

    Let me know if you need any more info.

    Inge.

    @mcuk
    Participant

    Hi 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.bubble or .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 like border= 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.

    paddy33
    Participant

    Thanks 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 then wp_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.2

    Mike
    Participant

    Thanks 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.

    #250497
    Henry Wright
    Moderator

    The 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.

    @mcuk
    Participant

    Hi @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' to theme_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 .bubble that is different.

    Hopefully the above helps!

    Mike
    Participant

    Hi @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.

    #250464
    Henry Wright
    Moderator

    This can be done by modifying your theme. BuddyPress uses a Template Hierarchy. If you have any specific questions feel free to ask them here 🙂

    #250454
    Hugo Ashmore
    Participant

    This 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 become get_header('no-logo') which would then look for a file namedheader-no-logo.php

    A 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.
    `

    #250448
    modemlooper
    Moderator

    Not 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/

    #250438
    shanebp
    Moderator

    For 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 );

    #250425
    Henry Wright
    Moderator

    Check 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.

    #250421

    In reply to: Files guide

    Henry Wright
    Moderator

    The Template Hierarchy article is what you’re looking for.

    #250399
    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-sidebar is 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.)

    #250388
    airsid
    Participant

    @tranny,

    Are 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.

    #250338
    miguelcortereal
    Participant

    Issue solved.

    It was a function at child theme filtering one of the xprofile fields.

    Thanks a lot for your concern.

Viewing 25 results - 6,251 through 6,275 (of 32,562 total)
Skip to toolbar