Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 18,201 through 18,225 (of 94,565 total)
  • Author
    Search Results
  • #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.

    #244098
    shanebp
    Moderator

    BuddyPress and bbPress are different plugins.
    bbPress has it own spport forums.
    In wp-admin, under Settings, you should links for: BuddyPress, Forums
    In wp-admin, in the main nav column, you should see links for: Forums, Topics, Replies
    There is no path ‘…/bb-admin’

    #244097
    AilyRoot
    Participant

    Hi

    we run latest wordspress 4.3 +bbpress 2.5.8+buddypress 2.3.3 and we are just told that

    “bbPress also has admin side, and there you can easily remove large number of topics filtered by forum or user”

    I did google and someone say admin panel path is /bb-admin ? but it shows 404 and I do see it on top menu bar either

    is there any any admin panel for bbpress/buddypress or it is just integrated with wordpress’s admin?

    #244096
    imborx
    Participant

    Hi,

    I would like to point to another custom url when someone click in the profile of anybody instead of going to his buddypress profile. How can I do it?

    I need that in the activity stream

    #244089

    In reply to: PM – reply by email?

    Henry Wright
    Moderator

    That plugin completely crashed my site

    Ouch!

    The developer of that particular plugin is a BuddyPress core developer so if you open an issue on the plugin’s GitHub repo, he should be able to help 🙂

    Youngtive
    Participant

    Sorry forgot some information!

    WP: 4.2.4
    Buddypress: 2.5.8

    Youngtive
    Participant

    Hi everybody,

    I am having a problem with the profile fields in buddypress. After searching through the forum I found out that this line of js:

    
    <script>
    jQuery(document).ready(function($){
    $('#field_156').attr('minlength', '9'); 
    $('#field_156').attr('maxlength', '14');
    });
    </script>
    

    was needed to give a maxlength of characters to a profile field (I included the minlength myself). I added this line of code underneath at the footer.php just above the </body>. And this is working excellent in Chrome! However this isn’t working on either Firefox or the new Edge browser from Microsoft. I am kinda stuck at this point. Wondering if any of you guys can help me 🙂

    Sorry for my bad english if thats the case!

    Kind Regards,

    Youngtive

    #244076

    In reply to: PM – reply by email?

    Henry Wright
    Moderator

    You’d need a plugin for this. Check out BuddyPress Reply By Email.

    #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

    djsteveb
    Participant

    “when user reply or comment on any post” – when I hear that I think of replying to a post in wordpress language, which is a chrono blog post, and not a ‘static “page” ‘ – however I am going to assume you mean replying in the various comment reply places all throughout buddypress; like activity comments, group updates, etc.

    I am confused by what you are saying, but it’s only becuase I have no clue about how any of these things work. I’m still trying to learn php and then going to try to learn how wp and bp actually works – and that looks like it’s gonna take a long time.

    However now that you have provided some details I am sure one of the much smarter people around here will be able to guide you in the right direction.

    developer
    Participant

    thanks @djsteveb for replying
    i am looking for a do_action hook so that i hook my customize function during the post button is clicked when user reply or comment on any post
    actually i am placing a captcha in buddypress comment which is done
    look what i do here…

    //action hook to display captcha in comments.
    add_action(“bp_activity_entry_comments”,”function_for_display_captcha”);

    but i need hook for validation of that captcha.

    i hope you are not confused this…

    djsteveb
    Participant

    @ajaysingh-1
    man – there is post_comment, post_update – and a bunch of others on the hookr io page
    http://hookr.io/plugins/buddypress/#index=a

    not sure what you mean post button comment section..
    hmm.. section on the site-wide activity page?
    via private message emails / replies?

    hmm.. group replies?

    I don’t know anything about the functions and code actually – but hopefully the hookr info will help ya, or this comment will help you detail what exactly you are looking for – so if someone does know about this code they will know more about what you mean..

    developer
    Participant

    need a hook which is called during click of comment button
    i want to call my custom function during click of post button of comment section of buddypress?
    please can anyone help me out there???

    #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

    #244059
    brantb15
    Participant

    There were a few actions that I was trying to hook into, but they don’t register as actions. I used include plugins_url() . '/buddypress/bp-activity/bp-activity-functions.php';, but even with that, it still doesn’t come back as an action when I use has_action

    #244055

    Topic: Profile Signature

    in group forum Third Party Plugins
    maxmore88
    Participant

    Looking for a way to add a signature to the profile within buddypress. I have seen a few posts on this, some are poorly explained, tried a couple but nothing is working. Anyone found a simple way to do this?

    #244054
    Ingram_AV_98
    Participant

    Cool, awesome, wicked.
    As with everything BuddyPress over the last four months I figured it out myself.

    If anybody cares or is intrigued, I pulled out the “signup_id” from the wp_signups table and created a link with that, of the form:

    <?php
    	//== Setup variable for use in the activation email body.
    	$user = get_userdata( $user_id );
    
    	//== Get the signup_id for a user
    	global $wpdb;
    	$signup_id = $wpdb->get_var( "SELECT signup_id FROM wp_signups WHERE user_login = '" . $user->user_login . "' LIMIT 1" );
    
    	$user_path = "users.php?page=bp-signups&signup_id=" . $signup_id . "&action=activate";
    	$activate_user = admin_url( $user_path );
    ?>

    This link is a part of the filter for the activation email body, whilst the email itself was also filtered to be sent to the site admin instead of the user.

    If anybody is interested I’m happy to share the full solution which involved filtering the activation email recipient, email subject and email body, whilst giving the admin a link to activate the user and then sending a confirmation email to the user once they’ve been authorised.

    #244052
    danbp
    Participant

    By default, when using BP’s site wide activity component and if user is logged in, you’ll see a Fav/Unfav button under each activity. This means that you can fav/unfav an activity, not directly a post.

    codex - activity stream screenshot

    To get a similar button near a blog post, you’re no more on the activty page and need to add a separate code. Read from here how to do this. More or less…

    WP Favorite plugin is not made to work with BuddyPress, just aside.
    Edit: you’re lucky, found this topic how to make it work.
    https://wordpress.org/support/topic/wp-favorite-posts-and-buddypress

    #244051
    IdeationDevelopment
    Participant

    Hi All,

    I’m new to BuddyPress, but would like to use it on a site I’ve developed recently.

    I’m specifically looking for the ‘Favorites’ Activity Stream, per client request. After install, I checked my blog posts, but was unable to find the ‘Favorites’ button. There is a ‘Favorites’ in a dropdown on a post, but that is just for Chrome, and when you click it the activity stream still shows up as blank.

    I’ve tried WP Favorites plugin already. I’m now not sure what else to do.

    Could anyone help me out? The site in question is: http://www.trochia.org.

    Thanks so much.

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

    #244047
    chriotte
    Participant

    Hi, I’m creating a page where I want to list all members and then let the users filter them by for example location by checking checkboxes.
    I created a quick mockup in photoshop of what I’m creating.
    mockup

    I’m working in the members-loop.php and my code works backend, my problem is to connect to front-end. Firstly I have an empty array of locations I want to filter by $locationValg. If I manually add a location, let’s say Oslo (The capital of Norway) to the Array, the loop spits out users wich have set the location to Oslo. So the code itself works. Prior to starting, I heard that you could connect front-end to the back-end by using Ajax and jQuery.
    After hours of trying and googling I’m not able to figure this out. Right now I’m just debugging with a button to echo out some words from a PHP function to see if it works, but ultimately I want the users to check the box “Oslo”, and The script add Oslo to my $locationValg array and rerun the script.

    This is my members-loop (a bit messy right now after hours of testing). The code is semi-Norwegian and English, so sorry for the confusion.

    Any advice for a PHP-Wordpress-Buddypress starter? 🙂

    <?php
    
    /**
     * BuddyPress - Members Loop
     *
     * Querystring is set via AJAX in _inc/ajax.php - bp_legacy_theme_object_filter()
     *
     * @package BuddyPress
     * @subpackage bp-legacy
     */
    
    ?>
    
    <?php
    
    $locationValg = array();
    setVerdier();
    
    if(isset($_POST['action']) && !empty($_POST['action'])) {
        $action = $_POST['action'];
         switch($action) {
            case 'test' : setEcho();break;
            case 'post' : setEcho();break;
    
            // ...etc...
        }
    setVerdier();
     }
    
    function setEcho(){
    	echo"trykket på knapp";
    }
    
    function setVerdier(){
    
    global $locationValg;
    
    /*$locationValg[] = "Oslo";
    $locationValg[] = "Telemark";
    $locationValg[] = "sd";
    echo $locationValg[1]; */
    lagListe();
    }
    
    /**
     * Fires before the display of the members loop.
     *
     * @since BuddyPress (1.2.0)
     */
    function lagListe(){ 
    		
    global $locationValg;
    
    do_action( 'bp_before_members_loop' ); ?>
    
    <?php if ( bp_get_current_member_type() ) : ?>
    	<p class="current-member-type"><?php //bp_current_member_type_message() ?></p>
    <?php endif; ?>
    
    <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) : ?>
    
    	<div id="pag-top" class="pagination">
    
    		<div class="pag-count" id="member-dir-count-top">
    
    			<?php //bp_members_pagination_count(); ?>
    
    		</div>
    		<input type="submit" value="Last side" id="lastsideBtn"/>
    		<div id="sorteringsvalg"> 
    		<h2> Sorter artister</h2>
    		<ul>
    		<label for="oslo">Oslo</label>
    		<li><input type="checkbox" id="oslo" name="Oslo" value="Oslo"/></li>
    		</ul>
    
    		</div>
    		<div class="pagination-links" id="member-dir-pag-top">
    
    			<?php //bp_members_pagination_links(); ?>
    
    		</div>
    
    	</div>
    
    	<?php
    
    	/**
    	 * Fires before the display of the members list.
    	 *
    	 * @since BuddyPress (1.1.0)
    	 */
    	do_action( 'bp_before_directory_members_list' ); ?>
    
    	<ul id="members-list" class="item-list"> 
    
    <?php
    $numbersOfLocationsChecked = count($locationValg);
    
     while ( bp_members() ) : bp_the_member(); ?>
    	
    	<?php //$brukerType = bp_member_profile_data('field=Type');;
    
    //	echo 'brukertype:' . $brukerType;	
    
    $user = new WP_User( bp_get_member_user_id() );
    $userLocation = bp_get_member_profile_data('field=Område'); 
    //dele opp basert på komma
    $ordSomSkalDeles = $userLocation;
    $oppdeltOrd = explode(',', $ordSomSkalDeles);
    $antallOppdelteOrd = count($oppdeltOrd);
    //echo("Lengde" . $numbersOfLocationsChecked);
    //echo "Arrayinnhold: " .  $locationValg[1];
    //echo "Lokasjon fra profil: " . $userLocation;
    
    //This will check if the users hasent cheked anything, and prints all data
    if($numbersOfLocationsChecked == 0){
    	//print alt
    	//I know, this is not good coding with the same lines copy pasted
    if ( $user->roles[0] == 'subscriber' ){ ?>
    		<li <?php bp_member_class(); ?>>
    			<div class="item-avatar">
    			<a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar('type=full&width=100%&height=180'); ?></a>
    		</div>
    			<div class="item">
    				<div class="item-title">
    					<a href="<?php bp_member_permalink(); ?>"><?php bp_member_name(); ?></a>
    				</div>
    					<div class="item-title">
    					<a href="<?php bp_member_permalink(); ?>"><?php bp_get_member_type($user_id); ?></a>
    				</div>
    				<div class="musikertype">
    					<span><?php bp_member_profile_data('field=Type'); ?></span>
    				</div>
    				<div class="musikerlokasjon">
    					<span><?php bp_member_profile_data('field=Område'); ?></span>
    				</div>
    				<div class="musikerprissjikte">
    					<span><?php bp_member_profile_data('field=Prissjikte'); ?></span>
    				</div>
    
    				<?php
    				/**
    				 * Fires inside the display of a directory member item.
    				 *
    				 * @since BuddyPress (1.1.0)
    				 */
    				do_action( 'bp_directory_members_item' ); ?>
    
    				<?php
    				//bp_member_profile_data('field=Type');
    				 /***
    				  * If you want to show specific profile fields here you can,
    				  * but it'll add an extra query for each member in the loop
    				  * (only one regardless of the number of fields you show):
    				  *
    				  * bp_member_profile_data( 'field=the field name' );
    				  */
    				?>
    			</div>
    
    			<div class="action">
    
    				<?php
    
    				/**
    				 * Fires inside the members action HTML markup to display actions.
    				 *
    				 * @since BuddyPress (1.1.0)
    				 */
    				do_action( 'bp_directory_members_actions' ); ?>
    
    			</div>
    
    			<div class="clear"></div>
    		</li>
    <?php } 
    	//Ferdig med å printe ut alt
    }else{
    	//print kun field med riktig område
    	for($i = 0;$i< $numbersOfLocationsChecked;$i++){
    		for($x = 0;$x < $antallOppdelteOrd;$x++){ 
    		//echo("oppdelte ord før løkke " . $oppdeltOrd[0] );
    		$omrade = str_replace(' ', '', $oppdeltOrd[$x]);
    		//echo("oppdelte ord før løkke område " . $omrade . " SLUTT");
    		$omradeFraValgt = str_replace(' ', '', $locationValg[$i]);	
    		$printet = false;	
    		if($omrade===$omradeFraValgt){
    		//	echo("oppdelte ord fra løkke " . $oppdeltOrd[$x] );
    			//printing only data where the lcoation is selected
    			if ( $user->roles[0] == 'subscriber' ){ ?>
    		<li <?php bp_member_class(); ?>>
    			<div class="item-avatar">
    			<a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar('type=full&width=100%&height=180'); ?></a>
    		</div>
    			<div class="item">
    				<div class="item-title">
    					<a href="<?php bp_member_permalink(); ?>"><?php bp_member_name(); ?></a>
    				</div>
    					<div class="item-title">
    					<a href="<?php bp_member_permalink(); ?>"><?php bp_get_member_type($user_id); ?></a>
    				</div>
    				<div class="musikertype">
    					<span><?php bp_member_profile_data('field=Type'); ?></span>
    				</div>
    				<div class="musikerlokasjon">
    					<span><?php bp_member_profile_data('field=Område'); ?></span>
    				</div>
    				<div class="musikerprissjikte">
    					<span><?php bp_member_profile_data('field=Prissjikte'); ?></span>
    				</div>
    
    				<?php
    				/**
    				 * Fires inside the display of a directory member item.
    				 *
    				 * @since BuddyPress (1.1.0)
    				 */
    				do_action( 'bp_directory_members_item' ); ?>
    
    				<?php
    				//bp_member_profile_data('field=Type');
    				 /***
    				  * If you want to show specific profile fields here you can,
    				  * but it'll add an extra query for each member in the loop
    				  * (only one regardless of the number of fields you show):
    				  *
    				  * bp_member_profile_data( 'field=the field name' );
    				  */
    				?>
    			</div>
    
    			<div class="action">
    
    				<?php
    
    				/**
    				 * Fires inside the members action HTML markup to display actions.
    				 *
    				 * @since BuddyPress (1.1.0)
    				 */
    				do_action( 'bp_directory_members_actions' ); ?>
    
    			</div>
    
    			<div class="clear"></div>
    		</li>
    <?php } 
    
    		$printet = true;
    		//slutt på løkka som skal sjekke profil ord
    		} else{
    
    			//echo $omrade . " og " . $omradeFraValgt . " er ulike";
    		}
    			//Stopper løkka dersom den printes ut siden det kan være flere med samme lokasjon
    			if($printet == true){
    				break;
    			}
    
    		}
    	}
    
    }
    
    	endwhile; ?>
    
    	</ul>
    
    	<?php
    
    	/**
    	 * Fires after the display of the members list.
    	 *
    	 * @since BuddyPress (1.1.0)
    	 */
    	do_action( 'bp_after_directory_members_list' ); ?>
    	<?php bp_member_hidden_fields(); ?>
    		<div class="pagination-links" id="member-dir-pag-bottom">
    			<?php //bp_members_pagination_links(); ?>
    		</div>
    	</div>
    
    <?php else: ?>
    
    	<div id="message" class="info">
    		<p><?php _e( "beklager, ingen funnet", 'buddypress' ); ?></p>
    	</div>
    
    <?php endif; ?>
    
    <?php
    
    /**
     * Fires after the display of the members loop.
     *
     * @since BuddyPress (1.2.0)
     */
    do_action( 'bp_after_members_loop' );
    
    } ?>
    
    <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
    <script type="text/javascript">
    
    var testBtnClick = function()
    {
    /* $.ajax({
                //url: '_inc/ajax.php',
                success: function(data) {
                  alert("fikk til");
                }
            }); */
    
    $.ajax({ 
    	url: '/members-loop.php',
             data: {action: 'test'},
             type: 'post',
             success: function(output) {
                          alert("GÃ¥tt gjennom");
                      }
    		});
    
    }
    
    document.getElementById('lastsideBtn').onclick = testBtnClick;
    
    </script>
    
    
    #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.

    #244042
    itslino
    Participant

    I’ve been looking at it, but I don’t see anything about manually adding buddypress or id/class names that BuddyPress relies on

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

Viewing 25 results - 18,201 through 18,225 (of 94,565 total)
Skip to toolbar