Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 29,601 through 29,625 (of 94,565 total)
  • Author
    Search Results
  • #170618
    Henry
    Member

    Just read through your original question. The code snippet you’d want to add to your theme’s functions.php is something like this:

    function bp_my_restrict() {
       global $bp;
       $user_id = bp_loggedin_user_id(); 
       $user = new WP_User( $user_id );
    	
          if ( bp_is_current_component('members') || bp_is_current_component('activity') ) {
    
             if ( ( $user->roles[0] != 'administrator' ) ) {
                wp_redirect( $bp->loggedin_user->domain );
    	    exit();
    	 }
          }
    }
    add_action('wp','bp_my_restrict');
    #170617
    Henry
    Member

    Try this

    <?php
    
       $user_id = bp_loggedin_user_id(); 
       $user = new WP_User( $user_id );
       
       if ( $user->roles[0] != 'administrator' ) {
         // your code
       }
    
    ?>
    clifinc.net
    Participant

    Hey friends! I just installed Buddypress, but I’m having some difficulty trying to make it appear as I would wish.

    I want the Activity Streams, Groups and Members and Forums to show up on a different page other than the Homepage. I have a blog on my homepage and would like the above components to show up on a static page.

    Is there any way I can go about this?

    #170615
    Squirrel
    Participant

    There is still a problem though in that if I do this it stops any member who is not an admin level user accessing their profile page. Not sure why it should affect that- tried with just the activity conditional and it stops profile page access as well.

    elseif (bp_is_current_component( 'members' ) || bp_is_current_component( 'activity' )) :
    get_header('restrict');

    I’m using a header-restrict.php which redirects them with this redirect at the very top of it:

    <?php if(!current_user_can('delete_others_pages')) { wp_redirect( home_url() ); exit; } ?>

    Any ideas?

    #170613
    Squirrel
    Participant

    Thanks for your help Henry- I tried the is_page conditional but it does not work with the BuddyPress Pages.

    So I tried bp_is_Page which worked, but was depecated.
    Then I tried
    bp_is_current_component( 'activity' ) || bp_is_current_component( 'members' )
    and they work for what I want.

    Thanks for your feedback it helped a lot 🙂

    Chris

    #170611
    Henry
    Member

    You could use the WordPress conditional is_page() to check if the user is on the activity or members page:

    if ( is_page('members') || is_page('activity') ) {
    
    } else {
    
    }

    Note: I’m assuming you haven’t changed the default slugs

    #170610
    Squirrel
    Participant

    Hi there

    I am working on a personal project making a private client portal with BuddyPress.
    I’ve made a child theme for Twenty Thirteen that does this- thanks to the new update to BuddyPress that lets any theme use buddypress out of the box.
    It uses page templates to assign whether pages are private or public. If they are private it directs non logged in users to the login page.
    I have multiple headers for different levels of privacy that are assigned to different page templates.

    I just wondered if anyone could help me solve a problem.

    I wanted to make it so that the members page and general activity page’s could be made so that only an admin or editor could view them but page templates don’t seem to work with these pages.

    I’ve used conditionals for certain areas of BuddyPress to force certain headers: e.g.

    elseif (bp_is_user_profile() || bp_is_user_activity() || bp_is_user_groups() || bp_is_user_blogs() || bp_is_user_friends() || bp_is_user_messages() || bp_is_user_forums() ):
    get_header('restrict-profile');

    I think that would work with the activity and members page but I’m not sure what the conditionals are for those.

    Please could someone help?
    Thanks

    #170608
    diaritoch
    Participant

    Hello,

    We use buddypress as a our learning management system. We have changed the groups into courses. Initially, creating groups and adding the respective moderators was working perfectly well. Till we had to import the students through the database, we can no longer add users via Add Groups or the backend. And we can no longer add users to the existing groups either. Actually, when we create a group (this is after the import of the users via the database), I see that it’s been created but it doesn’t show up in the list of groups and I, despite being the administrator who created the new group, isn’t even a member of that new group I just created.

    We really need this to work because school is back and students rely on their courses.
    I would appreciate any help I can get.

    Many thanks in advanced!

    We are using Buddypress 1.8
    Wordpress Version 3.6
    site is http://www.fxw.org

    #170594
    eflouret
    Participant

    Thanks! It worked! I can´t believe that I spent almost four hours trying to figure this out and all I needed was to set the parent slug and url.

    I moved the Buddypress member templates to my theme, inside a directory named Buddypress just because I needed to do some heavy tweaking. This way the templates stay with the main theme and since I uploaded BuddyPress from WordPress control panel, I don´t have permissions to make changes to the templates. I can use the internal wordpress plugin editor, but that would drive me crazy.

    Do you think that moving the templates to the main theme is wrong? Is there a better way to make changes to the templates code? Buddypress template system is like ancient chinese to me.

    Thanks again!

    Enrique

    #170583
    Henry
    Member

    It is easily done. You’d need to create a new page template:

    https://codex.wordpress.org/Page_Templates

    You can then use a modified members loop inside the page template you create:

    Members Loop

    #170581
    eflouret
    Participant

    Hi, this has been asked a lot but in the 90% of the cases the requests are left unsolved (not only here but on other forums too).

    I created a new tab in the members template and it shows as desired. But when I click on the link it loads a page similar to the members root but without a header. Anyway, it doesn’t matter what it shows. The problem is that it doesn’t show what I expected.

    A few considerations:

    1) I copied all the member directory to a buddypress directory in my wordpress theme, so it is like this: /wp-content/themes/mytheme/buddypress/members

    2) I pasted my code in the functions.php file

    3) I’m using BuddyPress 1.8.x

    4) I want the content to load inside the members tempalate. Just like a plugin. Sorry, but I can’t provide a link to my site (is a password protected work in progress).

    here’s the code:

    	function my_bp_nav_adder()
    	{
    		bp_core_new_nav_item(
    			array(
    				'name' => 'My Trips',
    				'slug' => 'mytrips',
    				'position' => 75,
    				'show_for_displayed_user' => true,
    				'screen_function' => 'my_trips_link',
    			));
    	}
    	function my_trips_link () {
    		add_action( 'bp_template_content', 'show_content' );
    		bp_core_load_template( apply_filters('bp_core_template_plugin',  'members/single/plugins' ));
    	}
    	
    	
    	function show_content() {
    	echo 'This is a test';
    	
    	}
    	add_action( 'bp_setup_nav', 'my_bp_nav_adder' );
    

    Thanks!

    Enrique

    #170577
    Roger Coathup
    Participant
    #170574
    aperson555
    Participant

    I’m totally new to buddypress and don’t know where to start. Can you give me any advice.

    How does the template structure work?

    Can I get users to sign up and never see the dashboard panel? I want to login users like facebook- not like site administrators.

    Please give feedback. I know I’m asking stupid questions but I’ve got to start somewhere.

    #170570

    In reply to: Registration Process

    Henry
    Member

    Your theme’s functions.php file wouldn’t get overwritten with each update. The changes you make to this file will be safe going forward.

    A great place to hire a BuddyPress developer would be the BP Jobs Board:

    BP Jobs Board

    #170568

    In reply to: Registration Process

    tayenewm
    Participant

    But wouldn’t I run into the same problem with every theme update? I don’t know code and don’t like diddling in it. Maybe I need to just hire a developer to resolve all my little issues. Does BuddyPress offer dev services? Where do I go to sign up? thanks

    #170556
    bp-help
    Participant

    Please do not make duplicate topics that regards the same subject matter as it clutters the forum. @mercime and @modemlooper has already responded on the first topic here:
    https://buddypress.org/support/topic/charge-a-fee-to-upload-media/
    If their suggestions doesn’t work the only options you have is build this functionality yourself or hire a developer to do it for you. You may want to post on the jobs board:

    BP Jobs Board


    or here:
    http://jobs.wordpress.net/
    Good luck!

    #170549
    tayenewm
    Participant

    I would like to change the default registration process to the following:

    1. New member registers (currently free)
    2. Email is sent to new member with login password and invite to complete their profile.

    I can’t figure out how to customize the activation email. Please let me know.
    thanks,
    taye

    I am using BuddyPress 1.8.1 with S2Member 130816 with WordPress 3.5.2.

    #170546
    alamar77
    Participant

    Hi to all,

    I have a big problem with buddypress…

    bp 1.5.1
    wp 3.5.2

    I can’t access the member page, i got the 404 error.

    The core of buddypress was changed and i can’t upgrade to new version, but with the version 3.5.1 of wp everything wordked…

    Anyone have any suggestions?

    #170545
    studiopeter
    Participant

    I’m having the same issue.
    Is there a solution yet ??

    Regards,
    Peter

    jeffp808
    Participant

    Hello,
    I’m new to buddypress groups and I’m not sure if there’s a setting that I need to change or if there’s something I’m doing wrong. I am trying to have the option so someone can post a message on the wall of the group and have the admin be able to post an announcement. For Announcements I received this message: “As administrator in Language Exchange, you can post announcements to the group’s activity stream.” But when I am logged in as administrator I can not post announcements there. Here’s a screenshot: http://screencast.com/t/IdDJ3g97k

    On the wall of the group it shows updates, but I can post post an update on message there. http://screencast.com/t/xJOMqXuIT

    Any help would be greatly appreciated!

    Thanks!
    Jeff

    #170536
    SCnetworks
    Participant

    Hello Community – am looking for advice first and then probably technical help as I go along (probably hire a consultant maybe) …

    I have in my head that creating a very large BuddyPress site is best devided by multisite? I will have a common target user base (the kind of user who will sign up), but multisite will give me the ability to build specific sub-domains / sites with targeted content and ads and other for specific cities?

    Am also thinking I can have common Groups – where one multisite user can contibute and meet others from other multisites? Say a user in Maimi, FL can meet someone in San Francisco by a common Group forum I set up in the Home site (domain root site)? For ex: user in miami.mydomain.org has the same Black Lab as user in sanfancisco.mydomain.org and they talk about the best exersize, traits, etc.. under the Pets => Black Lab Forum. They then can become BuddyPress friends and communicate across sites? Then – in my Miami site, I can advertize Vet serivces local to Miami and visa versa a la San Fran?

    I have all the latest installs: BuddyPress 1.8.1, WordPress 3.6, etc.. Am I on the right track, or, is another platform better suited to my idea?

    I think it’s one large DB (which can get VERY large) – but am I thinking correctly and better yet, should I ask for professional help in setting up? Has anyone done this before?

    Thanks in adance – Steve.

    koomak
    Participant

    I get a 404 error while requesting to join a private group in buddypress 1.8.1.

    Could you please check this?

    I have Multisite WP 3.6.

    jaemaz
    Participant

    Hey there,

    When navigating to the “Discussion Forums” WordPress-Page (BP Groups Forum used) only WordPress Admins can see the threads for Private Group Forums they are members in. Normal Users only see the threads from Public Groups, but not from Private Groups they are a part of. That doesn’t seem right.

    This issue was discussed at length in this topic (relating to BP 1.5.1), and it looked like a solution/patch was eminent, but then nothing. Then the TracTicket for this item was closed with a “wontfix” citing that the functionality was included in BBPRESS 2.

    So where does that leave users of legacy groups? Any insight would be greatly appreciated.

    BUDDYPRESS 1.8.1
    WPRESS 3.6

    #170526
    bp-help
    Participant

    @megainfo
    Thanks for the info. I will give it a try!

    #170519
    terraling
    Participant

    Sorry @funmi-omoba, I didn’t quite get your question, but here is the code I added to my functions.php based on earlier answers:

    function my_add_friend_link_text($button) {
    	switch ( $button['id'] ) {
    		case 'pending' :
    			$button['link_text'] = 'x Pending';
    			$button['link_title'] = 'Cancel friend request';
    			$button['link_class'] .= ' btn btn-xs btn-warning';
    		break;
    
    		case 'is_friend' :
    			$button['link_text'] = '- Unfriend';
    			$button['link_class'] .= ' btn btn-xs btn-danger';
    		break;
    
    		default:
    			$button['link_text'] = '+ Friend';
    			$button['link_title'] = 'Send friend request';
    			$button['link_class'] .= ' btn btn-xs btn-success';
    	}
    	return $button;
    }
    add_filter('bp_get_add_friend_button', 'my_add_friend_link_text');
    

    I’m changing the link text, changing the title, and adding additional classes (I’m using bootstrap and wanted the buttons styled the same as elsewhere, though that means deleting the generic button styling from buddypress.css)

    Hope that helps.

Viewing 25 results - 29,601 through 29,625 (of 94,565 total)
Skip to toolbar