Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'custom activity page'

Viewing 25 results - 1,026 through 1,050 (of 1,252 total)
  • Author
    Search Results
  • #15210
    Mandy
    Participant

    Hi. I have a multi-sites setup and I just installed the blog plugin to allow groups to have their own blog. What I’d like is to have the main site blog display a feed of all the activity happening in the individual group blogs.

    I’m sure this is possible, I’m just confused on how to actually do it.

    Also, is the group navigation bar shown on this site: http://commons.gc.cuny.edu/groups/improving-math-learning/
    something that is standard? Or was that custom built? And if custom, what file would need to be edited?

    Thanks for your help. A few pointers and I will get moving in the right direction.

    #15207
    Necrokeeper
    Participant

    Hi there,

    Here is the context for my issues, I’m merging two wordpress installation :

    installation 1 : wordpress 2.9 single user with buddypress 1.2.5.2 installed
    Installation 2 : wordpress 3.0 multisite enabled

    expected result : wordpress 3.0 + buddypress 1.2.5.2 + users merged from install 1 and install 2 (+ all datas recovered : activity, messages, friends…)

    I merged successfully the users (changing every single id in every single tables of the DB with a script of mine).
    I merged the users’ data (activity, messages, friends… etc… with a script of mine too).

    Everything’s runing fine :)
    But, because there is BUT : I’m unable to access to the members profile page.

    Let’s say i’m working on http://test.mydomain.com/wordpress

    http://test.mydomain.com/wordpress => main wordpress blog
    http://test.mydomain.com/wordpress/buddypress => side blog with buddypress running (using define( ‘BP_ROOT_BLOG’, 3); in wp_config)

    So if I go to :
    http://test.mydomain.com/wordpress => everything’s ok, the blog is displayed.
    http://test.mydomain.com/wordpress/buddypress/groups => everything’s fine, groups are displayed
    http://test.mydomain.com/wordpress/buddypress/groups/a-dummy-group/ => everything’s fine
    http://test.mydomain.com/wordpress/buddypress/members => everything’s fine, I got the members list
    …
    http://test.mydomain.com/wordpress/buddypress/members/admin/ => FAIL : the member list is displayed.
    http://test.mydomain.com/wordpress/buddypress/members/admin/groups => FAIL : same as above.
    http://test.mydomain.com/wordpress/buddypress/members/othermember/ => and so on…

    Here is the content of my wp-config :
    `define( ‘MULTISITE’, true );
    define( ‘SUBDOMAIN_INSTALL’, false );
    $base = ‘/wordpress/’;
    define( ‘DOMAIN_CURRENT_SITE’, ‘test.mydomain.com’ );
    define( ‘PATH_CURRENT_SITE’, ‘/wordpress/’ );
    define( ‘SITE_ID_CURRENT_SITE’, 1 );
    define( ‘BLOG_ID_CURRENT_SITE’, 1 );
    define( ‘BP_ROOT_BLOG’, 3);`

    Here is the content of my bp-custom.php :
    `define( ‘BP_DEFAULT_COMPONENT’, ‘profile’ );
    define( ‘BP_ENABLE_USERNAME_COMPATIBILITY_MODE’, true );
    define ( ‘BP_IGNORE_DEPRECATED’, true );`

    EDIT :
    I’m using the default buddypress theme

    Here is my .htaccess :

    `RewriteEngine On
    RewriteBase /wordpress/
    RewriteRule ^index.php$ – [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
    RewriteRule . index.php [L]`

    It has been severals hours I’m looking for a solution on google…

    Thanks !

    Mark
    Participant

    Can anyone else think of any other snippets I can add to the bp-custom.php to block new posts in one specific blog showing up in the activity stream?

    ie. My blog_id is 282 and I have tried the 2 codes above?

    Mark
    Participant

    Ahh, thanks @nuprn1 – I have a bp-custom file, Im just being stupid. Just the numerical id to find. Thanks again.

    rich! @ etiviti
    Participant

    search up on placing code snippets in the theme’s function.php or creating a bp-custom.php

    the blog_id is not the name of the blog but rather the numerical value in the db for that blog.

    rich! @ etiviti
    Participant

    functions/bp-custom file – but with that code snippet you won’t be able to recover the data going forward (blocked from the db) – make sure you test it

    Roger Coathup
    Participant

    @markhahnel

    You can adapt the code snippet in here by changing the blog id: https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/posts-of-the-main-blog-in-site-wide-activity/

    If your theme follows the default structure, you’ll find your activity loop in my-theme/activity/activity-loop.php

    Also have a look at the custom loop documentation (click documentation under support tab) on this site

    youngmicroserf
    Participant

    Hi,

    I’m still fairly new to BuddyPress. I’ve been looking around for a while but cannot find specific information.
    In would like to remove the activity to be displayed on the member profile and was wondering about how to do that. I could probably remove the code form the template, but I was wondering if there is a more elegant solution like removing an action – alas, I didn’t find the appropriate one to remove.

    I cannot completely remove the activity component, as I need groups to work. I just want the contributions to be ONLY visible in the groups, not the profiles. If I remove the code (once I found it) from the members template section, will BP still resolve URLs like member/abc/activity and show the content on a generic page?

    More generally, does anyone know of good customizing tutorials? Or hook directories? I found this one – http://etivite.com/groups/buddypress/hooks/ – but I’d really like to understand the code and template structure from the beginning.

    Thanks for any help!

    Pisanojm
    Participant

    @nuprn1 @mercime @boonebgorges

    Thank you for leading me to the code to get to this… I basically just did a super-slight mod of Rich’s code. Here is what I used and I put it in the the bp-custom.php file in the plugins directory:

    `<? function my_group_loop_activity_item() {

    global $bp, $activities_template;

    if ( !bp_is_active( ‘activity’ ) )

    return;

    if ( !bp_group_is_visible() )

    return;

    $show_hidden = false;

    /* Group filtering */

    $object = $bp->groups->id;

    $primary_id = bp_get_group_id();

    if ( ‘public’ != $bp->groups->current_group->status && groups_is_user_member( $bp->loggedin_user->id, bp_get_group_id() ) )

    $show_hidden = true;

    /* Note: any params used for filtering can be a single value, or multiple values comma separated. */

    $defaults = array(

    ‘display_comments’ => false, // false for none, stream/threaded – show comments in the stream or threaded under items

    ‘sort’ => ‘DESC’, // sort DESC or ASC

    ‘page’ => 1, // which page to load

    ‘per_page’ => false, // number of items per page

    ‘max’ => 1, // max number to return

    ‘include’ => false, // pass an activity_id or string of ID’s comma separated

    ‘show_hidden’ => $show_hidden, // Show activity items that are hidden site-wide?

    /* Filtering */

    ‘object’ => $object, // object to filter on e.g. groups, profile, status, friends

    ‘primary_id’ => $primary_id, // object ID to filter on e.g. a group_id or forum_id or blog_id etc.

    ‘action’ => ‘new_forum_topic’, // action to filter on e.g. activity_update, new_forum_post, profile_updated

    ‘secondary_id’ => false, // secondary object ID to filter on e.g. a post_id

    /* Searching */

    ‘search_terms’ => false // specify terms to search on

    );

    $r = wp_parse_args( $args, $defaults );
    extract( $r );

    $filter = array( ‘user_id’ => false, ‘object’ => $object, ‘action’ => $action, ‘primary_id’ => $primary_id, ‘secondary_id’ => $secondary_id );

    $activities_template = new BP_Activity_Template( $page, $per_page, $max, $include, $sort, $filter, $search_terms, $display_comments, $show_hidden );

    while ( bp_activities() ) : bp_the_activity(); ?>

    <div class="item-descb" id="activity-“>

    Latest Topic Activity in the Group:

    <a href="”>

    <?php endwhile;

    }

    add_action( ‘bp_directory_groups_item’, ‘my_group_loop_activity_item’ );
    ?>`

    I also added this to the default.css to give me a little more control of the output (changed the div in the original to match below):

    ` ul.item-list li div.item-descb {
    margin: 10px 0 0 64px;
    font-size: 11px;
    color: #888;
    width: 85%;
    }
    `

    THANKS AGAIN! Here is a pict completed:
    http://mustech.net/holder/grouptopic2.jpg

    #92085

    In reply to: Theme won’t update

    strategicblend
    Participant

    Yeah you probably shouldn’t visit the URL – its a live staging site and always changing. I only placed it above per forum etiquette. If you need examples of actual code or the actual php files themselves I can certainly provide.

    (UPDATE: I’ve told the dev team to temporarily hault any activity so you should be able to see the fully rendered site at that URL and specifically note the pages aren’t changing).

    When I switch to the original BP theme everything DOES work. But just to note, I don’t have the option of using that theme – it has to be my own custom theme.

    #91906
    Roger Coathup
    Participant

    Hej Patrik – are you building your own theme for this (writing PHP, HTML templates, etc.)?

    You’ll have to modify the templates for your profile page (e.g. members/single/home.php in the default theme) to include your custom activity loop.

    You can access the current user_id within that page, and pass it to your custom loop.

    #14819
    Thibaut
    Participant

    Hi,

    I saw that on this site groups had customized features. For exemple it not always the same group homepage. Sometime activty stream, sometime other.

    What I would like to do is to delet groups activity stream and to have the group’s forums instead in homepage.

    However, question 2, is it a good idea ? When I see the activity stream her I suspect that forum activity is not fully integrated in buddypress. I don’t see the “reply” button for example.

    Thanks for any informations about this topic !

    Thibaut
    Participant

    Hi,

    I’m trying to figure out how can we display an activity stream summary on the homepage.

    Basicly, we have a customized homepage template and at the bottom of this template we would like to add two recent activity boxes. One should display a selection of the recent posts and another should display the recent activity extracted from the activity stream with portraits.

    This should look like this : http://www.flickr.com/photos/thibautdeveraux/4902161455/

    I found a widget plugin displaying activity stream : http://buddydev.com/buddypress/buddypress-sitewide-activity-widget-for-buddypress-1-2-and-above/

    This would be perfect as I would be able to make some modifications to display the content as needed. Yet i don’t find a way to display a widget in a page template.

    I tried to find out the functions in buddypress that would display such information yet I’m still an amateur at coding.

    If someone knows an existing solution or where to find pieces of code that would help it would be a great help !

    Thanks

    #91108
    lorenzo
    Member

    Hi Roger (and everyone else!), i think i’m going somewhere now, but will need some extra input. hopefully the thread will be an additional useful example!

    ok, this is where i am at: default theme with the ajax controllers at the top of the activity stream. in the activity folder of the child theme i have an index.php and activity-loop.php and and entry.php.

    basically i’ve got a ‘private’ area with content accessible only to staff. for normal post/pages i have is an extra check based on a custom field for posts and the category for pages like the following and then based on the group membership i either show a message or the actual content:

    http://pastebin.com/E4cnkwZS (top)

    now, because the group is private, the BP stuff is not showing in the activity stream already, which is good, but the posts/pages bypass my checks and come up in the list of activities showing the actual content which should be private instead.

    so, here is what i came up with so far. using the index.php i check the group membership and then load two different activity-loops:
    http://pastebin.com/E4cnkwZS (bottom)

    how would you exclude stuff? in the bp_has_activity function there is an ‘include’ option which allows to filter content, but not an ‘exclude’ one. it might be trivial to go around it, but not sure how. furthermore if you use the dropdown filter i have the impression that the arguments are passed dynamically resetting whatever is passed in the original query (like in your example and some i’ve tried using the same model).

    i would very much appreciate any further suggestion! thanks

    Mark
    Participant

    I’m running worpdress 3.01 and bp 1.2.5.2 and I have a custom theme. I have the acitivty feed running as the home page and when you click on view of someone who registered it takes you to the correct url but it doesn’t display the css correctly. I’m not a dveloper and I was wondering if its an issue with a template file? Any feedback where to start would be helpful

    Thanks,

    #90740
    govpatel
    Participant

    I am using latest wordpress 3.0.1 and default twentyten child theme and all i did was transfer folders using buddypress theme pack and go in menu and create a custom menu and use it as primary menu add all the pages in menu and than create custom links for buddypress like for /activity /members/ /forums and so on and they work fine.

    #90689
    Roger Coathup
    Participant

    @javipas – you need to be a little clearer on your setup. In the default setup / theme, the activity stream is a separate page, and not something that shows up on individual blogs / blog pages.

    Are you using a custom theme with a custom activity stream, or an activity stream widget in your blogs?

    The standard activity stream loop shows activity across your entire BuddyPress installation. If you want to filter the activity steam to just show comments relating to a specific blog, you can write your own custom activity loop:

    Take a look at this documentation, in particular filtering on the primary_id to just show posts for a specific blog id: https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/

    lorenzo
    Member

    hi everyone,
    i’m struggling a bit with the customisation of the activity stream. it is my understanding that not all activity is actually appearing in the main activity stream.

    i have looked at the codex and although it seems to have a number of options, i’m not sure how to make a custom function for my theme that allows to add all activities in public groups to come up in the main activity stream. can anyone suggest a possible solution?

    the second issue i have is that i would like all activities related to a particular group not to show in the stream. so for example, if person x is posting in the blog i would like to hide this activity from people not in the private group. Note i already have an extra step in the loop which checks for group membership and hides the post/page from non-members, i just want to hide it from the stream as well, but i can’t figure out where to do this.

    any guidance/suggestion will be very much appreciated!

    #90472
    Hugo Ashmore
    Participant

    You’ll probably want to create a custom loop then in whatever page, have a look at this page of the codex:
    https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/

    #90364
    John
    Participant

    Hello,

    Thanks you very much for helping me.

    I’ve followed your link but I’ve got a problem.

    (3) Keep your old BuddyPress user / group avatars
    I don’t find my file bp-custom.php (at the following location : wp-content/plugins/buddypress/), should I create one or is it at an another location ? I’ve looked but I didn’t find anything.

    (4) Redirect previous BuddyPress permalinks
    I’ve edited my .htaccess but when I click on my name from a comment I’ve made on a post on the blog’s network or if I try to view an activity I end up on the same page : the Members Directory. I’m using the default buddypress theme on the blog.

    Did I make a mistake on my .htaccess ?

    Here’s the path of my installation, using Wamp :
    http://127.0.0.1/themainblog/ – the main blog
    http://127.0.0.1/themainblog/network/ – where buddypress is enabled.
    http://127.0.0.1/themainblog/blogname/ – a blog from the network

    Here’s how I edited my htaccess :

    RewriteEngine On
    RewriteBase /themainblog/
    RewriteRule ^index.php$ – [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    RedirectMatch 301 ^/members/(.*)$ http://127.0.0.1/themainblog/network/members/$1
    RedirectMatch 301 ^/groups/(.*)$ http://127.0.0.1/themainblog/network/groups/$1
    RedirectMatch 301 ^/blogs/(.*)$ http://127.0.0.1/themainblog/network/blogs/$1
    RedirectMatch 301 ^/forums/(.*)$ http://127.0.0.1/themainblog/network/forums/$1

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
    RewriteRule . index.php [L]

    Best regards,

    #14420
    Max
    Participant

    Stuff: WP3.0.1 BP1.2..5 HostGator, Addon Domain, Linux CentOS, No Customization or additional Plugins, All fresh install.

    Problem: When I create a user blog within the parent blog I am unable to click on Activity, Members, Groups, Forums and Blogs without getting a “Page Not Found”, Also, don’t know if this is related, but header image shows home not the created blog header. http://caminobuddies.com http://caminobuddies.com/hedgehog

    I have read through here and tried suggestions but with no avail.

    Tatiana
    Participant

    I have a community of poets and so most of their posts are poetry, as you could imagine.

    The written poem
    goes by lines
    of a certain length,
    and breaks often.

    Again, back to the activity stream, it presents posts (poems) in a horrible unreadable fashion – a paragraph of the one single line where everything is smashed together (excerpts).
    I wish there was an option in settings to choose between a whole post or an excerpts on the activity page, as it is given in the wordpress reading settings:

    “For each article in a feed, show
    o Full text
    o Summary”

    If anybody can tell me what and where to change in codes to fix it, I would really appreciate.

    http://svetkidoma.net/activity (it is all in Russian, sorry, but you will get a picture)

    Roger Coathup said:

    “I don’t have a problem with paragraph breaks in the activity stream. My blog posts are being shown correctly with the breaks. I’m using a default installation of BP1.2.5.2

    Paragraphs can be removed by a filter in WordPress / BuddyPress. Have you made any changes to your functions.php or bp-custom.php to turn off the ‘autop’ filter? i.e. do you have any code like this in those files:

    add_action(“init”,”remove_autop_filters_from_activity”);
    function remove_autop_filters_from_activity(){
    remove_filter( ‘bp_get_activity_content_body’, ‘wpautop’ );
    remove_filter( ‘bp_get_activity_content’, ‘wpautop’ );
    }

    Perhaps there is something in the blog template you are using that is doing this?”

    #89058
    Hugo Ashmore
    Participant

    That sounds like you actually need a custom front page, but what do mean by ‘click it’ that’s a rather loose term click what?

    Why does that page not simply have the text/content you want with a simple link to the registration page and also a simple login, registered users will login and be directed to their profile page by the plugin mentioned earlier. What you do with the main site home link is another question, suppose it’s possible to have that custom frontpage display your intro page to all logged out users and once logged in if a member navigates back to that page it will display ? activity loop / main site blog posts

    #88915
    Nahum
    Participant

    @modemlooper contextual sidebars a definite must when working towards the perfect bp theme, as mentioned by nit3watch. I hate having to create them and loading up the sidebar.php with if statements to know what page you are on. Also a blog network focused theme combining the groups/blog components to work together. as mentioned here. https://buddypress.org/community/groups/requests-feedback/forum/topic/why-couldnt-the-groups-component-structure-work-for-blogs/
    Custom field and post tags,cats, recognition by the activity stream with index file that can be manipulated to function like a site wide tags replacement.
    Tagging and categorization for blogs. widgets and page templates for each.
    Bring more individual blog info out front(posts, comment_counts, ) so that member blogs content can be categorized, highlighted and maneuvered more easily.
    Pull in user blog info into their profiles, posts count, draft counts, quick links to their blog admin, widgets. Blog management options or panel.
    Include follow blog streams feature, similar to follow people, but instead it pulls in new_blog_post activity into Blogs I follow activity tab.
    The perfect blog network bptheme, basically.

    odiggy
    Participant

    if ( bp_has_activities('action=activity_update&per_page=1') ) : bp_the_activity();

    I’m using the above code in reference to:

    http://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/

    My goal is to display the most recent status update in a widget. So far I get the 2nd to 1st update if I specify 2 per page. If I display 1 I get nothing. If I display 5 I get 4 (minus the true latest update). If I leave it as default I get 19 (minus the true latest update).

    Any ideas to fix this will surely earn you a beer! :)

Viewing 25 results - 1,026 through 1,050 (of 1,252 total)
Skip to toolbar