Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 5,426 through 5,450 (of 31,072 total)
  • Author
    Search Results
  • #244118

    In reply to: Profile Signature

    danbp
    Participant

    It is standard! At least if you use xprofile component to let your users enter their signature.

    1) Create a new field. Call it Signature and give it a textarea type.
    2) Once this field is edited by a user, during registration or later, the signature appears on his profile.

    3) if you want this field somewhere else, for ex on the profile header, you simply write a function to call this field and hook it into the template you want.

    Ie. Add this to child theme functions.php or bp-custom.php

    function my_signature() {	
    if ( bp_is_active( 'xprofile' ) )
       if ( $signature = xprofile_get_field_data( 'Signature', bp_get_member_user_id() ) ) : // field name; case sensitive				
          echo $signature;	
       endif;
    }
    add_filter( 'bp_before_member_header_meta', 'my_signature' );

    Or to use Henry’s advice
    add_filter( 'bp_after_profile_content', 'my_signature' );

    Reference

    User Extended Profiles

    Displaying Extended Profile Fields on Member Profiles

    #244115
    danbp
    Participant

    Please give details about your config: theme, plugin list.
    https://buddypress.org/support/topic/when-asking-for-support-2/

    On a default install, there are no restriction for visitors to see all profiles.
    Have you tested without captcha plugin ?
    Do you use a cache ?
    While testing after been connected as admin, it’s important to ensure that your brower history & cookies are cleared.

    Tafmakura
    Participant

    Found the solution, by placing buddypress.js in my child theme file (childtheme/buddypress/js/buddypress.js) as advertised, the problem was the activity privacy plugin https://wordpress.org/plugins/buddypress-activity-privacy/ this conflicts with my overide, afteruninstalling it my buddypress.js works!!!

    #244103
    shanebp
    Moderator

    If you use Dan’s approach, you want to do it by first making a template overload of the file he links to. And then writing a conditional for the calls to the user link. It will work fine.

    Or you can use the filter hook for bp_activity_user_link() and then you don’t need to touch template files. You could write a filter in theme/functions.php – something like:

    function imborx_profile_link( $link ) {
    
       if( $link != bp_loggedin_user_domain() )
           $link = // custom url
    
       return $link; 
    }
    add_filter( 'bp_get_activity_user_link', 'imborx_profile_link', 15, 1 );
    #244100
    danbp
    Participant

    See template entry.php

    https://buddypress.trac.wordpress.org/browser/tags/2.3.3/src/bp-templates/bp-legacy/buddypress/activity/entry.php

    Caution: modification are preferably done via child-theme.

    #244091
    shanebp
    Moderator

    This is not a gravatar:
    http://chocobento.x10.mx/wp/wp-content/uploads/avatars/1/63d3ab039b099fd772971c5498789561-bpfull.jpg

    You can disable gravatars by adding this to your theme/functions.php
    add_filter('bp_core_fetch_avatar_no_grav', '__return_true');

    #244083
    AilyRoot
    Participant

    Hello

    thanks for this, but I am not looking for customize that tool bar, we want to move that part to somewhere else on to theme though

    #244080
    Henry Wright
    Moderator

    Can you try deactivating all of your plugins whilst you have the TwentyFifteen theme activated? Sometimes a rogue plugin can be responsible.

    #244073
    Henry Wright
    Moderator

    Hey djsteveb

    Thanks for your feedback! As you say it could be a plugin conflict or maybe even a theme issue.

    Not using GitHub isn’t a problem. Once you’ve completed all of your tests, can you post the issues you find on the plugin’s support forum? I’d be happy to take a look

    #244069
    danbp
    Participant

    hi ailyroot,

    no time to sort out what you need, but see here 3 snippets using different wya to add such item to a theme main menu or custom menu, with fixed or free position… Test and take the one you need.

    //fixed 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' );
    
    //choose 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);
    
    // depending the theme, $theme_location may vary and this one use a menu ID
    function my_notif_link( $items, $args ) {
    
    $theme_location = 'primary';// Theme Location slug
    $existing_menu_item_db_id = 6; // menu id
    $new_menu_item_db_id = 66; // unique id number
    $label = 'Notificationas '. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() );
    $url = bp_core_get_user_domain(bp_loggedin_user_id()) .'notifications/';
     
    if ( $theme_location !== $args->theme_location ) {
    	return $items;
    }
    $new_links = array();
    
    if ( is_user_logged_in() ) {
    	  
    	// only if user is logged-in, do sub-menu link
    	$item = array(
    		'title'            => $label,
    		'menu_item_parent' => $existing_menu_item_db_id,
    		'ID'               => 'fugit', // menu name
    		'db_id'            => $new_menu_item_db_id,
    		'url'              => $url,
    		'classes'          => array( 'menu-item' )
    	);
    
    	$new_links[] = (object) $item;  // Add the new menu item to our array
    	unset( $item ); // in case we add more items below
    
    	$index = count( $items );  // integer, the order number.
    
    // Insert the new links at the appropriate place.
    	array_splice( $items, $index, 0, $new_links ); // 0,0 is first position, 1,0 is second, etc
    
    }
    
    return $items;
    }
    add_filter( 'wp_nav_menu_objects', 'my_notif_link', 10, 2 );

    Happy testing 😉

    #244065
    AilyRoot
    Participant

    Hi guys
    we are looking for solution to get buddypress notifications work on our theme, we know it will be shown on wordpress’s default top tool bar but we want it to show somewhere else.

    We are using WP 4.3 with buddypress 2.3.3, we have added these to theme’s functions.php

    
    function bpfr_add_notification_to_page_title( $title, $original_title, $sep  ) {
    	
    	//do not change if the user is not logged in
    	if( ! is_user_logged_in() )
    		return $title;
    	
    	$user_id = get_current_user_id();//logged in user's id
    	
    	$count = bp_notifications_get_unread_notification_count( $user_id );
    	
    	if( $count > 0 )
    		$title = sprintf( "You Have %d New Notification(s) - ", $count );
    	
    	return $title;
    	
    	
    }
    add_filter( 'wp_title', 'bpfr_add_notification_to_page_title', 100, 3 );
    

    then we add these to theme ‘s menu location

    
    <?php echo bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ); ?>
    

    but it is showing nothing, what is the correct steps to make this work please?

    thanks

    #244048
    itslino
    Participant

    @djsteveb It’s not that its a mess.
    I simply used the blankslate theme, then I wrapped the container within the wrapper to allow the menu css3 animation to work.

    BuddyPress is the only thing I’m having issues with, everything else works fine.
    I just can’t tell why buddypress can’t display profiles. So i simply disabled it and am now looking for an alternative.

    #244046
    Paul Bursnall
    Participant

    Make sure this is in your child theme custom css:

    #td-outer-wrap { background-color: #colourhere; }

    #244043
    djsteveb
    Participant

    @itslino – yeah I don’t see much about them in there either – the theme docs are a mess here, and non-existent for 2015 theme as well.

    There was some site that listed a bunch of wordpress code and buddypress code – searchable and such, but I can’t .. wait I think it’s called hookr.io or something – found it – http://hookr.io/plugins/buddypress/#index=a if you type css in the filter box it limits what is displayed – it may help – but not sure. I have no idea how that works, if it’s up to date, and if all bp styling stuff actually has “css” in it’s tag or whatever.

    I guess you could change to 2014 theme and go to each page and right click property inspector and copy the css.. then put that into notepad and search for everything “buddypress” – at least that’s what I have been thinking about doing.. I think there is also some different styles with 2014 and 2015 depending on what screen size you are viewing with – so may hve to check various media queries.. no idea if there is a better way.

    I want to make some custom bp themes, but I can’t even get proper docs on working with latest / best coding practices with the wp default themes at the moment. There is some details on thesis.com err.. themeshaper.com – I think that stuff is out of date though –

    If you get it figured out I’d love to see some info put together on all this.

    #244041
    djsteveb
    Participant

    have you looked into the codex area?
    ( https://codex.buddypress.org/themes/ )

    I have not yet begun to learn all that, so I can’t tell you anything about it.

    Themes and buddypress and me are a challenge to say the least.. especially if you mixin rtmedia plugin.

    Only thing I have been able to do is go back to the 2014 theme and try modding that.

    #244040
    djsteveb
    Participant

    man your theme there has a lot of places where the background color is set.. some for different screen sizes.. some just setting the background for menu and the search box..

    open up your style.css and do a ctrl+f (find) for: background

    start trying different values is all I can guess. I can’t find that particular rule using property inspector or firebug.. maybe you just need to add the rule. (save a copy of your original)

    I’m not really sure, and not a css expert or anything..

    But this isn’t really a byddypress fourm question – it’s more of a question for the theme and plugin designers perhaps.. maybe do some searches for “modifying wordpress themes”

    #244038
    JigmeDatse
    Participant

    With Twenty Fifteen as the theme, and no other plugins enabled, the pages show up entirely blank. I’d really like to be able to use BuddyPress, but right now I don’t see what I can do to fix this.

    Is it possibly an issue with the mod_rewrite either not being enabled on the Apache server, or that the .htaccess is missing something that needs to be in there?

    #244030
    shanebp
    Moderator

    It’s probably more than a css issue.
    Unless somebody else has that exact theme, it’s doubtful you’ll get much help.

    Since it’s a premium theme, try asking the theme author for support.

    #244024
    CarrieOlsen
    Participant

    Thanks for the reply. I figured it was incompatibility with the theme. Any suggestions on a fix without having to change themes? Like something that can be done with the CSS?

    #244021
    shanebp
    Moderator

    It’s probably an issue with your theme.
    To confirm, try switching to a WP theme like 2015.

    #243995
    VeeLow
    Participant

    Sadly, I’m not here with an answer, but another manifestation of this same problem.

    Am running WordPress with bbpress and BuddyPress, Twentyfourteen theme, everything updated except I’ve not yet gone to BuddyPress 2.3.3.

    My login is “Prof L”; so is my user name. To the best of my knowledge I’ve set “admin” nowhere in BuddyPress……but to private message me, “@admin” is required!

    Update: OK, I see that in email settings, one of the options reads as follows:

    A member mentions you in an update using “@admin”

    So somehow that has been set to my “handle” (is that the right BP term?) But again, I never to my knowledge entered “admin”, nor does it display anywhere on the front end of the site.

    I will try the plugin mentioned up thread, and report back–but wanted to testify that this problem is real and ongoing….

    #243985
    shanebp
    Moderator

    afaik, there is no option.
    Try this in your theme/functions.php

    function larnoult_remove_bbpress_notifications() {
        remove_action( 'bbp_new_reply', 'bbp_buddypress_add_notification', 10, 7 );
    }
    add_action( 'bbp_loaded', 'larnoult_remove_bbpress_notifications', 99  );

    You may need to tweak the priority settings.
    https://codex.wordpress.org/Function_Reference/remove_action

    #243974
    Henry Wright
    Moderator

    I added some comments asking the main group to seriously consider BP and other plugins when choosing next default theme

    Nice one @djsteveb! I hope TwentySeventeen takes BuddyPress into consideration too.

    Henry Wright
    Moderator

    To the best of my knowledge, you can’t have 2 themes activated at the same time. You should choose a WordPress theme and then make use of the BuddyPress Template Hierarchy to customise the BuddyPress portion of your website.

    #243972
    alisterho
    Participant

    Hi Shane, yes I have just switched to the theme Twenty Fifteen and still not showing the fields I have inserted in the Primary Group.

Viewing 25 results - 5,426 through 5,450 (of 31,072 total)
Skip to toolbar