Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'custom activity page'

Viewing 25 results - 401 through 425 (of 831 total)
  • Author
    Search Results
  • #183193
    wpleo
    Participant

    Thank you @shanebp!

    You’re right, I found this strange _x. But it didn’t make the translation work for me.

    I got this bp-custom.php:

    define( ‘BPLANG’, ‘pt-br’ );
    if ( file_exists( WP_LANG_DIR . ‘/buddypress-‘ . BPLANG . ‘.mo’ ) ) {
    load_textdomain( ‘buddypress’, WP_LANG_DIR . ‘/buddypress-‘ . BPLANG . ‘.mo’ );
    //echo “FOUND IT!!”;
    }

    I’m pretty sure that this fil is being read and that the language file is being found because of the flag that I put: “FOUND IT!!”. In fact everything is being translated but the titles! No title got the proper translation, like:

    http://astronomia.blog.br/forum-astronomia/atividades/ (Sitewide Activity)
    http://astronomia.blog.br/forum-astronomia/pessoas/ (Members)
    http://astronomia.blog.br/forum-astronomia/grupos/ (Groups)

    Each one of these expressions is translated in the .po and .mo, acording to Loco Translate.

    Already deleted the pages and re-created it but nothing.

    I’m still trying, if I find a solution I’ll post it here.

    Thanks for the help!

    #183167
    Tbarnes37
    Participant

    Hi @soran7

    I’ve narrowed the problem down further and found a hack that works for me. If you look in buddypress-functions.php, there’s a function at line 739 called bp_legacy_theme_new_activity_comment. At line 770 is the process of inserting the new comment into the activity stream.

    It begins by checking if $activities_template->activities[0] is set. I’ve tested this function on an actual group page and found that this returns true, so it’s able to handle the activities effectively. However, on my custom template, this returns false; thus, the new comment data is never inserted. Of course this is separate from the process of saving the new comment to the database, so it makes sense that the comments still show up after refresh.

    I’m still hoping to find a less hacky way to do this, because my current solution messes up other activity stream pages, but I’ve managed to get my custom template working by copying buddypress-functions.php into my theme folder and modifying line 768 to have a ‘groups’ scope.

    So change line 768 from this:
    bp_has_activities( 'display_comments=stream&hide_spam=false&include=' . $comment_id );

    to this:
    bp_has_activities( 'scope=groups&display_comments=stream&hide_spam=false&include=' . $comment_id );

    Hope that helps! And if you’re able to find a better, less damaging way, please let me know. My hangup currently is that even if I manually set $bp->current_action to ‘groups’ in my template, it gets over-written at some point after page load, due to a url check that finds my template to not be at a group home url.

    danbp
    Participant

    Please don’t post BP files, it’s really unnecessary. We’re all BP user ! đź‘ż
    Sorry, i didn’t correctly understand your request. I thought you wanted to change the order of the selectbox filters. If you also interested, see this old tread.

    SWA shows by default all site activities and they can be filtered. It is well documented on the Codex.

    If for some reason you don’t want to modify a theme file, you can use a custom function and put it into bp-custom.php

    Example ( BP 2.0+ only)

    function make_swa_show_notice_only( $retval ) {	
    	
    	 if ( bp_is_page( 'activity' ) ) {
    		$retval['action'] = 'activity_update';					
    	 }
    	
    	return $retval;
    	
    }
    add_filter( 'bp_after_has_activities_parse_args', 'make_swa_show_notice_only' );

    Now the swa shows only notices (if exist). If you need to see a member activity, you have to go on his profile. Same for groups, the activity is only on the group page.

    #182966
    islandcastaway
    Participant

    Ok, after a day of troubleshooting I figured it out. (jump to the end for the stupid answer)

    Changing themes did not fix it, but it did open up a whole new can of worms because I was using a custom child theme running off of the bp-default theme. I see that I will have to totally redo my theme because of the changing BuddyPress structure.

    I rolled my database back to 4/29/2013 wordpress 3.6 era (3.9 files tho)

    deactivated BuddyPress
    Installed BuddyPress 1.7
    reactivated BuddyPress
    buddypress 1.7 works

    Did the same for 1.8 – 1.9. They all worked.
    I did notice that the title for the “members” list was “directory”, not members.
    I also noticed that in the plugins list throughout the updates it always said “There is a new version of BuddyPress available. View version 1.7 details”, even after 1.9

    Did the same steps for 2.0, still working.
    The “members list” page title was now “members” instead of “directory”.

    Did the same steps for 2.01, still working.

    The entire time I never hit upgrade network. When I did, I got an error saying no connection to sites, my dev box has all of the addresses hard coded in the hosts files and the site did pull up, just got the network update errors.

    Tried deactivating domain mapping, still errors.

    Updated the database with a current backup and BuddyPress was broke again.

    Tried the permalink switch again. Never noticed “BuddyPress is almost ready. You must update your permalink structure to something other than the default for it to work.” before.

    Went through each of the permalink options and still no go.

    Deactivated all plugins except BuddyPress, still no go.

    Rolled back the data base to 4/29/2013 and exported the wp_options table

    Imported the 3.6 era options into the 3.9.1 database.

    Tit worx.

    Got a “Fast Secure Contact Form has imported settings from the old version.”

    “Site Tracking Directory” is the “blogs” list page title

    So I manually flushed the rewrites table in wp_options, no go.
    Manually deleted _transient rows, no go

    Compared the bp-options rows in wp_options in the old and new databases.
    “blogs” was missing from “bp-active-components” in the newer database:

    a:4:{s:8:”xprofile”;s:1:”1″;s:8:”settings”;s:1:”1″;s:5:”blogs”;s:1:”1″;s:7:”members”;s:1:”1″;}

    Pasted that into the newer database and BINGO!

    Went to the BuddyPress component admin page and no blogs setting, but toggling on/off “Site Tracking” was they key.

    One friggin checkbox.

    How the ### does “Site Tracking – Record activity for new sites, posts, and comments across your network.” translate into disabling “members profile pages” and the “blogs list”?

    That seriously need to have a better description.

    So mission accomplished.

    Grrrrrrrrrrrrrrrrrrr

    #182021
    jerryskate
    Participant

    Ok, a bit better 🙂 Still having my profilename outside the classes, but got all the old ones back.

    <body jerryclass="activity bp-user my-activity my-account just-me buddypress bbp-user-page single singular bbpress page page-id-5 page-template-default logged-in admin-bar no-customize-support bp-wall adminbar-enable not-responsive this-is-a-member-profile member-profile-of-" class=" customize-support" data-twttr-rendered="true">

    #182010
    jerryskate
    Participant

    Yeah thats what i was thinking too. Seemed kinda weird to me. body.classname would be the obvious choose for me, but well.. weird output. need to fiddle around with it a little to see if i can get it to work. Too bad it filters out all the other classes though. This is how it looks without the filter:

    activity bp-user my-activity my-account just-me buddypress bbp-user-page single singular bbpress page page-id-5 page-template-default logged-in admin-bar bp-wall adminbar-enable not-responsive customize-support

    Wish i could keep those classes and have the bodyclass of the user added.

    #181193
    Asynaptic
    Participant

    a couple of things:

    • here’s the codex page for customizing the permalink for members or any other component like it:
      https://buddypress.org/2009/05/customizable-slugs-in-buddypress/
    • while it may not be buddypress’s fault if there was a conflict with a plugin (cubepoints), I would suggest considering moving from cubepoints to myCRED which has a newer code base, support and extensive documentation (mycred.me)

    maybe someone else can chime in on the activity update ‘bug’ that you mentioned

    #178918
    Clara
    Participant

    HI,

    I am attempting this as well.

    I went into custom.css in my buddyboss theme (it is reflective mobile ready theme)

    I thought I was adding this in the right place by putting it in global area, but it did not work…

    have never been near css before so clueless…

    here is what the page looks like with my addition… it did not hide the active (how long ago) item…

    can someone please advise?? I saw to add it to the bottom, but that seems not right given how this is set up… did I do something wrong with brackets, or spaces or something?

    I tried it with, and without, the dot in front of the word span…

    /*————————————————————–
    This is your custom stylesheet.

    Add your own styles here to make theme updates easier.
    To override any styles from other stylesheets, simply copy them into here and edit away.

    Make sure to respect the media queries! Otherwise you may
    accidentally add desktop styles to the mobile layout.

    You’re the boss, so have fun editing!

    ————————————————————–
    >>> TABLE OF CONTENTS:
    —————————————————————-
    1.0 – Global Styles
    2.0 – Responsive media queries (mobile styles)
    2.1 – MAXIMUM width of 720 pixels (phones landscape)
    2.2 – MAXIMUM width of 380 pixels (phones portrait)
    2.3 – MINIMUM width of 721 pixels (tablets+)
    2.4 – MINIMUM width of 1040 pixels (desktops and laptops)
    ————————————————————–*/
    /*————————————————————–
    1.0 – Global Styles
    ————————————————————–*/

    /*
    .span.activity {
    display: none;
    }
    */

    /*————————————————————–
    2.0 – Responsive media queries (mobile styles)
    ————————————————————–*/
    /*————————————————————–
    2.1 – MAXIMUM width of 720 pixels (phones landscape)
    ————————————————————–*/

    @media
    screen and (max-width: 720px) {

    /*
    .just_an_example {
    color: black;
    }
    */

    }/* don’t delete this closing bracket */

    /*————————————————————–
    2.2 – MAXIMUM width of 380 pixels (phones portrait)
    ————————————————————–*/

    @media
    screen and (max-width: 380px) {

    /*
    .just_an_example {
    color: black;
    }
    */

    }/* don’t delete this closing bracket */

    /*————————————————————–
    2.3 – MINIMUM width of 721 pixels (tablets+)
    ————————————————————–*/

    @media
    screen and (min-width: 721px) {

    /*
    .just_an_example {
    color: black;
    }
    */

    }/* don’t delete this closing bracket */

    /*————————————————————–
    2.4 – MINIMUM width of 1040 pixels (desktops and laptops)
    ————————————————————–*/

    @media
    screen and (min-width: 1040px) {

    /*
    .just_an_example {
    color: black;
    }
    */

    }/* don’t delete this closing bracket */

    #178760
    shanebp
    Moderator

    You can put this function in your theme functions.php or bp-custom.php

    It will prevent the creation of activity entries for the items in $exclude
    It will only do that going forward – it won’t remove existing entries.

    You need to find out what the activity type(s) is for achievements and add it to the exclude array.

    function dont_save_various_activities( $activity_object ) {
     
        $exclude = array( 'friendship_created', 'new_member' );
    
        if( in_array( $activity_object->type, $exclude ) )
            $activity_object->type = false;
     
    }
    add_action('bp_activity_before_save', 'dont_save_various_activities', 1, 1 );

    You can read more on this great codex page by imath
    https://codex.buddypress.org/plugindev/bp_activity_add-2/

    #178333
    julianprice
    Participant

    @cuisire_ceo It depends but found the following most useful after googling so much to only come up with garbage past dated scraped/syndicated content.

    The most important question is what the Purpose for Your BuddyPress Use/Community. The only way I have wrapped my head around it is to work backwards but with that said…

    Heres What I consider some of the Best Round Ups and Buddy Pep to Follow:

    Tammie Lister @mercime http://wordpress.tv/?s=tammie have some great talks and also have just googled for any slides from the various presentations. If not able to see video.

    Also check out her book that only seems most current: https://buddypress.org/2013/11/buddypress-theme-development-by-tammie-lister/

    Boone Gorges @boonebgorges http://wordpress.tv/speakers/boone-gorges/ and most notable this presentation: http://wordpress.tv/2013/12/10/boone-gorges-herding-cats-with-the-buddypress-activity-component/
    or anything Boone from Youtube via WordPressNYC great example http://www.youtube.com/watch?v=gPpU3ySo5q0 in understanding of GROUPS.

    Of course John James Jacoby jjj @johnjamesjacoby (sorry jjj: he rambles often:) but found this useful in just using a simple profile I believe this is the session maybe others can reference it “WordPress Profiles” http://wordpress.tv/2013/10/04/john-james-jacoby-everything-you-want-to-know-about-bbpress-and-buddypress/

    So you probably thinking Wow but you have not answered anything on installing 🙂 Believe me it helps so much to think big picture of your whole community than start working backwards as single page/components to map similarities to constructed it.

    This is one of the most useful tutorial of theme I had purchased which the developer went MIA but it was an AHA moment for me. Because Buddypress are Custom Post Types thats Relational Data/Fields
    http://www.youtube.com/watch?v=Cc3Er4S4EeQ & http://www.youtube.com/watch?v=s7b9TFw6ZAQ
    . I know what you thinking this is not my intent or not relevant. Start watching #2 at 2:16 to think in context of Simalirty.

    Finally, The only other best other video tutorial that just a setup instruction. I have found online was BuddyBoss (don’t even own the Theme) http://www.youtube.com/playlistlist=PL5kBYJSuuvEj3KqG_lnAa9MxpZumjtTdY

    and Mathis on VIMEO. The biggest problem is finding the resources in a central location so I have to track down.

    I hope that helps as resources. It really would depend on how you see your community of your people and how its relational in context

    #178211
    Joss Winn
    Participant

    Hi again,

    I still have this problem. I’m sure it’s BuddyPress that is the cause, as it still occurs with different themes and with all other plugins deactivated. When I deactivate BuddyPress, the problem stops.

    Run your mouse over the links on this page, and you’ll see the issue: http://blogs.lincoln.ac.uk/test/

    I was wondering whether it is a legacy of running BuddyPress since alpha/beta and whether there is an old setting in the database or something that I might look out for. Where are the BuddyPress settings stored in the database? None of the wp_bp tables look like they hold global settings.

    In my wp-config.php file, I have the following:

    define( ‘BP_ENABLE_ROOT_PROFILES’, true ); //removes the /members/ slug
    define( ‘BP_DEFAULT_COMPONENT’, ‘custom-profile’ ); //defaults to profile page rather than activity stream of a user
    define( ‘BP_ENABLE_USERNAME_COMPATIBILITY_MODE’, true ); //for LDAP compatibility
    define ( ‘BP_IGNORE_DEPRECATED’, true );
    define(‘BP_USE_WP_ADMIN_BAR’,true);

    Thanks for any advice,
    Joss

    #178042
    Henry Wright
    Moderator

    @slips111

    The Load More button is dependent on the markup (HTML) of the page. If you’ve customised the group activity page HTML then that might be why it doesn’t work any more.

    #177962
    shanebp
    Moderator

    @biswadip

    Using some custom sql is probably the simplest approach for gathering old entries.

    But if it’s in the activity stream, those entries should be pushed off the first page very soon so perhaps you can justify not bothering ? 🙂

    #177181
    OC2PS
    Participant

    Better customisation options of the activity stream: ie to be able to define a set of “or” filters for content type, and who. So (with plugin support) I can define a feed to include things from “me or friends or followers” showing “topics and topic replies and posts and new users” (and ideally be able to have a permalink to this with no other fluff on display). The current activity feed selectors are a mess and don’t provide what most people want to see.

    There are about 50-75 Premium BuddyPress themes online for sale and 99% of them have the same activity stream page-layout. While all those premium theme developers can do lots of customization to all other pages the activity stream is like Twitter’s Bootstrap to BuddyPress it always tells you it’s a BuddyPress website without looking at the code.

    The reason all those themes activity look alike is because previously it was a nightmare to create something that wasn’t derivative of bp-default and it’s heavy-handed javascript. This is not the case anymore.

    In other words, this issue has already been fixed. Now it is upto the theme developers to customize the feed aesthetics to their hearts’ content.

    #176832
    wiste
    Participant

    Hi @rayela, since your original question never got answered I thought I’d give you an answer:

    As you discovered, you can disable all activity feeds for your entire site by unchecking the “activities” component on the BuddyPress settings Components tab, but as you mentioned this results in a blank home page which isn’t good.

    Unfortunately, you cannot fix this without writing code because there are no easy options to do this with BuddyPress (I feel your pain, I quit programming for a reason).

    You will need to create a functions.php or bp-custom.php as mentioned above to add custom code to. This function will redirect it so that the forum tab is the “home page” for your group and remove the “home” tab so that it’s no longer visible:

    function redirect_group_home() {
      global $bp;
      $path = clean_url( $_SERVER['REQUEST_URI'] );
      $path = apply_filters( 'bp_uri', $path );
      if (bp_is_group_home() && strpos( $path, $bp->bp_options_nav[$bp->groups->current_group->slug]['home']['slug'] ) === false ) {
        if ($bp->groups->current_group->is_user_member || $bp->groups->current_group->status == 'public') {
          bp_core_redirect( $path . 'forum/' );
        }
      }
      
      $bp->bp_options_nav[$bp->groups->current_group->slug]['home'] = false;
    }
    
    add_action('bp_init', 'redirect_group_home');

    I’m not sure if you’re still active here but I felt after your amiable responses you deserved a real answer.

    #175885
    Shmoo
    Participant

    Better customisation options of the activity stream: ie to be able to define a set of “or” filters for content type, and who. So (with plugin support) I can define a feed to include things from “me or friends or followers” showing “topics and topic replies and posts and new users” (and ideally be able to have a permalink to this with no other fluff on display). The current activity feed selectors are a mess and don’t provide what most people want to see.

    Should be nummer 1.

    And I don’t even want lots of new features to the activity stream but first just an easy way to customize the default lay-out would be so much pleasant!

    All BP pages are very easy to customize, move code around to give the page an unique feeling but when it comes to the activity stream the code is very fixed.

    There are about 50-75 Premium BuddyPress themes online for sale and 99% of them have the same activity stream page-layout. While all those premium theme developers can do lots of customization to all other pages the activity stream is like Twitter’s Bootstrap to BuddyPress it always tells you it’s a BuddyPress website without looking at the code.

    #175826
    jedifunk
    Participant

    @modemlooper thanks for the help!

    yes, the documentation on this site for the theme override is extremely limited and definitely confusing…

    the single page on this site talking about the add_theme_support function was very vague, and not worded well… certainly giving the impression that it WAS necessary in order to override.

    to use custom pages/loops/etc, do i still need to have the /buddypress/activity/file.php in my theme?

    lastly, i don’t like the idea of being required to load another css file to override styles… i’d prefer to just use the styles.css file. it also makes writing the css a pain since everything requires the use of the #buddypress ID… not very elegant IMO.

    with 1.8 it was working great, i had the default styles off, and was able to add my bootstrap classes, and style only what i needed.

    am i missing something here?

    #175246
    Matt McFarland
    Participant

    Yes this is very easy to do.

    Adding the featured image of a wordpress post into a buddypress activity stream can be done by doing one of the following. I’d like to add that I had trouble finding out how to do this at first and it took a lot of searching. The first copypasta I have for you was actually found on these very forums. However, due to so many people asking this question (and not getting answers) it is buried and very difficult to find. So without further ado please enjoy…

    You can either edit the activity page activity/entry.php or just copy paste the following function into your functions.php file.

    
    function icondeposit_bp_activity_entry_meta() {
     
        if ( bp_get_activity_object_name() == 'blogs' && bp_get_activity_type() == 'new_blog_post' ) {?>
            <?php
            global $wpdb, $post, $bp;
            $theimg = wp_get_attachment_image_src(  get_post_thumbnail_id( bp_get_activity_secondary_item_id() ) );
            ?>
            <img src="<?php echo $theimg[0]; ?>" >
     
        <?php }
     
    }
    add_action('bp_activity_excerpt_append_text', 'icondeposit_bp_activity_entry_meta');
    

    If you want further customization, I recommend editing activity/entry.php

    #175189
    Shmoo
    Participant

    I think it’s too complex for a Plugin because this is too specific to your needs , plugins are great when they serve lots of people. But you could alter the layouts if you know how the template structure in WordPress and BuddyPress works.

    Give each page it’s own custom Activity-loop template and you should be able to make whatever view you want on each page that shows an Activity.
    By default each page uses only one ( the default ) activity-loop template to create the activity content. But if you like you can duplicate those files and customize them for each page. Just duplicated the needed files and rename them to something like this: activity-groups-loop.php or activity-members-loop.php than make sure at the groups page the loop to the activity doesn’t load the default activity templates but your custom ( duplicated ) files.

    I really love how easy this works in WordPress and BuddyPress not a lot of CMS software have this easy to use template structure and logic.

    The only real problem I found with this is that the Activity-contents are made by very dynamic code – it’s very difficult to alter the items that will be shown at the page such as time, name, avatar , activity-title and the real content compared to other BuddyPress pages.

    I’ve made a Trac. Ticket for BuddyPress 2.0 , so lets hope somebody very smart could change the code a bit and we can really alter our Activity contents too.
    https://buddypress.trac.wordpress.org/ticket/5261

    htrev
    Participant

    Just to clarify what’s happening here:

    The search results page I’d like to see is the standard WP one – i.e. showing matching blog posts. This is what happens when the home page is set to show latest posts (in Appearance > Customise > Site front page), which is fine. However my site’s home page is set it to show the default Buddypress Activity page, and now the search results (i.e. a URL of the form http://www.site.com/?s=query) shows matching activity updates. This applies whether I’m using a custom theme or the default Buddypress theme. Is there any way this can be configured so that this page shows matching blog posts instead?

    #174737
    Shmoo
    Participant

    True, but I was thinking of using the FitText.js plugin to prevent usernames from going to a second line when they become longer at this index page.
    While working with min-heights on each element I try to control each member ‘widget’ having the same overall height.

    I would like to use BuddyPress as an upgrade (redesign) of an exciting bbPress site that has been broken from upgrading from bbPress 1.0 -> 2.0.
    This site offers news articles, video + audio Post Formats and support trough bbPress but has grown into some very active ‘online-public-bar’ where people like to post a lot of Off Topic stuff mainly on the forum-side of the of the website while the homepage (news) is often overlooked.

    Using the Groups section for all Off Topic forum discussions and use the bbPress forums module only for real On Topic support would make this website more social and getting more people involved though the Activity-stream.
    Plus I could make a custom audio-postformat (Podcasts) query on the BP Groups page to list all latest Podcasts.

    Redesign of the Groups section. Replacing the Avatar for an icon that will be the same through the entire site and people will recognize it as Off Topic stuff.
    Maybe the font-size, spacing and coloring is still a bit off but I’ll look at this at the end, right now it using the Global styles.

    groups - change

    #174517
    Martyn_
    Participant

    * Better customisation options of the activity stream: ie to be able to define a set of “or” filters for content type, and who. So (with plugin support) I can define a feed to include things from “me or friends or followers” showing “topics and topic replies and posts and new users” (and ideally be able to have a permalink to this with no other fluff on display). The current activity feed selectors are a mess and don’t provide what most people want to see.

    * A way to select which filters and views are available in activity/, and persistently set the default activity feed view (from the admin panel)

    * live activity updates

    * A reply by PM hook into bbpress

    * Better options for users to self delete

    * Improved management/rethink of the tabs on profile pages (because this rapidly piles up as you add in plugins) : “Activity Profile Messages Friends Following Followers Location Groups Blog Forums Events Gallery Settings Links” Is not viable for a one line menu bar – this is maybe a display issue, but…!

    * be able to pass a function to the members loop, thats called to determine the display order (e.g. so I can easily order by City or age or any xprofile field)

    Maybe these are already there, but these are the things that are bugging me as a non-expert dev right now…

    #174322
    Henry
    Member

    As an example, if you wanted to align-right the “active time ago” text you could put this in your theme’s style.css

    .item-meta .activity {
        float: right;
    }

    As I said though, there are many ways to do it depending on your exact needs. text-align: right is an example. Make the parent element position: relative; and then use position: absolute; right: 0; top: 0; is another. The best approach will all come down to what you’re trying to achieve visually overall.

    #173719

    In reply to: Avatar-less

    aces
    Participant

    @barboncaves
    Have you tried disabling Show Avatars in WordPress Admin > Settings > Discussion? ( – the avatars section is lower down the page )

    You might need to customise your child theme’s style sheet. Using bp-default the following might be useful:

    
    .activity-list .activity-content {
        margin-left: 25px;
    }
    

    I haven’t checked anywhere else…

    #173340
    strangechild
    Participant

    Oh and I was able to get one of my pages out of “lockdown” temporarily.

    http://www.cbpmag.com/activity/

Viewing 25 results - 401 through 425 (of 831 total)
Skip to toolbar