Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 15,951 through 15,975 (of 69,016 total)
  • Author
    Search Results
  • danbp
    Participant

    Do you think that I have to add my modified bp-legacy files to my parent theme as well?

    For sure. If you don’t, the next BP update will overide this folder. Golden rule: never touch/modify any of the original plugin files.
    Any change you make is to do in the child-theme, including the legacy files you added to it.

    Theme Compatibility & Template Files

    You could also revert back, and try this function ( add it to child-theme’s functions.php)

    function bpfr_filtering_activity( $retval ) {
    	// activities to filter on, comma separated
    	$retval['object'] = 'status';		
    		return $retval;
    	}	
    add_filter( 'bp_before_has_activities_parse_args', 'bpfr_filtering_activity' );

    Read here for more details.

    Hi @danbp,
    Thanks for helping me out with this. I’m not so worried about the css issue right now, I’m going to get that squared away after I can get this content filter to work. Do you think that I have to add my modified bp-legacy files to my parent theme as well?

    The only file that I’ve changed in the bp-legacy/buddypress/activity folder is activity-loop.php, and I only changed line 3 to the following:

    <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ).'&object=status' ) ) : ?>

    #187288
    danbp
    Participant
    #187273
    SAPinfoASAP
    Participant

    Hi,

    Unfortunately that doesn’t work as I intended. It creates a widget on the side (that is somewhat buggy), however it doesn’t automatically subscribe people to aweber when they register for an account in my forum.

    I have done a lot of digging and have found that gravity forms can integrate with aweber, though I’m not sure how this would work with buddypress. Can you use gravity forms to replace the buddypress default registration page?

    danbp
    Participant

    hi @stingray1972,

    How to get different infos in 21 group sidebars for Dummies.

    TIP-OFF: we won’t built 21 sidebars, but only 21 different informations useable from within 21 groups.

    We assume you have a theme with at least one sidebar and that this sidebar is visible when you’re on a group page.
    We assume also that you have a child-theme, because we’re going to add some modification to it. And this must be done in a child or you loose any changes at the next theme update.

    Now that we have set the stage, let’s go further.

    1) we have a sidebar
    2) we need a place to set our extra information
    3) we need a function to insert the info at the right place

    You follow ? Not to hard ? Ok, let’s continue…

    – Make a copy of the original sidebar.php of your theme into the child-theme folder.
    – open the copy and search in the code something like this: dynamic_sidebar( 'sidebar' )
    – underneath you paste this:

    <?php if ( bp_is_groups_component() ) : 
    			do_action( 'xtragroup' ); 
    		endif; ?>

    – save the file.

    Bravo ! You have installed a new placeholder in the widget area.

    The result should look like this:

    
    	<div id="tertiary" class="sidebar-container" role="complementary">
    		<div class="sidebar-inner">
    			<div class="widget-area">
    				<?php dynamic_sidebar( 'sidebar-2' ); ?>
    				
    <?php if ( bp_is_groups_component() ) : 
    			do_action( 'xtragroup' ); 
    		endif; ?>	
    	 
    			</div><!-- .widget-area -->
    		</div><!-- .sidebar-inner -->
    	</div><!-- #tertiary -->

    (example shows the code of the Twentythirteen widget area)

    – open the child-theme functions.php (if not exist you have to create it)

    – add the following snippet and save the file.

    function xtra_group_sidebar() {
    	
    	// conditionnal - group name (slug format) - item
    	if(bp_is_groups_component() && 'kill-bill' == bp_current_item() ):
    	// your content
    		echo 'what time is it Bill ? ' ;
    		$my_date = date('H:i'); echo $my_date; 
    	endif;
    	
    	if(bp_is_groups_component() && 'groupe-2014' == bp_current_item() ):
    		echo 'who knows ?';
    	endif;
    	
    	if(bp_is_groups_component() && 'rrrrrrrr' == bp_current_item() ):
    		echo 'Groaaaar...';
    	endif;
    }
    add_action( 'xtragroup', 'xtra_group_sidebar' );

    – Be carefull: the snippet handles only 3 group.
    – You have to add 18 more and change the names to those you use.
    – Simply replicate for each the if (bp_is_groups_component(), the echo (or anything else) and the endif
    – upload to the server and enjoy !

    EFD (end for dummies)

    #187270
    jreeve
    Participant

    In case anyone else runs into this issue, I’ve created issue #5827 here: https://buddypress.trac.wordpress.org/ticket/5827#ticket

    #187264
    danbp
    Participant

    Hi @heatherkirk,

    if you installed BuddyPress, what is the forum you use ?

    BuddyPress Components and Features

    #187262
    heatherkirk
    Participant

    Actually, I have buddypress installed, rather than bbpress :-). I had a look for buddypress associated widgets, but did not find what I was looking for.

    Henry Wright
    Moderator

    Hi @laxmanvel

    This functionality isn’t available in BuddyPress by default. You may have some luck searching the WP plugin repo although I haven’t seen anything like this myself. Let us know if you find anything!

    #187254
    danbp
    Participant

    I need a pages for members that will let them send each other messages

    if you enable BP’s Private message component, the built-in message system will let each user send message to other members.
    https://codex.buddypress.org/buddypress-components-and-features/messages/

    Except if i misunderstood you, i don’t see the utility to add an extra page for this.

    Depending of which plugin you use to manage events, a subscribe to event page is most probably included in the plugin.

    If messaging and event are your only need, you’re going overcomplicated for the moment. The only thing you have to do, i think, is to install correctly a theme and to check that BP is showing properly on it.

    Once done, you can eventually customize the theme. But only if it doesn’t fit exactly with a event plugin. For the messages, if BP is ok, messages will be also ok.

    Foundation first. The house after and the wallpaper at the end of the end !

    #187253
    MrMarkG
    Participant

    Henry – thanks for spotting that. I’ll fix it.

    DanBP – maybe if I explain what I am trying to do, you can explain whether I am veering of course or not.

    Basically I am creating a paid membership site. I will have 4-5 pages outside of BP (that I am currently using regular WP for) that will advertise the site, then I need a pages for members that will let them send each other messages and also sign up for events. If I understand what you are saying, I would then have one page called “buddypress.php” that would manage this functionality?

    Many thanks for your help. I’ll read the links you sent me and I’m also working my way through BuddyPress Theme Development as I have a Safari Account via work.

    Regards,

    Mark

    #187251

    In reply to: register.php

    sachin550
    Participant

    Thank you @mercime for you reply !! i have modified both the files with my custom text but still getting the same default message !!

    Registering for this site is easy, just fill in the fields below and we’ll get a new account set up for you in no time.

    plugins/buddypress/bp-themes/bp-default/registration/register.php
    bp-templates/bp-legacy/buddypress/members/register.php

    thank you

    #187243

    In reply to: register.php

    @mercime
    Participant

    For this i have modified /wp-content/plugins/buddypress/bp-themes/bp-default/registration/register.php


    @sachin550
    Are you using the BP Default theme or a child theme of BP Default? If not, then you should not modify that file. Instead, create a child theme of your WP theme of choice, create a folder named buddypress in that child theme folder and copy over https://buddypress.trac.wordpress.org/browser/trunk/src/bp-templates/bp-legacy/buddypress/members/register.php following the directory structure and revise it.

    #187242

    In reply to: register.php

    sachin550
    Participant

    Thank you for your reply !! i have tried with both files

    plugins/buddypress/bp-themes/bp-default/registration/register.php
    bp-templates/bp-legacy/buddypress/members/register.php

    But still i am getting same

    Registering for this site is easy, just fill in the fields below and we’ll get a new account set up for you in no time.

    Where this line are calling from ?

    #187239

    In reply to: Edit BP Pages

    @mercime
    Participant
    #187238
    @mercime
    Participant

    but that doesn’t work right


    @gregfielding
    What exactly doesn’t work right? No styles or a blank page or error? Have you checked out the articles listed at https://codex.buddypress.org/themes/theme-compatibility-1-7/?

    #187232
    danbp
    Participant

    I guess the top right name is made with echo $user->display_name;

    As you added an ELSE clause after the UL end tag, it would probably be better to hide the whole UL to avoid html errors to not logged visitors.

    Invert

    <ul class="nav navbar-nav navbar-right">
    	  <?php if ( is_user_logged_in()) : 

    to this

    <?php if ( is_user_logged_in()) : 
    <ul class="nav navbar-nav navbar-right">

    You have a page.php in the wordpress themes (2012, 2013, 2014).

    You make a copy and rename it buddypress.php and load it into your custom theme.

    If not already done, i recommend you to read attentively this on WP codex:
    https://codex.wordpress.org/Theme_Development
    and also this

    BuddyPress Theme Development

    Theme Compatibility & Template Files

    #187229

    In reply to: register.php

    aces
    Participant
    #187225
    MrMarkG
    Participant

    Is there an example page.php or buddypress.php in the BP install that I could copy into my theme? I didn’t see one.

    The name on the top right comes from my own toolbar which uses bootstrap styles:

      <nav class="navbar navbar-default" role="navigation">
      <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
        </div>
    
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse navbar-inverse navbar-fixed-top" id="bs-example-navbar-collapse-1">
          <ul class="nav navbar-nav">
    	    <?php wp_list_pages(array('title_li' => '')); ?> 
          </ul>
    	  <ul class="nav navbar-nav navbar-right">
    	  <?php if ( is_user_logged_in()) : 
    			  // get the currently logged-in user
    			$user = wp_get_current_user(); ?>
    			<li><a href="<?php echo bp_loggedin_user_domain(); ?>"">
    			<button type="button" class="btn btn-info">
    			<span class="glyphicon glyphicon-envelope"></span> 
    			<span class="badge"><?php bp_total_unread_messages_count() ?></span>
    			</button>
    			<?php // echo the user's display_name
    			 echo $user->display_name; ?>
    			 
    			  </a>
    			</li>
    			</ul>
    	  <?php else: ?>	
          <form class="navbar-form" role="login">
            <div class="form-group">
              <input type="text" class="form-control" placeholder="User Name">
    		  <input type="text" class="form-control" placeholder="Password">
            </div>
            <button type="submit" class="btn btn-default">Login</button>
          </form>
    	  </ul>
    	    <?php endif; ?>

    Again, if I’m doing the toolbar wrong, let me know, but I have a very particular style guide I need to use.

    Thanks very much!

    Mark

    #187210
    Cyril Batillat
    Participant

    Thanks @henrywright

    I have managed to add additional fields on comment form. Now my goal is to pass the values of these new fields in the ajax call, to be able to use some hooks like ‘bp_activity_comment_posted’ and more…
    That’s why I’m asking the best way to pass additional data.

    Thanks you for directing me on Trac, I created a new ticket.

    #187209
    Henry Wright
    Moderator

    Hi @cyrilbatillat

    What data were you planning on passing?

    I don’t want to modify the core of BuddyPress, so is there an other way to do this ?

    No but you could try asking the guys over at Trac if they could extend what data can be passed. If they agree, the changes usually take a minor version or two to make it into core but until then you could apply the patch to your own installation.

    Henry Wright
    Moderator

    If you’re using BuddyPress 2.0.2 with WordPress 3.9.2 with no plugins activated or even installed in the plugin folder and the Twenty Fourteen theme enabled then everything should work fine as this is a tried and tested combo. The only variables left are a) your server and b) your database.

    Perhaps try rolling back your database? And also make sure there has been no changes on your server since you noticed the issue.

    Henry Wright
    Moderator

    @micasuh humm. Perhaps try grabbing a fresh copy of the BP plugin code? https://wordpress.org/plugins/buddypress/

    Something may have become corrupted in the actual plugin.

    Henry Wright
    Moderator

    @micasuh the .mo file is most likely being loaded from your theme’s functions.php file. Alternatively, it may be loaded from a plugin. Or, maybe even bp-custom.php (if you have one of those).

    Look for something such as the following and try removing it to see if it resolves the issue:

    if ( file_exists( WP_LANG_DIR . '/buddypress-en_US.mo' ) ) {
        load_textdomain( 'buddypress', WP_LANG_DIR . '/buddypress-en_US.mo' );
    }

    If it doesn’t resolve the problem then we know your translation file is OK.

    If you still believe the issue is a virus in your database then you could try rolling back. Do you keep database backups? But, to be honest, I’m more inclined to think this is occurring as a result of some rogue theme or plugin code.

    1a-spielwiese
    Participant

    I don’t know, whether this is possible in the administration area.

    But may you can adapt this for your purposes:

    https://buddypress.org/support/topic/add-profile-field-to-order-by-drop-down-menu/

    I guess, to order the members due to a certain field implies to see, whether it is filled in or not.

Viewing 25 results - 15,951 through 15,975 (of 69,016 total)
Skip to toolbar