Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'custom activity page'

Viewing 25 results - 376 through 400 (of 838 total)
  • Author
    Search Results
  • #229799
    Carme Mias
    Participant

    Hello,
    I get the same error message in the BuddyPress Activity admin page. Also, AG Custom Admin don’t seem to give any solution either.
    Does anyone have a recommendation on how to solve this?
    Thanks

    shanebp
    Moderator

    >Buddypress is waiting for the first login of each user

    At which point it will add a last_activity timestamp.
    The easiest solution is to add those timestamps for everyone via a script.
    Put this code in your bp-custom.php file, then open your site in a browser.
    Then remove the code – or it will update the timestamp on every page load.

    
    function daten_add_last_activity() {
        global $wpdb;
        foreach ( $wpdb->get_col( "SELECT ID FROM $wpdb->users" ) as $user_id ) {
            bp_update_user_last_activity( $user_id, bp_core_current_time() );
        }
    }
    add_action('bp_init', 'daten_add_last_activity' );
    #228288

    Since BP 1.6 there has been a constant that defines this.

    Just add define ( 'BP_GROUPS_DEFAULT_EXTENSION', 'forum' ); to your functions.php or bp-custom.php file.

    From then on, when you click to go to a group, it will display the group’s forum page instead of the normal ‘Home’ activity landing page.

    #228029
    Tanner Moushey
    Participant

    Hello @boki88! Unfortunately it sounds like theme you are using does not have the ability to change those BuddyPress styles without some custom coding. Fortunately, it looks like you have Jetpack enabled and Jetpack has a CSS editor where you can enter custom styles without having to edit code in the theme files.

    Go to the edit css page (http://anibusters.com/wp-admin/themes.php?page=editcss) and enter the following style:

    .gp-theme #buddypress #activity-stream p { color: black; }

    #212370
    Halo Diehard
    Participant

    Thanks for your quick response, @danbp. I did not include the support information, because I just needed an answer to my simple question; didn’t think anyone would be able to help me with my actual issue, since I am using Simple Press and not bbPress.

    Simple Press has a BuddyPress plugin, that integrates some of the functionality of their forums into the BuddyPress activity, and allows the forum owner to elect to use the BuddyPress profile, for example, over the SP one. But I am not seeing any forum posts in activity. I contacted them, but I also was not seeing the forum tab like I see here. I was here for a separate issue, and noticed that forum tab, so I opened this topic to ask about the tab.

    Maybe that tab disappears if bbPress is not active, I’m not sure, but I really thought I remembered with the bbPress forums that my member’s posts were mixed in with all the other sitewide activity, and I don’t remember ever seeing a forum tab. I’m on my second BuddyPress supported theme; the first was Custom Community, and now I’m using Matheson.

    I’m familiar with how to set up BuddyPress, but thanks for the links. Here is the rest of the info, in case it helps:

    1. Which version of WordPress are you running? 4.0

    2. Did you install WordPress as a directory or subdomain install? If this is either or, than it’s a directory install

    3. If a directory install, is it in root or in a subdirectory? Again, not sure of the question. My url points to the root wordpress folder, but that folder is not in the root of my server, but a few folders in.

    4. Did you upgrade from a previous version of WordPress? If so, from which version? Have had WordPress and upgraded every release for a couple of years

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

    7. Did you upgraded from a previous version of BP? If so, from which version? 2.1.0? I don’t know, the same: Have had BuddyPress for at least a year, upgrade it as releases come out.

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?

    (Ones followed by asterisk are not active, since I’m not committed yet to Simple Press. Others I’m getting around to testing, or only use occasionally. Yes, I know it’s a lot.)

    Add New Default Avatar
    BadgeOS *
    bbp buddypress profile information *
    bbPress *
    bbPress Enable TinyMCE Visual Tab *
    bbPress Go To First Unread Post *
    bbPress Stay Checked *
    bbP Signature *
    Black Studio TinyMCE Widget
    BuddyPress
    BuddyPress Groups Extras *
    Content Aware Sidebars *
    Email posts to subscribers *
    Google Analytics by Yoast
    iFlyChat
    LenSlider *
    Link Library
    NextScripts: Social Networks Auto-Poster
    Posts for Page Plugin
    Quick Chat
    Simple: Press
    Simple: Press v5 Importer
    Simple social share
    SlideDeck 2 Lite *
    Social Login
    Stop Registration Spam
    Subscribe/Connect/Follow
    T(-) Countdown
    ToTop Link
    Ultimate Posts Widget *
    Video Thumbnails
    WangGuard
    WordPress SEO
    wp-Monalisa
    WP Ads Within Contents *
    WP Custom Login
    WP Overview (lite)
    WP Symposium Toolbar

    9. Are you using the standard BuddyPress themes or customized themes? I am using Matheson, a theme listed as working with BuddyPress, and it is further customized via css by myself.

    10. Have you modified the core files in any way? No.

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

    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? bbPress is deactivated, using Simple Press.

    13. Please provide a list of any errors in your server’s log files. I’ve searched to try and find these, and I have no idea how to find them.

    14. Which company provides your hosting? 1and1

    15. Is your server running Windows, or if Linux; Apache, nginx or something else? If this might be relevant, I will try to find out. Think it’s Linux.

    #210013
    danbp
    Participant

    @mineo

    there are always difference between two BuddyPress version…. If you use a custom translation, you must update your version at each BP update. This is how translating a plugin or a theme works and has nothing to do with php files or studying the support.

    Version 2.0

    Version 2.0.1

    Version 2.0.3

    Version 2.1

    and so on…

    For example, the difference between 2.0.1 and 2.1 is not the translation itself, but the translation comments who where added for better disambiguation.

    So for example the word “activity’ in bp 2.01 is written in the po file like this:

    #: bp-activity/bp-activity-loader.php:165
    #: bp-activity/bp-activity-loader.php:276
    msgid "Personal"
    msgstr ""

    and in BP 2.1, you see this:

    #: bp-activity/bp-activity-loader.php:277
    msgctxt "My Account Activity sub nav"
    msgid "Personal"
    msgstr ""

    A comment was added who look like this: msgctxt "My Account Activity sub nav"

    Because of this comment, even if the phrase is already translated, poEdit consider that there is a modification and mark this phrase as fuzzy. And because it is fuzzy, gettext doesn’t use it and the word stays in english.

    In 2.1 “activity” remains 9 times alone, with 9 different disambiguation context, in difference to older versions where “activity” was used indifferently for any context.

    So if you didn’t take care of such difference, you can think your word is translated. It is, but outside of the context.

    
    msgctxt "Page title for the Activity directory."
    msgid "Activity"
    
    msgctxt "Activity items per page (screen options)"
    msgid "Activity"
    
    msgctxt "Admin Dashbord SWA page title"
    msgid "Activity"
    
    msgctxt "Admin Dashbord SWA menu"
    msgid "Activity"

    etc
    This means of course that you have to translate “activity” 9 times, instead one time, but the avantage to write it differently, depending your language and the context where the word is used.

    And again, modifying a po file with a text editor without compiling it into mo format is unuseable. You must use a compiler like poEdit, as gettext use .mo file to translate.

    Po/pot files are only working files, not system files like mo is.

    #205216
    WireLab
    Participant

    Hi,

    Sorry i need a bit more help as I failed to get it to work. So I created a bp-custom.php under wp-content/plugins

    and added the following below, however my activity-stream page was still accessible without login

    <?php
    // hacks and mods will go here
    function wirelab_check_activity_login() { 
      if( ! is_user_logged_in() && bp_is_activity() ) {
        wp_redirect( '/wp-login.php' ); 
        exit;
      }
    }
    add_action('bp', 'wirelab_check_activity_login');
    ?>
    #205098
    shanebp
    Moderator

    Try this in bp-custom.php

    function wirelab_check_activity_login() { 
      if( ! is_user_logged_in() ) {
        wp_die("To view this page you must first log in.");
      }
    }
    add_action('bp_before_directory_activity', 'wirelab_check_activity_login');
    #203195
    1a-spielwiese
    Participant

    1st:

    ‘Such custom function are added to child-theme functions.php’

    I did this, and I deactivated my reddle-child/buddypress/activtity-folder by renaming it. – I get the text displayed, but not at the place, where I want:

    http://1a-spielwiese.de/wp-content/uploads/2014/10/Activity_Intro.jpg

    2nd:

    I tried it as well by using the bp-custom.php:

    a) When I inserted your code at the end of that file, I got displayed nothing.

    b) And when I inserted it before the line <?php get_footer(); ?>:

    <?php
    /**
     * BuddyPress: Full-width template
     *
     * A custom page template without sidebar.
     *
     * @ since Reddlle 1.3.1 and BuddyPress 2.1
     */
    
    get_header(); ?>
     
    	<div id="primary">
    		<div id="content" role="main">
    			<?php while ( have_posts() ) : the_post(); ?>
    				<?php get_template_part( 'content', 'page' ); ?>
    			<?php endwhile; // end of the loop. ?>
    		</div><!-- #content -->
    	</div><!-- #primary --> 
    
    <?php get_footer(); ?>

    then I got my introductory text displayed behind the activity stream.

    #197062
    Julia_B
    Participant

    Thanks @peter-hamilton. No, I haven’t tried customize page yet, could that enable posting to the activity feed directly from the homepage?

    It would be great to know how to make the the links you have on the top left, I will look forward to the tutorial. 🙂

    #197053
    peter-hamilton
    Participant

    I can not see any activity on you homepage?

    Did you use the customize option to change to a static page?

    #197045
    peter-hamilton
    Participant

    Hi Julia_B

    To alter the templates for activity you need to do the following:

    Create a page called buddypress in your root folder.
    Inside the buddypress folder you create another folder called activity and in there another folder called single.

    Now you need to access your existing plugins folder.
    Open buddypress -> bp-templates -> bp-legacy -> buddypress

    Here you will find 5 folders, one is activity, inside this are some php files and a folder called single, inside this single folder is the index.php file that runs the activity.

    I copied all 5 folders to my new buddypress folder in my root and all the files in those folders, with them able to control/change the buddypress layout as I would with a child theme.

    To have an activity wall on homepage you only need to customize the appearance of wordpress in the admin area/backend.

    Go to “appearances” then “customize”, here you can change “front page” to activity and it should work.

    Good luck

    #196197
    Julia_B
    Participant

    Thanks @danbp showing site activity by using the topic filter sounds good. I went to this link – https://buddypress.org/support/topic/changing-the-default-activity-filter/ – but the posts there were a bit over my head as a beginner to be honest. However, the link in that thread to this article was useful: http://wpmu.org/how-to-customize-the-buddypress-activity-loop/

    Problem is I can’t find the the /activity/ folder in my theme. Where do I need to look for that?

    Also, is there a way I can allow members to post directly to the activity stream from the homepage, Facebook style, and for members comment on each others’ posts from there too?

    I appreciate the help.

    #192175
    richtelford
    Participant

    Hi @danbp. Okay so essentially what you are saying is I need to write a complex custom query?

    I’ve been examining the Buddypress class and function files in detail over the last few weeks due to the lack of documentation for BuddyPress – not a criticism btw. Yep I’m familiar with meta_query and using that already to get groups by meta_value. I wrote a function for returning activity IDs based on group meta:

    function wfw_get_group_activities_by_sport($sports = array())
    {
    	global $bp,$wpdb;
    
    	if(!$sports)
    		return false;
    
    	// GET GROUP IDS WHICH HAVE CHOSEN SPORT SELECTED
    	foreach($sports as $sport)
    	{
    		$meta_query[] = array(
    			"key" => "group_sport",
    			"value" => $sport,
    			"compare" => 'LIKE'
    		);
    	}
    
    	if(count($meta_query) > 1)
    		$meta_query = array_merge(array('relation' => 'OR'), $meta_query);
    
    	$group_arr = BP_Groups_Group::get(array(
    		'per_page'=>-1,
    		'meta_query' => $meta_query
    	));	
    
    	if(!$group_arr['total'] || !$group_arr['groups'])
    		return false;
    
    	foreach($group_arr['groups'] as $group)
    	{
    		$group_id_array[] = $group->;id;
    	}
    
    	$item_id = implode(",", $group_id_array);
    
    	$sql = "SELECT id FROM {$bp->activity->table_name} WHERE component = 'groups' AND item_id IN ({$item_id})";
    	$activity_id_array = $wpdb->get_col( $sql);	
    	
    	if(!$activity_id_array)
    		return false;
    
    	$activity_id = implode(',', $activity_id_array);
    
    	return $activity_id;
    }

    which I can then use to filter results:

    $activity_id = wfw_get_group_activities_by_sport(array($_GET['sport']));
    
    $filter = '&in='.$activity_id.'&object=groups';
    				
    if ($activity_id && bp_has_activities( bp_ajax_querystring( 'activity' ).$filter ) ) :  ?>

    Now I just need to somehow combine what I’m using but it sounds like a complex query is the way to go. I was looking for a more elegant solution using BP functions to achieve this but I guess it’s not yet possible.

    Anybody else have experience in this?

    Thanks.

    #191040
    peter-hamilton
    Participant

    A few images of my latest updates to BBFacelook, did not have much time last few weeks so progress is slow.
    In the meantime slowly getting more members to test the forums functionality.

    This is the new profile page now the default page when clicking a member’s link or avatar.

    bbfacelook profile page

    forum list is a little updated most important function is the topic title in the freshness column.

    bbfacelook forum list

    I have quite a few plugins installed, and some even hardcoded into my theme to lighten the code as much as possible.

    Current plugins are:
    . Invite anyone
    . BBPress like button
    . Buddypress activity plus
    . easy sign-up
    . GD BBpress attachements
    . wp post filter
    . bbpress
    . buddypress

    Plugins that I have hardcoded are:
    . Background For User Profile
    . BuddyPress Group Customizer Lite
    . TinyMCE

    As soon as I have more work done I will make another update here.

    P.H.

    #191003
    danbp
    Participant

    hi @millir,

    give this a try:
    tested on wp 4.0 bp 2.0.2 theme 2013 – snippet is in bp-custom.php

    /*activity stream on homepage */
    if (!function_exists('wwn_bp_activities')) {
        function wwn_bp_activities( ) {
    		ob_start();
    		
    		// Remove 'bp_replace_the_content' filter to prevent infinite loops
    		remove_filter( 'the_content', 'bp_replace_the_content' );
    		if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . 'per_page=5' ) ) :
    		bp_get_template_part( 'activity/index' );
    		
    		// Remove 'bp_replace_the_content' filter to prevent infinite loops
    		add_filter( 'the_content', 'bp_replace_the_content' );
    		
    		// Get the output buffer contents
    		$output = ob_get_clean();
    		
    		// Echo or return the output buffer contents
    		if ( true === $echo ) {
    			echo $output;
    		} else {
    			return $output;
    		}
    		endif;	
    		
    		ob_end_clean();
    	
    }
    add_shortcode('wwn_bp_activities', 'wwn_bp_activities');
    }
    #190874
    danbp
    Participant

    hi @canadadre,

    you have to read the mentionnedd topic AND to follow the links if the topic contains some. 😉

    i hope for you that you know how to copy/paste, because the above snippets must be added to your child-theme functions.php, or better into bp-custom.php

    1. – Deny access to admins profile

    // deny access to admins profile. User is redirected to the homepage
    function bpfr_hide_admins_profile() {
    	global $bp; 
    	if(bp_is_profile && $bp->displayed_user->id == 1 && $bp->loggedin_user->id != 1) :
    		wp_redirect( home_url() );
    	exit;
    	endif;
    }
    add_action( 'wp', 'bpfr_hide_admins_profile', 1 );

    2. – Remove admin from the member directory and recount members

    
    // Remove admin from the member directory
    function bpdev_exclude_users($qs=false,$object=false){
        
        $excluded_user='1'; // Id's to remove, separated by comma
    	
        if($object != 'members' && $object != 'friends')// hide admin to members & friends 
        return $qs;
    	
        $args=wp_parse_args($qs);
    
        if(!empty($args['user_id']))
        return $qs;	
    	
        if(!empty($args['exclude']))
    		$args['exclude'] = $args['exclude'].','.$excluded_user;
        else
    		$args['exclude'] = $excluded_user;
    	
        $qs = build_query($args);
    
        return $qs;
    	
    }
    add_action('bp_ajax_querystring','bpdev_exclude_users',20,2);
    
    // once admin is removed, we must recount the members !
    function bpfr_hide_get_total_filter($count){
        return $count-1;
    }
    add_filter('bp_get_total_member_count','bpfr_hide_get_total_filter');

    3. – Hide admin’s activities from all activity feeds

    // hide admin's activities from all activity feeds
    function bpfr_hide_admin_activity( $a, $activities ) {	
    	
    	// ... but allow admin to see his activities!
    	if ( is_site_admin() )	
    		return $activities;	
    	
    	foreach ( $activities->activities as $key => $activity ) {	
    		// ID's to exclude, separated by commas. ID 1 is always the superadmin
    		if ( $activity->user_id == 1  ) {			
    			
    			unset( $activities->activities[$key] );			
    			
    			$activities->activity_count = $activities->activity_count-1;			
    			$activities->total_activity_count = $activities->total_activity_count-1;			
    					$activities->pag_num = $activities->pag_num -1;				
    		}		
    	}		
    	// Renumber the array keys to account for missing items 	
    	$activities_new = array_values( $activities->activities );		
    	$activities->activities = $activities_new;	
    	
    	return $activities;
    	
    }
    add_action( 'bp_has_activities', 'bpfr_hide_admin_activity', 10, 2 );

    May this help !

    danbp
    Participant

    Hello @multimartin,

    2 nd question:
    in the private blog settings, general > reading > search engine visibility, check disallow box. This will hide any of the private blog activities to appear on site activity and user feeds, except for those who are members of this blog.

    If it is not enough, considerer this plugin

    1 st question:
    read here

    danbp
    Participant

    Hello @saurabhsjain91,

    first let’s see what is normally going on with group settings:
    This is a public group
    Any site member can join this group.
    This group will be listed in the groups directory and in search results.
    Group content and activity will be visible to any site member.

    This is a private group

    Only users who request membership and are accepted can join the group.
    This group will be listed in the groups directory and in search results.
    Group content and activity will only be visible to members of the group.

    As you see, the only difference is the group content and activity visibility.

    The easiest way would be to create only private groups, so the members had to request membership to access them. But it is not what you want to do and unfortunately, modifying group privacy for better flexibility is not very doable.

    So, we have to focus on what it is possible to do with public groups accessibility, the one with the fewest restrictions.

    Lukily, core developper @imath stumbled also upon this problem a few mounth back. And finally produced a plugin.

    The features are:

    1. allow users to submit a request to join the group.
    2. selectively hiding group tabs.
    3. add a custom group homepage when non-members are viewing the group.

    More about this experimental plugin on @pollyplummer ‘s WPTavern.
    The original post (fr) on @imath ‘s blog
    The plugin can be downladed on github.

    May this help ! 😉

    #187235

    In reply to: Members Profile Page

    Venutius
    Moderator

    I think I’ve nearly done it! It’s taken hours of searching and a lot of lateral thinking but I’ve sorted on of my asks, and that is for a home page that summarises the various activity streams. I’ve got a test system up at http://www.sacredvale.org and I’ve been able to set it up with a posts feed, and activity feed, and forum feed and also a popular groups list.

    I’m not happy with the forum feed though it will do, and the groups feed is just weird and won’t.

    I’ve also found an app that allows me to say exactly where a widget will display, so I can customise the sidebars for every page view I care to.

    There’s a lot of bugs here and there, mainly to do with the look and feel of the overall system and I’m still working on the members profile pages but an awful lot of what I’ve been looking for I’ve been able to deliver, for very little money.

    Now, if only we can get wordpress turbocharged lol

    Plugin count so far? a cool 100….but my feature list beats any off the shelf social network site I know.

    #187206
    danbp
    Participant

    Test this one. It works for me on a static homepage with custom template.

    
    <?php if ( is_user_logged_in() ) :			
    	bp_get_template_part( 'activity/post-form' );			
    endif; ?>
    #186970

    In reply to: Members Profile Page

    Venutius
    Moderator

    I ended opting for Graphene, there are some compatibility issues, but it is so flexible, I must have tried about 30 different themes before settling on it.

    I reckon all in all I’ve assessed about 500 plugins to arrive at what I have got. Comparing to other social networking sites I think I’m pretty comparable to pay for options such as Ning, some aspects are seriously lacking though. User profile customisation and on site social networking options being the biggies.

    I wired my landing page to be the activity feed, with a blog summary slider, and then used a right sidebar to do a lot of the customisation with widgets. For the members profile pages I added a second left sidebar with more personal widgets like friend and group recommendations.

    Image and video sharing was another issue, I think I’ve just solved that though. I figured it was ket not to have basic users having to access the admin bar to add images to galleries etc but they also needed to be able to create galleries that the whole site could see.

    Currently I’m at the stage where I keep finding features I never knew I had lol.

    What I would really like, is a USP, a feature that other social sites do not have. Not sure what that is exactly and it may be that the total collection equates to that but I still feel it needs something. Maybe insertion of slide shows into blogs without the short codes etc, so normal users can do it.

    #186953

    In reply to: Members Profile Page

    Venutius
    Moderator

    So for I’ve found a short code for the activity feed and this is giving me some ideas. I’ve found lots of widgets that let me customise the members profile page so overall I think I’m getting there.

    One of the issues with running Buddypress as a social network is the volume of plugins you need to use in order to get the right level of features and customisations, I’m running more than 80 in total. Inevitably this leads compatibility issues.

    Key features that are lacking – user profile page self-customisation options, Friends and memberships activity feeds, custom page views, image sharing options and site “fanfare options such as featured users, groups, posts and images on one page.

    But a big thanks to all those developers out there that are providing generally high quality plugins that fill a lot of these gaps.

    #186945
    danbp
    Participant

    Hi @totoff,

    What’s new is a form (see activity/post-form.php)
    To get it on a custom page, you can call it like it’s done in activity/index.php

    if ( is_user_logged_in() ) :
    		 bp_get_template_part( 'activity/post-form' ); 
     endif;

    That said, this form is not exactly a post editor, but more a brief notice or message publication to members, and depends of the context (activities or groups for ex.)

    To let users publish blog poss from the front-end, you have to search for a specific plugin probably.

    #186381
    wp_maybe
    Participant

    Yes, adding stuff to the activity stream is easy with plugins like Activity Plus, Buddypress docs.

    Also, Buddypress allows for automatic embeds in the activity stream from a lot of sites, including youtube. You just have to drop in the URL in the “Whats new” box. You can refer to the link here for more information: https://codex.buddypress.org/getting-started/embeds/

    Embedding media to other pages would require custom coding, as @shanebp has pointed out. Where exactly do you intend to show your embeds?

Viewing 25 results - 376 through 400 (of 838 total)
Skip to toolbar