Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 6,026 through 6,050 (of 31,072 total)
  • Author
    Search Results
  • #238801
    danbp
    Participant

    Try one the other existing action hook in entry.php. If they don’t fit to your need, you add the custom action where you need it.

    Keep also in mind that all position are div, so depending your theme you have also to maipulate CSS to achieve your goal.

    #238797
    shanebp
    Moderator

    As it says in that thread – to entry.php
    Specifically buddypress\bp-templates\bp-legacy\buddypress\activity\entry.php

    And of course create a template overload of that file.

    #238790

    In reply to: Groups issue

    danbp
    Participant

    Apparently the issue is clearly related to Boss theme, no ?
    You have to ask on the theme support, support is included in the licence price and we haven’t free access, so it’s difficult to help you. Sorry.

    I suspect the theme to not use some very recent modification around localization. Since BP 2.0 many strings where enhanced with translators ready comments and somme other little details, like points or comas.

    As example, my groups (x) is coded My Groups <span>%s</span> in BP 2.2
    As you say it’s not translated, this means that the original (theme) code is wrong.
    Could be My groups <span>%s</span> or my groups <span>%</span> (lower case, missing ‘s’)…
    Verify this for each string.
    Compare the result between buddypress.pot and what you see in theme’s source.

    Other common issue example. Groups is not translated on My Profile sub nav menu.

    Actually, BP use this in bp-activity/bp-activity-loader.php
    'title' => _x( 'Groups', 'My Account Activity sub nav', 'buddypress' )

    Not so long in the past, it was
    'title' => __( 'Groups', 'buddypress' )

    The important thing for gettext to work, is the difference between _x and __ !

    Updating a theme or plugin to fetch those kind of details is a time consuming detail work. An the devil is in details… and custom themes use custom functions or complex template overloads.

    But at least, you know where and what to control now. 😉

    #238787
    PinkishHue
    Participant

    I’ve been thinking of this a lot myself, in the way that Facebook or Gmail for example update their title tags. This is a great way of encouraging engagement in the site as people see the number even if their browser is minimised and they’re off working on something else.

    I haven’t tried to implement this myself yet but will have a try asap.

    I guess it’s a case of:

    adding a conditional in to the <title > tag in the themes header.php that says IF there are notifications then display the count. Then, have the page refresh periodically to update the count (or does buddypress do this already to update notifications? I’d have to check)

    So just need to find the code that generates the notifications count.

    Hopefully it’s that simple, but we’ll see 🙂

    #238786

    In reply to: Groups issue

    Rene Streber
    Participant

    may be another hint to resolve this issue

    Boss theme activitated:
    when I’m on the group component (directory) page
    the firefox tab shows me “group” but the url is community/gruppen (in german)
    it doesn’t fit

    another Wordpess Theme activated:
    when I’m on the group component (directory) page
    the firefox tab shows me “gruppen” but the url is community/gruppen (in german)
    it does fit

    #238785

    In reply to: Groups issue

    Rene Streber
    Participant

    Hi,
    I deactivated all plugins,
    I checked all permalinks,
    activated the twenty four theme from wordpress instead of the Boss theme (language looked fine),
    activated buddypress (language looked fine, everything is correctly translated)

    activated the BOSS Theme (language is not 100% translated:
    examples: active, all groups, my groups, group has xx members, newly created etc. is not translated
    although we installed the newest german translation (mo/po in wp-content/languages/plugins)

    The same translation problem exists with sidewide activity as well as member directory (here all members, my friends in English)

    For groups (..community/gruppen; parent is community, template is default)
    For members (..community/mitglieder; parent is community, template is default)

    404 error if I try to open any group with wordpress or with the boss theme

    I did not run the last steps, because the issue is still present.

    Ps Every buddypress component has its own unique page

    Rene

    danbp
    Participant

    No, you do it wrong. Read the codex links i provided.

    buddypress-functions.php in the bp-templates\bp-legacy folder or profile-loop.php are not the right files.

    I told you to put the snippet into bp-custom.php OR in your child-theme functions.php

    Why do you hack core files ? They will be overwriten at next BP update… 👿

    #238755
    danbp
    Participant

    Try this (bp-custom.php or child-theme functions.php)

    function lafa_remove_submenu_item() {
    	global $bp;
    
    	unset($bp->bp_options_nav['profile']['public']);
    }
    add_action('bp_setup_nav', 'lafa_remove_submenu_item', 201);
    danbp
    Participant

    hi @tiquality,

    to show the user’s mail above the other user information, you can add the following snippet to bp-custom.php or child-theme’s functions.php

    Assuming users gave a valid email at registration, we can output that address.
    Avantage is that they haven’t to enter their mail a second time while completing their profile.

    So we just need to manually add this address to the template, using one of the action hook avaible in profile-loop.php

    function tiquality_add_custom_field() {
    
    	if ( bp_is_active( 'xprofile' ) ) :
    
    		if ( is_user_logged_in() ) {
    ?>
    	<div class="bp-widget <?php bp_the_profile_group_slug(); ?>">
    		<table class="profile-fields">
    			<tr class="my_mail">
    
    				<td class="label">Contact me</td>
    
    				<td class="data"><a href="mailto:<?php bp_displayed_user_email(); ?>"><?php bp_displayed_user_email(); ?></a></td>
    
    			</tr>
    		</table>
    	</div>
    <?php 
    		}
    	endif; 
     
    }
    add_action('bp_profile_field_buttons', 'tiquality_add_custom_field');

    If you prefer it on the profile header, use the action hook indicated by Brajesh
    add_action('bp_member_header_actions', 'tiquality_add_custom_field');

    #238746

    In reply to: Forums on Member Pages

    matrixd
    Participant

    Hi I have the same problem.
    I think it has to do with the main theme.
    I use smartmag theme with a child theme, when a change back to Twenty Twelve theme everything works fine.

    #238745

    In reply to: Groups issue

    danbp
    Participant

    Hallo @rene-streber,

    First of, i would recommend that you revert to a basic WP install using 2014 or 2015 theme and the WP’s german language activated and all plugins deactivated.

    If you have a local install, suggest you do your test on it instead of the prod site.

    Once this is done, you activate BuddyPress. German language will automatically be uploaded to the right folder (wp-content/languages/plugins/buddypress-de_DE.mo)
    The original translation is here. It is complete to 100%. (and also the official translation).
    FYI deckerweb provides a translation for bp 1.9 & 1.9.1. So seems to me it is outdated now.

    Check if anything is correctly übersetzt. Theoretish sollte es jetzt funktionnieren.

    If ok, you activate the main theme. Recheck everything. If ok, reactivate your plugins one by one and check each step to isolate an issue, if ever.

    If everything is correct again, you can handle the specifics for your homepage. But remind one thing: BuddyPress components use a page system which is only in for internal purpose. This means that you can’t apply a page model like for an usual WP page. And if you use a special template just for the homepage, you have to adjust it to work with BuddyPress.

    Each activated BP component should have a page assigned. And this page must be unique and empty, whithout any template or model settings, just a title.

    I see that you have some issue with page names in your menu. Button show community2 and the permalink contains community-4. Check this too, to get community only everywhere. And probably clear your trash as it may contain some duplicates from previous attempts.

    Once this is cleaned, und mit klarer aussicht, simply resave your permalinks to reinitialize all links.

    #238743
    danbp
    Participant
    Brajesh Singh
    Participant

    Hi,
    Is your theme BuddyPress compatible, if yes, Please check if there is ‘members/single/member-header.php or buddypress/members/single/member-header.php

    If yes, you can put the code anywhere in that file. If your theme does not have this file, It can be added via ‘bp_member_header_actions’ too like this

    
    add_action('bp_member_header_actions', 'devb_show_displayed_user_email' );
    

    which you can put in the bp-custom.php too.

    #238706

    In reply to: Forums on Member Pages

    Marcella
    Participant

    @danbp

    members/single/index.php does exist, I created it. It also takes as a valid template. If you use home.php erroneous p tags are placed throughout the page.
    bp_is_user_forums() doesn’t seem to work.

    I think the template names were all changed, https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/#single-member-pages

    /members/member/forums/ doesn’t list anything, returns nothing.
    /members/member/forums/replies – lists the topics, although they aren’t replies they are topics started.

    Thanks for reply.

    p.s.

    danbp
    Participant

    This works only in the member loop.
    Not sure what you mean by a user standard page, but if you mean a normal WP page, see here first:

    Template Hierarchy

    or more simplier, see
    https://wordpress.org/plugins/bp-profile-search/

    danbp
    Participant

    @fabwintle Hi Fabienne,

    i’m pretty sure the plugin is working. So you probably do something wrong somewhere, perhaps with your theme or another plugin.

    IMHO, a link formated like the one you indicate in your post is unusual. And a register page with over 45 javascript runing is… very unusual too. So i’m not surprised that you have some issues with a custom function.

    Aside, i haven’t seen any description on that page, at least because i’m not logged in ?

    Honestly, I encourage you to hire a dev to configure and optimize correctly your install. If you want to open it publicly in a mounth, it’s not tool late. Once you get memebrs, it will became difficult to repair.

    #238691
    danbp
    Participant

    Deactivate all plugins except BuddyPress and activate 2014 theme.
    See if it works. Then reactivate one by one until you find a culprit.

    danbp
    Participant

    if you’re sure you strictly followed these instructions, enable wp_debug and see which kind of error you get when on the group front-end settings page.

    Can you upload user avatars correctly ?
    Can you upload pictures to Media Library ?

    And last but not least, give your theme name or the site url.

    #238683

    In reply to: Forums on Member Pages

    Marcella
    Participant

    @danbp Thanks for reply.

    Inside of members/single/index.php

    There’s some logic to serve the correct template.

    I notice at the line

    elseif(bp_is_user_forums()) :

    This never actually runs… It’s not until the “// if nothing else sticks” fail safe the logic matches and the plugins template is loaded.

    So two problems… How can I serve my own template, and inside that template how do I query a members topics?

    Basically I’m working with the legacy templates which ship with the plugin to get started with this theme.

    Also, sidenote… BuddyPress seems to inject weird paragraph tags throughout the inner templates if you don’t have the correct template names in your-theme/buddypress

    Only seems to happen when a buddypress folder exists inside the theme.

    #238682
    danbp
    Participant

    I can’t explain better as the Codex. You simply have to follow what’s explained here:

    Twenty Eleven Theme

    #238680
    danbp
    Participant

    You can’t use that function for this contextual menu.

    Use the action hook coming after bp_user_displayed_nav function: bp_member_option_nav to simply add html and your link.

    Try this (add to bp-custom.php or child theme functions.php)

    function lh_custom_setup_nav() {
      if ( bp_is_active( 'xprofile' ) )
    ?>
    <li><a href="<?php bp_members_directory_permalink(); ?>"><?php printf( __( 'All Members', 'buddypress' ) ); ?></a></li>
    <?php  
    }
    add_action( 'bp_member_options_nav', 'lh_custom_setup_nav' );

    Apply CSS to li and a tags accordingly to your theme if necessary.

    Reference file: bp-templates/bp-legacy/buddypress/members/single/home.php

    #238678
    haagsekak
    Participant

    Hello @danbp, I am looking at the solution you provided and trying to work with the instructions.
    I’m still new to PHP and can’t find the .singular body class in the theme’s function.php file that is mentioned in the instructions.
    Not sure what to look for.
    Can you point me in the right direction?
    Thanks

    @mcuk
    Participant

    Thanks @danbp, exactly what i needed to position the counter bubbles! Both snippets worked great.
    I updated the theme_location arg in the second to get it to work with my menu and added an ID to allow the CSS. Thanks again!

    For anyone looking to do the same with the messages and friends request counters, replace the:

    bp_notifications_get_unread_notification_count

    with

    bp_get_total_unread_messages_count or bp_friend_get_total_requests_count as needed.

    #238659
    Henry Wright
    Moderator

    Hi @expbountyhunter

    Do you mean the ‘Home’ item in your navigation? The rest of the text on that page already seems to be white.

    Try adding this to your theme’s style.css document:

    .header .header-inner .nav ul li.current_page_item a {
        color: #fff;
    }

    To learn about CSS, check out this resource:

    https://developer.mozilla.org/en-US/docs/Web/CSS

    danbp
    Participant

    Two snippets to do this (hopefully). The first has a fixed position (latest by default), the second let’s you choose the position.

    function my_nav_menu_notif_counter($menu) {      
            if (!is_user_logged_in())
                    return $menu;
            else
                    $notif = '<li>Notif '. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</li>';
                    $menu = $menu . $notif;
                    return $menu;
    }
    add_filter( 'wp_nav_menu_items', 'my_nav_menu_notif_counter' );
    
    See comment how to apply a position
    function my_nav_menu_positioned_notif_counter( $items, $args ) 
    {
        if( $args->theme_location == 'primary' ) // only for primary menu
        {
            $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, 0, 0, '<li>Notif '. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</li>'); // 0,0 is first position, 1,0 is second, etc
    
            $items = implode('', $items_array);
        }
        return $items;
    }
    add_filter('wp_nav_menu_items','my_nav_menu_positioned_notif_counter', 10, 2);

    Reference: https://developer.wordpress.org/reference/hooks/wp_nav_menu_items/

Viewing 25 results - 6,026 through 6,050 (of 31,072 total)
Skip to toolbar