Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'custom activity page'

Viewing 25 results - 176 through 200 (of 728 total)
  • Author
    Search Results
  • #255581

    In reply to: Buddypress

    kizzpatrick
    Participant

    Thank Sharmavishal,

    I would like to provide the dashboard or a private page for the group where only users of that group will be able to download the package, it’s not digital download it is just a zipped folder they will have to download.

    the problem with BuddyPress is that when you create a private group, they can be seen by other users who aren’t in the group even though they can’t view their information but due to competition purpose I don’t want to allow other members to see all the groups. I want only members who are in that group to be able to see their group and I would like to allow the group administrator to add users on the front page, not by invitation. I would also like to remove that site activity panel because I don’t want to appear like a social network and I don’t want to allow comment.

    is there a plugin or a way to customize BuddyPress to meet with this requirement
    Thanks

    #255336
    danbp
    Participant

    @daltontastic,

    color buttons are TinyMCE tools and not html tags. The only way to get them would be to use the editor toolbar.

    Here a scenario you could use:
    – create a child-theme and add post-form.php to it (copy from bp-templates/bp-legacy/buddyPress/activity/post-form.php).
    Result: your-child-theme/buddypress/activity/post-form.php

    In that file, go to line:40 where textarea start.
    Inser this action hook:

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

    Then add this <?php if ( ! bp_is_groups_component() ) : ?>
    <textarea class="bp-suggestions"......bla...bla...</textarea>
    and add <?php endif ?> after the textarea closing tag.

    This contionnals will show a custom area for the desired group and prevent update area to appear on all other groups home pages.

    So if a user is member of different groups, he will get a texteditor for group_id 13 and the normal update area on all others.

    The custom template is ready. Now the fonctions we need.

    Open bp-custom.php (or create it) and paste in those snippets.

    Adding the texteditor:

    function bpfr_whats_new_tiny_editor() {
    	// deactivation of the visual tab, so user can't play with style tools
    //add_filter ( 'user_can_richedit' , create_function ( '$a' , 'return false;' ) , 50 );
    
    $content = "";
    
    	// building the what's new textarea
    	if ( isset( $_GET['r'] ) ) :
    	$content = esc_textarea( $_GET['r'] ); 
    	endif;
    
    	// adding tinymce tools
    	$editor_id = 'whats-new';
    
    	$settings = array( 
    			'textarea_name' => 'whats-new', 
    			'teeny' => false, 
    			'media_buttons' => true, 
    			'drag_drop_upload' => true, 
    			'quicktags' => array(
    			'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close'
    		));	 
    	
    	// get the editor	
    	wp_editor( $content, $editor_id, $settings );
    }
    add_action( 'whats_new_textarea', 'bpfr_whats_new_tiny_editor' );

    A simple function who add the original textarea for users who are group members, but not allowed to rich edit.

    function my_textarea() { ?>
    			<textarea class="bp-suggestions" name="whats-new" id="whats-new" cols="50" rows="10"
    				<?php if ( bp_is_group() ) : ?>data-suggestions-group-id="<?php echo esc_attr( (int) bp_get_current_group_id() ); ?>" <?php endif; ?>
    			><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_textarea( $_GET['r'] ); ?> <?php endif; ?></textarea>
    <?php
    }

    And the last one, where you set up the group allowed to publish updates using edit tools.

    function trotro() {
    
    if ( bp_is_groups_component() ) :
    
    $check = groups_is_user_member( bp_loggedin_user_id(), bp_get_group_id() );
    $check_group = bp_get_group_id(); 
    
    	if ($check != 0 && $check_group == 21 && 'leon' == bp_current_item() ){
    		echo 'Wow! You can rich edit in this group.';
    			bpfr_whats_new_tiny_editor();
    	} else {
    		echo 'Sorry, you cannot rich edit in this group';
    		my_textarea();
    	}
    
    endif;
    }
    add_action( 'blablabla', 'trotro' );

    Now, any member which is part of the group leon, group id 23 can publish updates and use the color picker and all other things which are on the edit bar.

    Only thing you have to do is to adjust leon and id to your rules.

    Successfully tested on 2.6 and 2016.

    May this help you to go further with your BuddyPress project. 🙂

    #254221
    ineedyou
    Participant

    Dear @danbp

    Maybe i should explain more detail. And what i want to do…I really must solve this future of my project 🙂 Sorry long sentences really sorry

    BP update via what’s new form and add embed is working. No problem.
    Our members can create new post (food) with toolset types on frontend. They can add image or video or custom fields. when anyone visit abc.com/foodarchive and click food 1 and open new window and Ok can see everything. At the moment, this published new post displaying on buddypress activity (also can added filter with bp-custom.php)… Buddypress activity display all kind food post body such as if there is only text show text, if there are text+image, ok BP activity show this also… At the moment, if only text and no image but author add featured image, well BP also show text+this featured image on activity stream… But never show video on activity stream if its in post body…

    I dont undestand (because i am copypaste coode user) how can BP update via add form can show embed video but not display video from custom post embed? No way to solve this?

    Why? Because my member want to see video on activity stream before visit this post. BP just show MRx Published new Food..

    If i use Visual composer (extension add on pluging) features add youtube video to post, yes this is showing embed video on buddypress activity.But this is problem because when anyone click bp show filter and turn back another filter (comment to post, or post to updates or group updates), visual composer short codes broken and display like this [vc]textblock[vc]. If refresh page, yes eveything normal, so my theme remove shortcodes from visual composer.

    Thanks for giving your time…

    #254042
    sharmavishal
    Participant

    How did you install buddupress? This is a custom theme right? You see activity page in your pages? In settings-buddypress have you activated activity component? Have you associated your activity page in the pages setting of buddypress?

    #254020
    ineedyou
    Participant

    Sorry for my english…
    I can show everything about Music CPT buddypress activity (site-wide and members activity) with below code by @imath -also thanks for all other plugings 🙂 –

    My Question or Problem.

    I am using types tools pluging and i have a – frontend – add new music form (about music CPT) and members use this form to add new music with different fields. Also using rich editor and can add media from URL… Buddypress activity stream can show this form body (actually show post body normally). If i add also image from URL to this frontend music CPT form, we can see this image also on buddypress activity. Well i love buddypress.. Flexiable, great..

    1 – But if i add video URL on this form do not show embed video on activity stream. I mean that, i tried 100 times frontend or backend, embed video (if use in any CPT) do not show on buddypress. When i click this activty open page and i can see video. I know missing something.

    2 – If my author create any music CPT –backend admin side– with Visual Composer, there 3 different actions.

    Action:1 – First, Buddypress activty show all font color or image, or texts created by visual composer. Its ok. Love buddypress. But when i select (site-wide or members activty) show post, friendship or comment than turn to everything or music cpt, buddypress now do not display this music CPT, so i must refresh the page. I mean that when a user select everything to post (or comment) or commet to everything: page must otomatically refresh to display my visual composer codes. If i dont refresh the page, activiy stream show like that [vc_row][vc_column][vc_text][/vc_column][/vc_row].

    Action 2: When i edit this CPT -backend and created by VC-, buddypress sometimes dont load any activity.. If i delete this post from again backend, everything is ok, all activity is coming back. I dont know how try search this on forum.

    Action 3: I am on backend admin and creating a new music CPT without visual composer.. No problem, all edit can show on buddypress again. Such as i shared music 3 hours ago but now editing. I can see this new edit when i scroll actvity page 3 hours ago… BUT, What i want, buddypress activtiy can create a new music post (for this edit) and can say “edited music” … Maybe we can put icon or color original (3 hours ago) cpt, also same time can create clone music for same cpt 🙂 on activity stream… I dont know how to search this 🙂

    Long sentences long, i know 🙂 … Maybe someone help me… Becuase i am not developer just copypaste code user 🙂

    add_post_type_support( 'music', 'buddypress-activity' );
    function customize_page_tracking_args() {
        // Check if the Activity component is active before using it.
        if ( ! bp_is_active( 'activity' ) ) {
            return; }
         bp_activity_set_post_type_tracking_args( 'music', array(
            'component_id'             => 'activity',
            'action_id'                => 'new_music',
            'bp_activity_admin_filter' => __( 'My Music', 'custom-domain' ),
            'bp_activity_front_filter' => __( 'Music', 'custom-domain' ),
            'contexts'                 => array( 'activity', 'member' ),
            'bp_activity_new_post'     => __( '%1$s published <a href="%2$s">Music Suggest</a>', 'xxx' ),
            'bp_activity_new_post_ms'  => __( '%1$s published <a href="%2$s">Musik/a>, on the site %3$s', 'xxx' ),
                   
           
        ) );
    }
    add_action( 'init', 'customize_page_tracking_args', 1000 );
    #253811
    shanebp
    Moderator

    You’ll probably want to create a new page and then load a custom template.

    In your custom template, you’ll need to create an Activity loop with the parameters that you want.

    Sounds like this is your first time performing these tasks.
    Give it a serious and thorough attempt and see how far you can get.
    If you get stuck, use gist or pastebin to share the code in your custom template.

    Please do not paste all the code on these forums.

    #253546
    subair.tc
    Participant

    hi @henrywright , @danbp

    Thanks for your great help,

    i have solved the issue without hacking the code using the

    bp_activity_paged_activities_sql

    filter in class-bp-activity-activity.php ~L, 609

    the code below is i have used, please refer this thred , where i got some information regarding filters.

    add_filter( 'bp_activity_paged_activities_sql', function( $sql, $where_sql, $sort ) {
    	$pos = strpos($sql, 'WHERE a.id IN');
    	if($pos){
    		$in_items = implode( ',', $where_sql['in'] );
    		$sql = str_replace('ORDER BY a.date_recorded DESC' ,' ORDER BY FIELD(id,'.$in_items.') ',$sql);
    	}
    	
        return $sql;
    }, 10, 3 );
    
    

    Thanks again for your valuable time and please let me know any suggestions you have 🙂

    #253362
    Ben Riga
    Participant

    Yup. Thanks. I already had my CPT working in BP using the methods described in that codex page. It was posting to the Activity stream. What was not working was having the ability to customize what information showed up in the stream. I think some of that was due to my using Pods to dynamically generate the CPTs (and of course some of it could be due to my lack of knowledge).

    At any rate, I had hit some limits in Pods anyway so it’s time to learn how to manually code those. It doesn’t look too complicated (famous last words :)) so I think it should just take me a couple of days.

    Thanks again,
    Ben

    #252456
    danbp
    Participant

    We’re unable to help you for Yoo Helios premium theme.

    Have you assigned a particular template to the mandatory BP pages: activity, members, groups,… ? If yes, remove them, as BP pages must stay “empty”. Just give them a title and nothing else.

    Instead of using an exotic function, better try this solution.

    is_buddypress fn definition: You can tell if a page is displaying BP content by whether the current_component has been defined. More here.

    #251464
    danbp
    Participant

    I’m afraid you can’t built another member’s directory. “Members” is a component and it use a dynamic page to output anything related to members.

    The only thing who change, is eventually the content template part (member directory vs. profile for example: both activity are on the same pseudo “page”.

    The only way i see for your case, is to add a custom filter and to define eventually another default output for member directory, based on the current filter. But it’s the user who has to choose what he want to see there.

    Default filter are recently active, recently subscribed and alphabetical order. To add more option, included “artists”, try to add “member type” or create you r own plugin to filter.

    Here the related codex page for member-type

    And codex page for how to add a filter on members directory.

    For the @ use, the correct way to use it is when you want to mention (@mention) somebody. And so far i can see this here, it doesn’t actually work on bp.org ! 😉

    So just keep in mind that you publish on a public forum. It is not intended to call mods individually. We’re not consultants here (we don’t charge you), but simple volonteers trying to guide and help other users.

    ngoegan
    Participant

    And just to make sure I cover all my bases, here are my answers:

    1. Which version of WordPress are you running?
    4.4.2

    2. Did you install WordPress as a directory or subdomain install?
    Not sure, but I think as a directory.

    3. If a directory install, is it in root or in a subdirectory?
    root I think

    4. Did you upgrade from a previous version of WordPress? If so, from which version?
    No

    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
    Yes.

    6. Which version of BP are you running?
    2.5.1

    7. Did you upgraded from a previous version of BP? If so, from which version?
    Yes, the one before it.

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
    Yes, Akismet, BBpress, Buddypress Edit Activity, Buddypress Forum Editor, Buddypress Group Email Subscription, Buddypress Like, Dynamic Widgets (deactivated), Events Made Easy, Events Made Easy Frontend Submit, Hashbuddy, InfiniteWP CLient, rtMedia, Theme My Login, Wanguard, Wordfence Security, WP SMTP

    I did deactivate all of them except wordpress and the register page worked, I then activated Buddypress and the redirect issue began.

    9. Are you using the standard WordPress theme or customized theme?
    Twemty Twelve

    10. Have you modified the core files in any way?
    I modified Footer.php on WordPress to edit copyright

    11. Do you have any custom functions in bp-custom.php?
    I don’t know

    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
    2.5.8

    13. Please provide a list of any errors in your server’s log files.
    The error log looks blank. Maybe I’m looking at the wrong thing?

    14. Which company provides your hosting?
    Hostgator

    15. Is your server running Windows, or if Linux; Apache, nginx or something else?
    Basic Trouble Shooting:
    I don’t know. Maybe Apache?

    #249732
    Andrew Tibbetts
    Participant

    To be clear, and provide further details to demonstrate that this hasn’t been answered previously, I’m looking to have 2 nav items in every group: Forum, Members.
    In that order, with the default page being Forum.
    I have achieved the default page being Forum with this:

    add_filter( 'bp_groups_default_extension', 'custom_bp_groups_default_extension' );
    function custom_bp_groups_default_extension() { return 'forum'; }

    But, again, when Activity Stream is disabled, Members becomes Home.
    So right now my nav is: Home, Forum
    I need a way to tell Home to revert to Members and go below Forum in the nav.

    #248779
    shanebp
    Moderator

    Please do not bump threads.

    You omitted an ‘&’ in this:
    <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ).'&scope=just-me,friends,groups,favorites,mentions&per_page=15&action=friendship_created,joined_group,activity_update' ) ) : ?>

    You’re including all the default params for scope. Why include them at all?

    There are other ways of filtering the activity loop:
    https://codex.buddypress.org/developer/using-bp_parse_args-to-filter-buddypress-template-loops/
    https://codex.buddypress.org/plugindev/add-custom-filters-to-loops-and-enjoy-them-within-your-plugin/

    #248639
    Andrew
    Participant

    Resolved. Turns out WordPress page conditionals are not true during ajax requests. You can create conditionals using wp_get_referer() as a workaround. I created my own conditional, if anyone wants to create a page conditional to filter a custom activity loop with the parse args filter, here is a good starting point:

    //for page 'test-1'
    unction bp6801_is_test_1_page() {
        $is_test_1_page = false;
    
        if ( is_page( 'test-1' ) ) {
            $is_test_1_page = true;
        } elseif ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
            $referer_page_id = url_to_postid( wp_get_referer() );
            $referer_page = get_post( $referer_page_id );
            if ( $referer_page instanceof WP_Post && 'test-1' === $referer_page->post_name ) {
                $is_test_1_page = true;
            }
        }
    
        return $is_test_1_page;
    }
    #248394

    In reply to: Private Pages Glitch?

    burger0815
    Participant

    @fscbmwcca

    thanks for the comment. If I understand correctly then the option:
    allows an admin to select which Post types and BuddyPress Components are private
    seems to indicate that things like the activity component or the member community component
    could be set private.
    Did you test the plugin?

    The sentence:
    provides a Private checkbox in the upper right corner of every page, post, and custom post type selected in Settings

    is a bit irritating, finally that feature exists already in a standard BP wordpress version.
    That is at least in my BP wordpress version you can already mark
    pages as private (i.e. non accessible to non-logged-in members),
    i.e. there is already a checkbox. And if there wouldn’t be the bug then
    setting the member page and activity to private would have set “the component” to
    private, if I understood correctly.
    Is the plugin checkbox another checkbox?

    There is a plugin which, by its description, seems to set everything private:
    https://wordpress.org/plugins/buddypress-members-only/
    and which lets you specify which subadresses should be open.
    But in my case this is not so helpful because
    I want the blog to be public and the blog is not behind a /blog/ adress
    but behind the year /2015/… etc.
    so I would need to set each year adress open, which seems OK but not really
    straightforward.

    #248155
    jscmal
    Participant

    Hi,
    – WordPress 4.4 – Upgraded from the previous release
    – BuddyPress 2.4.3 – Upgraded from the previous release
    – No customization in buddypress core

    I have added a new post where I explained all the things in a better way, giving all the details about wordpress, buddypress and the plugins. But I added it 2 times but in both cases it was not published, I don’t know why.

    In practice is the Filtering that is not working for any user that is not admin. My admin account works properly.

    Another thing that happens is that keeping the Activity Stream page opened, the bar that says “Load Newest” appear also if there is no new post in the stream.

    I tested using the default WordPress Theme Tweenty Fifteen but the problem happens also there.

    About the theme used. It is Woothemes Canvas 5.9.3 and 5.9.15 . Never had problems with these themes using BuddyPress.

    The only customization that I did for BuddyPress are just CSS tags and when I upgraded to the new wordpress release and to the buddypress latest release, everything worked properly between buddypress, wordpress and the theme.

    About the plugins, I didn’t changed them until now. I will make a test deactivating some plugins.

    What is the reason that make you think that can be a plugin?

    Kind regards.

    G.Aloe

    #248050
    Hugo Ashmore
    Participant

    @ldesherl I think it might help if you could leave that link above switched to a WP default theme and with all plugins deactivated, just while you’re seeking help for this issue, as things stand I see no sight of BuddyPress or bbPress running, and the theme is a custom one with a lot of plugins running. Buddypress should default to using a series of pages that it will create, your ‘Activity’ example is named with a custom title, you also seem to have a lot of trashed pages as the members page slug has ‘-7’ added suggesting 6 other copies of a page named ‘members’ try deleting those.

    #247920
    @mcuk
    Participant

    Hi,

    Not used LearnPress so unable to comment much on that . The method I used to insert/display my own custom profile fields into a header on the user activity page was as follows (in this case, a Location field which was created in the WP dashboard).

    1. Add to bp-custom.php :

    //Add Location field to header if user has entered data into it
    //Nothing is shown if user hasn't entered anything into field
    function bptest_show_location_field () {
    	$location_field = bp_get_member_profile_data( 'field=Location' ); 
    	if ( ! $location_field  ) { 
    	   return; 
    	}   
    	else {
    	   echo '<span class="custom-field-text">' . $location_field . '</span>'; 
    	}
    }
    //user_bio_location_field is used within the member-header php template file
    add_action ( 'user_location_field', 'bptest_show_location_field' );

    2. In my member-header.php file (which was copied into my child theme) entered the div :

    <div id="user-location">
    	<?php 
    		do_action ( 'user_location_field' ); 
    	?>
    </div><!-- #user-location - function is found in bp-custom -->

    Obviously the php code in step two is placed wherever you want the field to display, just put it in the correct location of the correct php file. In my case it was member-header.php but for you i’m guessing its the one that generates your order page?.

    Not sure if you have already tried any of that or if it even helps!

    #247877
    Andrew
    Participant

    Thanks Henry. I’ve got more info on this to help the core team fix this issue.

    I think all WordPress conditionals are not working correctly inside the bp_after_has_activities_parse_args filter. Only BuddyPress conditionals are working inside it.

    I also have custom member pages too using bp_after_has_members_parse_args, but WordPress conditionals inside that are all working fine, example:

    // filter member pages
    function cm_members_filter( $retval ) {
    
    	if ( is_page('custom-page-3') ) {
    		$retval['per_page'] = 1;
    	}	
    	
    	if ( is_page('custom-page-4') ) {
    		$retval['per_page'] = 5;
    	}	
    	
    	if ( is_search() ) {  
    		$retval['per_page'] = 3;
    	}	
    		
        return $retval;
    }
    add_filter( 'bp_after_has_members_parse_args', 'cm_members_filter' );

    It is just the activity parse args that is having problems with WordPress conditionals. I can provide further info to help figure out why WordPress conditionals don’t work correctly inside bp_after_has_activities_parse_args, it has something to do with the way ajax is used on the load more button to load more items:

    If I remove activity ajax features by removing <div class=”activity”></div> or by removing bp-templates/bp-legacy/js/buddypress.min.js. The load more button now works like a pagination next page button (similar to the members directory pagination). This makes the WordPress conditionals work fine and all my custom activity pages are now filtering correctly.

    So to conclude, WordPress conditionals are working OK inside bp_after_has_members_parse_args, but they are not working correctly inside bp_after_has_activities_parse_args unless the activity ajax is removed.

    #247533
    mcpeanut
    Participant

    Talking about JavaScript @henrywright, without going off topic or meaning to hijack this thread I have a question for you that you may be able to help me with that’s driving me nuts, you know how we spoke ages ago about combining js scripts etc? well I have a problem on my members pages that is frustrating me, I have all my js files combined how I need them to be and working great on every single page of the website and have all js moved to the bottom instead of being at the top with the use of a plugin.

    Now the problem I have is on a users member/profile pages, on these pages 2 of my js files remain at the top which is causing me problems with another plugin I use on these pages, the plugins all work fine but makes the pages briefly flash when switching tabs, i have narrowed it down to these js files loading in the head that are causing the problem. The plugin I use to move the js to the bottom only supports pages and posts and not custom post types (so it works fine on the activity/members/groups main pages but not in the individual groups or personal members pages), now I have got the code to add the custom post types so that it can move the js to the bottom on the members profile pages but I am not sure what custom post types these pages use?

    The code I need to use is below, but what custom post type should I add for the buddypress personal members pages to be included any ideas?

    function stf_add_cpt_support( $post_types ) {
        $post_types[] = 'project';
        
        return $post_types;
    }
    add_filter( 'scripts_to_footer_post_types', 'stf_add_cpt_support' );

    sorry @rosyteddy but i only brought it up as henry mentioned JS 🙂

    #247273
    jimme595
    Participant

    So i’ve had some success trying to change the profile links with this code:

    function _bp_core_get_user_domain($domain) {
    	$url = get_home_url();
    	$user_id = bp_get_member_user_id();
    	if (empty($user_id)) {
    		$user_id = bp_get_activity_user_id();
    	}
    	if (empty($user_id)) {
    		//$user_id = bp_displayed_user_id();
    	}
    	$user_info = get_userdata($user_id);
    	$link = $user_info->display_name;
    	$domain = '' . $url . '/profiles/' . $link . '';
    	return $domain;
        }
    add_filter('bp_core_get_user_domain', '_bp_core_get_user_domain', 10, 4);
    apply_filters( 'bp_get_activity_user_link', '_bp_core_get_user_domain', 15, 1);

    This seems to work on every profile link except the one in the activity header section. This link is being changed but just to /profiles/. The display name is not being added to the end… so looking at my code this means i’m not retrieving the user id in the activity. Strangely enough though the user avatar next to the post has the correct link applied to it with the above filter! Any ideas?

    My other option is to use the buddypress member profile location but replace it with my profile templates. I tried to implement this by creaing a members/single/home.php in my wordpress custom theme folder… but the profile loads inside another page, i get a page within a page type effect with the username above the inner page… not sure what is going on there? If anyone can help with either of these solutions i’d really appreciate it!

    James

    Henry Wright
    Moderator

    Hey @alessandrat

    Welcome to the BuddyPress forum!

    1. Have two separate front ends for different user types (with differently configured profiles), appearances, and accesses.

    Yes. This can be done with either a plugin (try searching the Plugin Directory) or coded through the Member Types feature introduced in version 2.2.

    2. Have a place where shortcode could be put in so that users can take a questionnaire containing likert questions on their profile and/or while creating their profile.

    Either a post, page or perhaps even an activity update all spring to mind as possible places to add it.

    3. One but not both kinds of users can create their own group (public, semiprivate or private) or forum and browse/ join existing ones

    The ability for all members to create new groups comes as standard.

    4. One kind of user but not the other needs to be able to set up ways for the other type of user to purchase products (I assume I can use another plugin but will need a place to put the shortcode)

    This will need to be either custom coded, or you may find a plugin with the functionality you need.

    Hope this info helps!

    #246792
    paragbhagwat
    Participant

    @r-a-y thanks i did read that and i added a front.php in my theme under buddypress/groups/single and it worked perfectly fine. I was then looking to have a different page for pubblic groups vs private groups so i created a new file called

    front-status-public.php and placed it under the same location of buddypress/groups/single

    That is not working. Only front.php works.. as given in the hierarchy it should look at the status file before it even picks up the front.php. As shown below the home.php seems to be looking only for front.php and not the hierarchy. Any idea what is going on?

    home.php code

    
    if ( bp_is_group_home() ) :
    
    						// Use custom front if one exists
    						$custom_front = locate_template( array( 'groups/single/front.php' ) );
    						if     ( ! empty( $custom_front   ) ) : load_template( $custom_front, true );
    
    						// Default to activity
    						elseif ( bp_is_active( 'activity' ) ) : locate_template( array( 'groups/single/activity.php' ), true );
    
    						// Otherwise show members
    						elseif ( bp_is_active( 'members'  ) ) : locate_template( array( 'groups/single/members.php'  ), true );
    
    						endif;
    
    
    #246705
    scoobs2000
    Participant

    Hi
    in short everything you have asked can be done.

    But I’m a little bias as I honestly believe regarding technology there is nothing that can’t be achieved it just comes down to how much time and budget you have to invest… 🙂

    Below is a bit of a ramble…. But might provide insight. after you organize your coffee and come back.

    I have nearly completed a project that sounds similar in nature (few weeks from launch in final beta testing), however it was a highly customised solution (private membership site) .
    With nearly 70 plugins, 100’s hours coding integration code (lots of trial and error) between the plugins and also compatibility tests with multiples of plugins to ensure no issues, because of slow load times the project requires deploying from CDN,fast servers and customised caching solutions.
    most of work load appeasr to be bbpress – so an near out of the box solution, you prob don’t need to go that far.

    But not to scare you. Here are some pointers that might answer your questions, based on my understanding of the OP.

    In my case I spent many months researching solutions with many platforms (open source / paid / managed premium) – buddy press was selected simply because is built on WordPress that’s already has the core abilities you need, you just need to “hook in to’em” and take advantage of this concept – you can keep working on bettering and adding separate components / features as time goes by, great for client, works out a bit cheaper in the startup phase and great for developer – land ya self a permanent support / ongoing development contract……

    Is it possible to update profile content/meta? : In general yes, buddy press allows this out of the box

    Either the user or the admin can update, you can have admin only fields (the user doesn’t access them – but the admin can)
    if you use a membership plugin eg, s2member – you can extend this idea much further eg, only require email on signup, then all other fields are accessible from profile and can set fields on a per membership level,

    In your case, you might have different profile fields for students, teachers, Parents and only require a couple of basic fields to be completed on signup and all other fields can still be “required” when they reach their profile page.
    For profile field management I recommend the s2membership pro plugin (free version available) http://s2member.com/

    My project has a “todo list” for each and every member – however I’m still to this day unable to find a plugin that interacts with a completed wp/bbp/buddypress site. So I had to code one. The todo list was designed / engineered in a way that interacts with “wordpress” in general, by storing a completely unique data feed much like the activity feed with time stamps and can be programmed to be linked to any site link, media download, page view, forum post, reply any activity on the site can be logged and applied to the feed which the to-do-list interacts with and auto completing (crossing of the item) each item also has dependencies, so you rattle off a list of activities before the task is crossed off and each to-do-list also has dependencies so it is not seen by a user until certain tasks are completed, eg, purchase a course from the store, or complete a previous to-do-list.

    In short: Yes it can be done, however I’m not aware of any 3rd party plugin that does this successfully.

    In my case I have the to-do-list shown in the sidebar so as a member goes through the tasks the list is also available to them no matter what page they are on. But possible to publish it in the profile page if required.

    Regarding email notices, I recommend looking into the woo commerce sensei http://www.woothemes.com/products/sensei/ plugin for your courses that way you have management of email notices, in fact prob most of the things you require will be available via sensei – note this is a premium paid plugin with yearly ongoing licence costs.
    Without a free trial version to try before you buy.

    But maybe gravity forms developer licence might be fine in your case as it has, gateway plugins, qiz and survey plugins – it would be possible to build certain simple courses on the gravity framework including delivery of custom emails – if building a form based system than certainly worth a look into – but would require a developers licence to get all the plugins you would prob require.

    In fact what I do is use gravity forms email chimp plugin to send the members email address to an email list (automation campaign) in mail chimp (paid account) that auto sends a welcome emails that I have customize to suit the activity they have completed, this way I can send pretty html + marketing emails + scheduled follow up emails and take the work load off WordPress other than a quick API connect on demand.

    Regarding: is it possible to have multiple logins or users access the same account/profile?
    In simple: Yes, but it all comes to context of the profile, will each member be able to see other members profiles or will parents be able to edit a child profile etc.

    Although my project does not require the need for 2 or more members to edit a single profile, I do have multiple levels of context (horizontal and vertical memberships) all with their own set of rules who profiles they can see and what buddypress features are available to them – some members don’t have activity feeds or messages, But I needed to ensure that members that do have access to these features can’t access the features of cross membership and so on.

    This is 100% custom code (no plugin) but while coding this up I recall thinking I’m 100% confident it is possible to add another level of check “if current user can edit displayed user” and go from there, all you would need is a profile field / meta that links multiple accounts together –
    Eg, a parent account has a profiled field “child user name” – they just enter the child username / user ID – and now we would add the profile check if a parent is viewing the child’s profile.

    Regarding paying a deposit, and payment, this is my findings.

    There was no single one membership / payment plugin that integrated perfectly into what I wished to achieve – I have tested many. please note I’m suggesting there are no plugins that do this stuff just none that achieved the outcomes I needed for my project.

    – Tips: – start the project design based on the payment systems / gateway (the complete project and direction of development is 100% dependent on this) because the simple reason every feature you implement needs to check “is a paid member and what level (cap / role) ” – including free membership with paid features “is not a paid member” but has paid for… this includes recurring and non-recurring subscriptions with consideration of what you intend to do if a subscription expires.

    Eg, a recurring subscription will either just auto subscribe and pay for the next time frame (or fail)
    A non-reoccurring subscription will auto expire after a given time frame (or X cycles)

    The difference between to the two –
    Is generally on a recurring subscription when it expires it also linked to a member account to “do something” eg downgrade membership

    A non-recurring subscription is generally used for a onetime payment you have access forever feature- eg, a course and resources, you pay once on a deposit, subscription over several weeks when the subscription expires the member still has access to the course as long as they remain at minimum a free member on the site. (anyhow that’s how I have implemented things)

    These two concepts are completely different in the way they interact with the member as well at many levels although on the surface appear to be almost the same, add in a deposit feature you are also opening another level of context to play with, mostly limiting the available options regarding the payment gateway service you will need to use or more so which services have this feature on offer.

    As mentioned – my suggestion is start with the gateway solutions first and reverse the design back to the front end. – this is the big lesson I took away with this project (4 rewrites in total) as it was always a block relating to the gateway limitations (and laws relating to online subscriptions in my country).

    My project:
    Woo commerce (free) for shopping cart system including purchase of courses, subscription to site and deposit/ subscription to courses, plus all other products, deliverable products, workshops, webinars, one on one sessions, resource downloads from pdf to videos. Anything you can think off can be sold through woo

    Woo commerce quick cart – plugin (paid)– now I can add a buy now button on any page for any product including subscriptions – the membership info page has a standard 3 column price comparison chart with nothing more than a “sign up now” button – clicking the button auto adds the subscription to cart and opens the checkout popup with one click and without leaving the page (no need to send to store)

    Sensei (paid)– for courses and fits well into woo commerce system (but requires a couple more plugins and custom integration code if implementing paid / subscription based courses )

    Groups plugin (free) to easily manage roles and caps (as I have to teach client staff how to do this and manage the site) WordPress has this capability built in if your a coding ninja (I’m not)

    Groups Woo commerce (paid plugin) to link groups to a purchase – apply a role / cap or groups of, to a user based on the purchase.

    Then some custom code is required – to perform a check and if a user has a particular role or cap than apply the s2membership level – this check is done at the store level so if a member cancels or defaults on a payment – the membership level is auto adjusted depending on what role or cap is supplied to the user from the groups woo commerce automation. groups plugin manages non-recurring subscriptions so a expired subscription does not remove the users caps and roles (but a default on payment does)

    S2member pro – for membership level management including profile fields management and most importantly complete site access management – I can apply access to each and every competent of the site this includes , forums, topics, replies, posts, pages, media, courses, and content within pages eg, home page displays different content based on the membership level / logged in or general public. s2member pro is also used to override default bbpress / buddy visibility settings eg, hidden forums only available to certain member levels – but requires custom code to apply or traverse access levels on submitting topics / replies to ensure widgets and other snippets don’t display private areas to members that don’t have access. (it allows you to write custom queries with zero concern or consideration to access levels)

    For subscriptions (paid)– I use woo commerce Subscriptions plugin – this manages on its own site access based on paid recurring subscriptions (or in simple turns on or off user account based on payment) – pay x amount monthly to access certain site features, courses and resources, forums, pages, blog articles etc.

    However – woo commerce subscriptions does not manage deposit / time based subscriptions (non-recurring subscriptions) eg, pay a deposit for a course and gain instant access then pay off on a subscription for x amount of weeks / months –
    I was not able to find any plugin (free or paid) that does this, so I had to write a plugin currently under experimental concept stage.

    Other tips: often it’s better to find compatible, well supported and pay for premium plugins that have overlapping features and disengage these features you don’t want to achieve your goals and do as little integration code as possible, but anything you do needs to be well planned and though out as to not to touch core code in any platform, framework or plugin.
    At the end of the day you want the ability to upgrade all systems as time go by.

    Eg, s2member plugin has its build in membership system that is “required to be active” for the plugin to work. – all I did was setup a single paid (never to be used membership) on a paypal sandbox store this includes setting up all the s2membership registration pages etc – then put a simple redirect in the .htaccess on any of these pages. Now to purchase membership you must go to the store (woo commerce) and purchase a subscription via woo – s2member has now has nothing to do with membership registration / payment systems.

    And of course I have “force account creation” turned on at the store – you cannot make a purchase without signup at a minimum free site membership.
    by disengaging the buddy, bbp, Wp, and all other means of registering (by redirect) but only leaving the woo commerce customer account registration available – The pop up registration form I use for free members is just a woocommerce customer account registration form (with no products attached) with a fallback to the s2membership cut down reg form (in case ajax / jquery etc not working on client side)

    And now all purchases, subscriptions, shop account, courses etc are now available from the buddy press profile page also via a “woo to buddypress” plugin (or in my case built into the theme)

    May sound complicated but as mentioned I would really suggest starting with payment solutions and nut out this part of the project first as this will most likely force development direction,

    one of my project goals was a solution that can cater for anything…. so,

    Regarding variable deposit / costs amounts based on user input – if using similar approach as I did – you would just setup woo commerce discount codes per variable outcome / result and would just reveal the correct coupon code to the user on the checkout page. they just cut and paste this code into the discount field and click apply.

    or setup up multi products – one product per price base. – have the user input their details first and the result would be – apply a groups cap / role then only offer the courses products in the store with the associated price base based on user caps / role –

    woo discount coupons can be setup on multiple bases – eg, deposit amount / on going subscription amount or total amount or per product or per cart total etc.

    for me was plenty of research into this including concept builds of other community platforms and as above is only a bit of a sample of features used relating to the OP.
    I was under very strict key point goals and achievements requiring very specific outcomes many of these affected development direction how / why I implemented the above.

    There may be better simpler ways to suit your specific project, but thought it might be worth a mention for some direction. or at least insight into some of the plugins I use / ideas and concepts.

    my usual disclaimer – if there is something in there for you, that’s great! if not that’s fine too!

    enjoy!

    #246516

    In reply to: Disqus Integration

    jrunfitpro
    Participant

    Thank you @shanebp . Is there a better looking bp comments plugin with some better styling? Also, my theme Optimize Press 2 has custom page layouts for lessons. The only problem, the bp activity stream will not pick up these comments.

    Any thoughts on a solution there?

Viewing 25 results - 176 through 200 (of 728 total)
Skip to toolbar