Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 12,226 through 12,250 (of 69,016 total)
  • Author
    Search Results
  • #243297
    RecAgenda
    Participant

    So then, if I can get some clarification, what’s it talking about on this page with:

    per_page optional
    The number of messages to display on a page before they are paginated to the next page.

    • Default value: 10

    If that’s as obvious as I think it is, then where I can find that in my files?

    maelga
    Participant

    +1

    I only found this old thread but with broken links unfortunately: https://buddypress.org/support/topic/member-profile-url-with-user-id-instead-of-username/

    So any input would be appreciated.

    #243291
    Splendorito
    Participant

    Hi Henry,

    I was able to fix this. It was in w3tc, I had combined certain files, and forgot to set up templates for buddypress.min.js in the minify options, the thing is that it started in the latest version of BP, before I never had any troubles with it.

    #243282
    danbp
    Participant

    Hi @recagenda,

    you can’t enable this, because it doesn’t exist. I could be wrong, but so far i know, private conversation are not paginable.

    Reference file is bp-templates\bp-legacy\buddypress\members\single\messages\single.php

    https://buddypress.org/support/topic/pagination-private-message-thread/ @henrywright

    #243253
    danbp
    Participant

    Reference file: buddypress\bp-groups\bp-groups-widgets.php

    To make your own version of the widget: https://codex.wordpress.org/Widgets_API

    HTML definition target="_blank"

    Or maybe this plugin ?
    https://wordpress.org/plugins/bp-extend-widgets/

    #243249
    danbp
    Participant

    @sismis,

    Howdy [username] is part of WordPress Toolbar. When BP is activated, it add a sub-menu to this menu.

    If you want it elswhere, it’s not really possible as the BP part of it was written to go to the admin_bar only.

    To get a similar menu, you simply add buddypress menu to your theme main menu (explained on above codex link). But this menu will be static and you cant get same details.

    Another solution is to recode that menu, so you can add it with a filter function to wp_nav_menu, which handles the main menu or the header menu.

    To do this, you can use a new Walker Class extention or the existing filter. Possibly also some other ways to do this, but i don’t know them.

    To remove the Howdy menu and the attached BuddyPress Profile sub menu from the Toolbar, you can use this snippet (in functions.php or bp-custom.php):

    function bpfr_remove_my_account_menu() {  
        global $wp_admin_bar;  
        $wp_admin_bar->remove_menu('my-account');  
    }  
    add_action( 'wp_before_admin_bar_render', 'bpfr_remove_my_account_menu' );

    Codex References
    https://codex.wordpress.org/Function_Reference/wp_nav_menu
    https://codex.wordpress.org/Navigation_Menus

    djsteveb
    Participant

    I would GUESS that you could edit that plugin to add in the code as mentioned above https://buddypress.org/support/topic/how-users-can-link-to-their-profile/

    Or ask the plugin author for clarification.

    I stopped using that plugin when they added the extra security stuff for strong passwords that broke things for me.. however the plugin’s support page is pretty active, and given that he/she has options for redirecting users after login based on role – there may be an easy way to add such functionality to the plugin by asking the plugin author.

    There is a bit of info with some of the functions here ->https://codex.buddypress.org/themes/members-navigation-menus/

    I see others are asking about bp xprofile fields and such within the them my login support forum,
    ( wordpress.org/support/plugin/theme-my-login )
    so hopefully this plugin author will add more and more BP options – I enjoyed using that plugin some time ago – hope it continues to mature.

    #243238
    djsteveb
    Participant
    #243231
    manicexpression
    Participant

    Forgive me if I’m just making a mistake, I’ve never tried what you’re suggesting, in the link you sent me, it asks me to go to this directory,

    /bp-templates/bp-legacy/buddypress/

    But when I go there, there’s no Template file to copy, just more folders.

    Thoughts?

    #243229
    djsteveb
    Participant
    danbp
    Participant

    @djsteveb +1 !


    @atfpodcast
    ,

    – you go to your menu dashboard and select the menu of your theme (if exist, it should be there)
    – you open screen option (top right) on menu admin and select BuddyPress
    – you select profile in the left column where BuddyPress appeared and give it a title XYZ
    – save and you’re done !

    Now you have a XYZ button near Home, About and whatever is already on your theme menu.
    Doc is here https://codex.buddypress.org/getting-started/buddypress-links-in-wordpress-menus/

    #243227
    shanebp
    Moderator

    You could create a template overload of this file:
    bp-templates\bp-legacy\buddypress\members\single\notifications.php

    Then wrap the current markup with this conditional: bp_is_my_profile()

    #243225
    manicexpression
    Participant

    For the moment, as a temporary fix, I have completely removed the Notifications.php file from

    public_html/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/notifications.php

    djsteveb
    Participant

    same question asked by someone else hours ago (Also on front page currently)?
    https://buddypress.org/support/topic/how-users-can-link-to-their-profile/

    which is same as 4 days ago as pointed out by others – https://buddypress.org/support/topic/how-users-can-link-to-their-profile/

    I think(?)

    #243209
    djsteveb
    Participant

    @darkhelmet1 – settings -> buddypress -> third tab near top is “settings”
    first checkbox: Show the Toolbar for logged out users

    Is it checked?

    Which theme are you using?

    Any other plugins installed / activated?

    #243204
    danbp
    Participant

    This question was asked 4 days ago here:
    https://buddypress.org/support/topic/how-users-can-link-to-their-profile/

    And some other search result you can read also, here:
    https://buddypress.org/support/search/bp_get_loggedin_user_link/

    Finally, question is: which menu are you talking about ? Give details please.

    #243190
    Henry Wright
    Moderator

    This is simply the way your theme displays things on the page. If you’d like a sidebar on those pages, you can modify the templates. See the Template Hierarchy article for more info.

    #243188
    Markus Echterhoff
    Participant

    Found the culprit and the fix here in case anyone encounters the same issue: https://codex.buddypress.org/themes/buddypress-companion-stylesheets/#existing-styled-themes

    #243180
    Halo Diehard
    Participant

    I am using the theme Matheson, but I tested it on Twenty Ten with all plugins deactivated except BuddyPress and it still happens.

    #243179
    djsteveb
    Participant

    first test with default 2014 or 2015 theme – and all other plugins disabled except bp – does it work then? If not…

    previous forum posts maybe helpful –
    (let us know what you find works!)

    With a new bp setup I usually check these things first if email are not seeming to send or go through ->https://buddypress.org/support/topic/activation-e-mail-failing-to-send/#post-241079 (From a recent similar thread)

    Better to check the basics before digging into whether it’s a email header config on the server, php settings limiting functionality – need for wp to send as smtp plugin – something just with gmail blackhole filtering –

    so many different things can affect wp sending, bp sending, your web serving sending email as php, or an email service accepting something that was sent, much less put in the actual inbox instead of junk mail / promotions box or whatever…

    =-=- also from danbp about 8 months ago:
    When encountering a registration problem, first thing to do is to test your install without any plugins and one of WP’s Twenty default theme. Ensure that your site send correctly emails. Before activating any plugin, your base WP install must work.

    Once WP is OK – you can install BuddyPress and check your permalinks. Pretty permalinks must be activated to get the plugin working correctly.

    This point is important, especially if you have redirection issues after BP is activated.

    Second point to check is your theme installation.

    Proceeding like this will help you to isolate easely the culprit. If:
    – WP install: OK
    – BP install: OK
    – theme activation: problem

    So you know here the problem comes from.

    While testing your install, you can activate wp_debug (set to TRUE) in the wp-config file. This can give you a lot of information about conflict and/or errors.

    Just keep in mind that these information have 2 levels of importance: notice and warning.
    While notice are generally harmless, warnings should be taken seriously in account and solved.

    If WP is the problem, see first the wordPress support
    If it’s BuddyPress, see the BP support
    If it’s the theme, see the theme support
    If it’s any other plugin, see first the plugin support.

    #243161
    chicho1969
    Participant

    Thanks @danbp ,
    I´ll try to explain you:

    I have a custom_post_type (celebrities). it real name is “famosos”.
    BuddyPressUsers can mark any celebrity as fasvourite.
    This part is working fine.
    So now, I am trying to send a notification (to users that have marked as favorite certain celebriry) that “today” is that celebrity´s birthday.

    For that purpose, I have a SQL query that works fine and gives me an array with budypress user id and the celebritie post id. (this is also working fine)

    SO I have to setup a custom notificationa that checks every day that SQL QUery to gets users and celebrities ids to notify user about today´s birthday (of their favourite celebrities)

    and this is what I did at first:

    define( 'BP_ACTIVITY_CELBIRTHDAY_SLUG', 'celbirthday_notifier' );
    function celbirthday_notifier_setup_globals () {
    	
    	$bp = buddypress();
    	
    	$bp->celbirthday_notifier = new stdClass();
    	$bp->celbirthday_notifier->id = 'celbirthday_notifier'; //I asume others are not going to use this is
    	$bp->celbirthday_notifier->slug = BP_ACTIVITY_CELBIRTHDAY_SLUG;
    	$bp->celbirthday_notifier->notification_callback = 'celbirthday_notifier_format_notifications'; //show the notification
    	
    	$bp->active_components[$bp->celbirthday_notifier->id] = $bp->celbirthday_notifier->id;
    
    	do_action( 'celbirthday_notifier_setup_globals' );
    }
    
    add_action( 'bp_setup_globals', 'celbirthday_notifier_setup_globals' );

    and then try to format the notification:

    function celbirthday_notifier_format_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
     if ( 'new_birthday' === $action ) {
                    $famoso_name =  get_the_title( $secondary_item_id );
    		$subject = 'Celebrity birthday';
    		$message = 'Say happy birthday to $famoso_name';
    		$content = 'Tody is $famoso_name birthday .....somethin else ';
    		if ( (int) $total_items > 1 ) {
              $text = sprintf( __( 'You have %d celebrities birthday', 'bbpress' ), (int) $total_items );
              $filter = 'bp_activity_at_message_notification_message';
          } else {
              if ( !empty( $secondary_item_id ) ) {
                  //nada
              } else {
                  $text = sprintf( __( 'You have %d new birthday of %s', 'bbpress' ), (int) $total_items, $famoso_name );
              }
              $filter = 'bp_activity_at_message_notification_message';
          }
    	 }
          if ( 'string' === $format ) {  //falta definir $famoso_link y mas 
              $return = apply_filters( $filter, '<a href="' . esc_url( $famoso_link ) . '" title="birthday anounce">' . esc_html( $text ) . '</a>', (int) $total_items, $text, $famoso_link );
    		// $message = apply_filters( 'bp_activity_at_message_notification_message', $message, $poster_name, $content, $message_link, $settings_link );
    
    } } do_action( 'celbirthday_notifier_format_notifications', $action, $item_id, $secondary_item_id, $total_items );

    and then add notification this way:

    function buddypress_celebrities_add_notification( $fecha_act,  $famoso_name, $receiver_user_id) 
    {    if ( bp_is_active( 'notifications' ) ) { 
    
    	$fecha_act = date("Y-m-d");
    	$res_birth = $wpdb->get_results( "SELECT wp_best_favs.user_id, wp_postmeta.post_id
    					FROM wp_best_favs
    					LEFT JOIN wp_postmeta ON ( wp_postmeta.post_id = wp_best_favs.celeb_ID ) 
    					WHERE (
    					wp_postmeta.meta_key =  'fecha_na')
    					AND (DAY(  <code>wp_postmeta</code>.<code>meta_value</code> ) = DAY(  '$fecha_act' ))					AND (MONTH(  <code>wp_postmeta</code>.<code>meta_value</code> ) = MONTH(  '$fecha_act' )							)
    									") ;
    			$res_birth = array_filter($res_birth);  
    			$matriz = objectToArray($res_birth);  //convertimos el array de objetos en array normal para manejarlo mas facil
    			$current_time = bp_core_current_time();
    			if(count($matriz)==0) { 
    				// está vacío 
    				}  else { 
    					global $wpdb;
    					$bp = buddypress();
    					$subject = 'Celebrity birthday';
    					$message = '1 Say happy birthday to $famoso_name';
    					$content = '2 Say happy birthday to $famoso_name';
    					foreach ($matriz as $v1) {
    					
    						$famoso_id = $v1[post_id];
    						$famoso_name = get_the_title ($v1[post_id]);
    						$receiver_user_id = $v1[user_id];
    						
    					$args = array(
    							'user_id'           => $receiver_user_id,
    							'item_id'           => $famoso_id,
    							'secondary_item_id' => $famoso_id,
    							'component_name'    => $bp->celbirthday_notifier->id,
    							'component_action'  => 'new_birthday',
    							'date_notified'     => $current_time,
    							'is_new'            => 1,
    	       					 );
    							 
    							 bp_notifications_add_notification( $args );
    						 
    			}	}  }	} add_action( 'new_birthday', 'buddypress_celebrities_add_notification', 10, 1 );

    so far this is what I am trying to do, hope you understand.
    Thanks in advance.

    #243160
    kostasbarkas30
    Participant

    thanks @danpb. buddypress is really great!!! thanks again for your advises.

    #243157
    danbp
    Participant

    hi @kostasbarkas30,

    i even tried to copy some functions from bp default theme in my functions php theme but still nothing.

    Revert back to the original install by deleting that custom work. then follow @djsteveb advice.

    Keep in mind that you should never install something on WordPRess before WP is working correctly. Same thing when you add, let’s say BuddyPress. In this case, WP and BP should work flawlessly together. Once you hace the built your house, you can add the wallpaper. OMG ! Like IRL ! 😉

    That way, it’s much easier to debug if an issue occurs. 1 is ok, add 2. 1 & 2 are ok. Add 3. 1 & 2 & 3 are ok, and so on.

    Note also that BP-Default theme is no more maintained and is only in for backward compatibility. BuddyPress works on slightly any theme !

    BP has no theme, just some templates with minimal styles. This stuff is stored in bp-templates/bp-legacy/buddypress/. If you need to modify some theme functions, you do it from within a child-theme, in which you copy what you want to change from bp-legacy.

    All this and more, is explained on Codex. Don’t hesitate to read through it, if you’re new to BP !

    We all started a day. Rome wasn’t built in one day. It’s a Long Way to Tipperary . Facebook is unique and BuddyPress is great. Hold on, it’s just the begin ! 🙂

    #243156
    danbp
    Participant

    I mean what you wrote in your first example:
    function setup_globals( $args = array() ) {...}

    The right way is the one indicated on codex and by @henrywright on stackexchange. (in fact, the same snippet).

    The question now is, what do you want to notify to a user ? You’re testing, ok, but what’s your purpose ? We need an activity ! For example, is celebrities (in your first topic) a custom post type ?

    The example on Codex tells a user he was mentionned. This is now built in BP, so it’s no more representative of how to insert a non core activity. It shows you only the way to do it, and you can’t use it by simply copy/pasting.

    #243151
    djsteveb
    Participant

    @kostasbarkas30 – disable all other plugins except buddypress.
    might want to add another user just in case that’s an issue.
    switch to 2014 theme or 2015 theme.
    these “buttons” you are talking about may be tabs, or text – sometimes across the top, with the updated 2014 and 15 I think they are styled to be a side tab kind of display.

    If they display on the default themes and not the one from linash – then you will need to contact them and ask why.

Viewing 25 results - 12,226 through 12,250 (of 69,016 total)
Skip to toolbar