Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'custom activity page'

Viewing 25 results - 501 through 525 (of 1,252 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.

    #183144
    dugfunny
    Participant

    http://www.imagebam.com/image/d782b2327727553

    When i click on a post off of my activity wall, it looks like this. I’m sure it’s a css issue but i cant figure it out. below is my child style.css , can anyone help? Thanks!

    */
    /*
    * Please add your custom styles below
    */
    /*Hide Activity Page Filter Choice Drop Down Bar*/
    #activity-filter-select {
        display: none;
    }
    
    /*Make crop avatar square into a circle*/
    #avatar-crop-pane { 
    	border-radius: 50%; 
    }
    
    /*Raise Send Message and Go To Top Buttons To Make Room For ChatBar*/
    .kleo-quick-contact-link {
        background-color: rgba(0, 0, 0, 0.4);
        border-radius: 3px;
        display: block;
        margin-bottom: 4px;
        padding: 12px 14px;
        transition: all 0.2s ease-in-out 0s;
    }
    .kleo-go-top {
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
        bottom: 25px;
        opacity: 0;
        padding: 12px 14px;
        position: fixed;
        right: -60px;
        transition: all 0.2s ease-in-out 0s;
        z-index: 100;
    }
    
    /*ChatRoom*/
    #post-35 {
    	border: solid !important;
    } 	
    
    /*Remove Groups Option*/
    #groups-list-options {
    	display: none;
    }
    
    /*Remove Favorites*/
    .button.fav.bp-secondary-action {
        display: none;
    }
    #activity-favorites {
    	display: none;
    }
    
    /*Remove User and Photo Above Update Box*/
    .activity-greeting {
    	margin-left: 1px !important;
    }
    
    /*Capitalize Group Titles*/
    .item-title > a {
        text-transform: uppercase;
    }
    
    /*Remove Whats New Avatar */
    #whats-new-avatar {
    	display: none !important;
    }
    
    /*Remove Forum Author Footer */
    .bbp-footer {
    	display: none;
    }
    
    /* Align Group Widget Titles */
    .item-title {
    	margin-top: 31px;
    }
    
    /* Group Body Adjusting*/
    .template-page.col-sm-6.col-sm-push-3.tpl-3lr {
        padding-top: 0;
    }
    
    /* Remove Top Total Group Count*/
    #pag-top {
        display: none !important;
    }
    
    /* Remove Top Total Group Count Small*/
    #groups-all span {
        display: none !important;
    }
    
    /* Remove Top All Groups Text*/
    #groups-all {
        display: none;
    }
    
    /* Logo Adjusting*/
    .navbar-header:before, .navbar-header:after {
        padding-top: 15px;
    }
    .navbar-header .logo {
    	margin-left: -22px;
    }
    
    /* Search Knowledge Base Logo Alignment */
    .widget form#bbp-search-form .button {
        margin-top: 3px;
    }
    
    /* Sidebar Adjusting*/
    .inner-content {
        margin-top: -52px;
    }
    
    /* Remove Bottom Of Header Border*/
    .container-wrap.main-title.alternate-color.border-bottom {
        display: none;
    }
    
    /* Login Widget White Text*/
    #bp-login-widget-form {
        color: white;
    }
    bp-login-widget-user-login {
        color: white;
    }
    bp-login-widget-submit {
        color: white;
    }
    .input {
        color: white;
    }
    
    /* Answers Search Bar Resizing and Alignment*/
    .dwqa-search-input {
        margin-left: 856px !important;
        width: 35% !important;
    	height: 50px !important;
    }
    
    /* Answers Question Bar Resized*/
    #question-category {
        width: 75%;
    }
    
    /* Answers Gray Bar Made White*/
    .kleo-page {
        background: none repeat scroll 0 0 #FFFFFF;
    }
    
    /* Answers Body Resize and Align*/
    #dwqa-submit-question-form {
        margin-left: 20%;
        margin-top: 3% !important;
        width: 60% !important;
    }
    
    /* Remove P In Answers Footer*/
    #mce_55 {
        display: none;
    }
    
    /* Answers Search Bar Icon Alignment*/
    .dwqa-search-submit.fa.fa-search {
        margin-right: 15px;
    }
    
    /* Answers Search Bar Background Color*/
    .dwqa-search .dwqa-search-form {
        background: none repeat scroll 0 0 #FFFFFF;
    }
    
    /* Resize Question Category Box*/
    #question-category {
        height: 31px;
    }
    #question-tag {
        height: 31px;
    }
    
    /* Line Beneath Answers Search Bar Removal*/
    .filter-bar {
        border-top: 0 none !important;
    }
    
    /* Line Beneath Header Removal*/
    .kleo-main-header {
        border-bottom: 0 none !important;
    }
    
    /* Groups Subtext Alignment*/
    #groups-list-options {
        text-align: center;
    }
    
    /* Remove Bottom Total Group Count*/
    #group-dir-count-bottom {
    	display: none;
    }
    
    /* Remove All Members Count On Profile*/
    #activity-all span {
        display: none !important;
    }
    
    /* Remove Forum Meta Info*/
    .bbp-topic-started-by {
    	display: none;
    }
    .bbp-topic-freshness {
    	display: none;
    }
    .bbp-topic-voice-count {
    	display: none;
    }
    .bbp-topic-reply-count {
    	display: none;
    }
    .bbp-reply-author {
    	display: none;
    }
    .bbp-topic-author {
    	display: none;
    }
    
    #bbp-topic-revision-log-464-item-465 {
    	display: none;
    }
    
    /* Remove All Members Count On Profile*/
    #members-all span {
        display: none !important;
    }
    
    /* Center Widget Titles*/
    .widget-title {
        text-align: center;
    }
    
    /* Remove All Members Count On Members Page Top*/
    #member-dir-count-top {
        display: none;
    }
    
    /* Remove All Members Count On Members Page Bottom*/
    #member-dir-count-bottom {
        display: none;
    }
    
    /* Logo Resize*/
    .navbar-header .logo {
        float: left;
        height: 88px;
        overflow: visible;
        width: 286px;
    }
    
    /* Forum Header Removal */
    .bbp-header {
        display: none;
    }
    
    /* Forum Center Text and Photo */
    .bbp-reply-content {
        margin-left: 18px !important;
    }
    
    /* Time Last Logged In Removal */
    .item-meta {
        display: none;
    }
    
    /* Chatroom timestamp gone */
    .quick-chat-history-timestring {
        display: none;
    }
    
    /* Ask Question Body Dropped */
    #submit-question > form {
        margin-top: 45px;
    }
    
    /* Answers Title Removal */
    .dwqa-page-title {
        display: none;
    }
    
    /* Widget Avatar Size */
    .widget.buddypress div.item-avatar img.avatar {
        border-radius: 100%;
        float: left;
        height: 70px;
        margin: 0 8px 15px 0;
        width: 70px;
    }
    
    /* Testimonial Slider */
    kleo-testimonials {
        height: 30px;
    }
    
    /* WP Logo on admin bar */
    #wp-admin-bar-wp-logo {
          display:none;
    }
    
    /*Remove Smaller Numbers on Animated Counting Numbers on Homepage */
    .wpb_wrapper > p {
        display: none;
    }
    
    /*Dropdown Menu Alignment */
    .dropdown-menu.pull-left {
        margin-top: -3px !important;
        margin-left: 10px !important;
    }
    
    /*Username on profile Alignment */
    #item-header-content {
        margin-top: 5px;
    }
    
    /*Remove FORUM icon on profile */
    #user-forums {
        display: none !important;
    }
    
    /*Remove NOTIFICATIONS icon on profile */
    #user-notifications {
        display: none !important;
    }
    
    /*Remove last login on profile */
    #item-header-content .activity {
    	display:none !important;
    }
    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.

    JeffE
    Participant

    I’d like to have a page on my site for users to submit inspirational quotes and photos, like they would on a Facebook page. What’s the best way to do this?

    I want it to work like the Activity Stream, but I only want the stream to include posts that were made on that page, not all the other messages that get created. So what I’m thinking is that I create a custom page, have the stream on it, and somehow filter the stream so that it only shows what was entered on that page. However, what was entered on that page by a user would also appear on that user’s feed.

    Has anyone done something like this?

    #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

    Tbarnes37
    Participant

    WP 3.9.1
    BP 2.0.1
    website: localhost dev site using MAMP

    Scenario
    I am building a member home page that includes a group activity stream to provide a group “wall” sort of experience. To do this, I made a copy of the ‘activity’ folder from bp-templates/bp-legacy/buddypress and placed it in my theme folder. Then in my member homepage template, I included an activity stream by adding:
    <?php locate_template( array( 'activity/index.php' ), true, false ); ?>

    The Problem
    Everything on the activity feed works, including adding, favoriting, and deleting status updates, but when a member comments on a status update, the comment is added, animation and all, but with no content – just ‘replied’ and the ‘Reply’ button, as shown here:
    https://www.dropbox.com/s/0yh2e1b5f2fw7zk/problem.png
    However, after a manual refresh, the comment is there with all its content, working perfectly.

    Other Threads
    I have found several others posting with similar problems, but no solutions that have worked for me:

    What I’ve Tried
    I’ve tried disabling all other plugins and removing all custom functions from my theme, and there was no change. I can’t try it in a different theme, since the problem IS my theme. The problem only occurs in my custom template. When I go to the group’s page, or to a member’s page, commenting works perfectly.

    Thanks for reading!

    mth75
    Participant

    Hi all,

    I’m using BuddyPress for my website http://www.starry-night.nl.

    Starry-Night.nl is a customised buddyboss theme site with the activity page set as home page. This is also the problem with the wordpress search. WordPress Search only searches the activity page (only that context) and not the entire site/db. Searching from let’s say a wordpress page redirects to the activity wall.

    Prob. a small fix but beyond me.

    Best regards from the Netherlands,

    Marc

    ps: the search is only possible when logged in by default (wp-adminbar).

    joe35
    Participant

    Hello, I am relatively new to WordPress-Buddypress, HTML and CSS and I would like your help to figure out what happened.

    Almost a year ago I had set up a website on WordPress and I had installed Buddypress, and using a child theme and CSS I made all the customizations I wanted. After I finished and for some personal reasons I did not opened the website for some months (it was password locked) and now I’m coming to see that half of the styles I applied are gone!

    The first thing I thought was that it was my mistake – that these CSS changes were made in the core files and not in the stylesheet of the child theme. But I don’t think that this is the case. Later I thought that since then it has been a long time and many updates and may now the browsers handle some elements differently (!)…but, I don’t think so! Now I think that some how and without even update my Buddypress/Wordpress installation some of the IDs changed. Is this possible?

    For example, In the User Groups page there was an ID “#groups-sort-by” for the “Order By” drop down menu. This menu lost its style and its current ID is “groups-order-by”. Another example, in the Activity Steams page there is a “What’s new…” text area field that used to have ID “#whats-new-post-in” and now it has “whats-new”. Is this correct or am I just a VERY confused Newbie???:)

    I will fix them again but I’m afraid if this happens again then there is no meaning in having a child theme or to keep backups since they can’t help if the IDs changed. Thanks for any advice you can provide!

    #182221
    localiseorg
    Participant

    (info on wp and bp versions, etc, at bottom of this post)

    I’ve set up a page hierarchy like so:

    Socialise (sitewide activity assigned to this)
    – Members (members directory assigned to this)
    – Groups (groups directory assigned to this)
    – Forums (bbPress forum root assigned to this)

    I’m running in to some problems as follows (some of which may be theme related and I’m checking in to that with theme developer):

    a) Page titles are being overridden – eg. “Socialise” page is replaced with “Sitewide Activity” title.

    b) Page hierarchy missing from breadcrumbs – eg. Members page has breadcrubs: Home / Members – should be Home / Socialise / Members

    c) When viewing a group, I’m getting a blank page…

    I’m using standard WP ‘page’ menu link type, set to Groups to get to my group directory page (which is working fine), the resultant URL /socialise/groups/

    But then when I click on a group (either in the groups directory or anything else that provides a link to a group), the individual group page is blank. Example URL: /socialise/groups/test-group/

    I have a hunch that it’s the page hierarchy that’s throwing it, in other words I assume BP has hard-coded assumption that all directory pages (such as Groups / Members / etc) are top-level.

    I have same sort of problems with Members page if I put it as child page of my Socialise page.

    Resetting the pages to be top-level solves the problem but it’s very annoying as I can’t structure the page hierarchy in a meaningful manner. There are some practical reasons why I want to use a page hierarchy, specifically there are plugins such as ‘Content Aware Sidebars’ that I can configure much more succinctly when things are hierarchically structured. In addition, it guarantees that my breadcrumbs will never reflect the desired structure of my site (not that they do anyway – they also seem hard-coded somewhere to assume that key pages are at root level).

    For now I can just leave things like Members and Groups as top-level pages, but it would be most appreciated if there was some way to overcome this page hierarchy issue + fix breadcrumbs + not override page titles.

    —-

    1. Which version of WordPress are you running?

    * 3.8.3

    2. Did you install WordPress as a directory or subdomain install?

    * Uhm, no idea. I set up an account with wpengine.com and they automagically installed wp for me.

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

    * Don’t know.

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

    * No, fresh install.

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

    * Yes, and it’s still working fine now (other than issue mentioned earlier).

    6. Which version of BP are you running?

    * 2.0

    7. Did you upgraded from a previous version of BP? If so, from which version?

    * Nope, fresh install.

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

    * bbPress: Version 2.5.3
    * bbPress – Private Replies: Version 1.1.1
    * bbPress auto subscribe for new topics and replies: Version 1.0
    * Bowe Codes: Version 2.1
    * BP Blog Author Profile Link: Version 2.8.1
    * BP Direct Menus: Version 1.0.0
    * BuddyPress Follow: Version 1.2.1
    * BuddyPress Moderation: Version 0.1.7
    * Content Aware Sidebars: Version 2.0.3
    * K Elements: Version 1.4.1
    * Restrict Usernames: Version 3.4.1
    * Revolution Slider: Version 4.3.6
    * rtMedia for WordPress, BuddyPress and bbPress: Version 3.6.13
    * Social Articles: Version 1.5.1
    * Taxonomy Metadata: Version 0.4
    * User Switching: Version 0.8.9
    * WP Admin No Show: Version 1.4.3
    * WPBakery Visual Composer: Version 4.0.5

    9. Are you using the standard BuddyPress themes or customized themes?

    * Custom: Kleo theme (latest version): http://themeforest.net/item/kleo-next-level-premium-wordpress-theme/6776630

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

    * No

    11. Do you have any custom functions in bp-custom.php?

    * Not that I’m aware of.

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

    * 2.5.3 – installed separately to BP

    13. Please provide a list of any errors in your server’s log files.

    * Just one error repeated several times a few hours ago when I was setting up some widgets:

    [Tue Apr 29 23:14:25 2014] [error] [client 86.176.8.125] PHP Warning:  array_map() [function.array-map]: Argument #2 should be an array in /nas/wp/www/cluster-2399/localise/wp-content/plugins/bowe-codes/includes/widget.php on line 88, referer: http://localise.wpengine.com/wp-admin/widgets.php
    

    14. Which company provides your hosting?

    * WP Engine

    15. Is your server running Windows, or if Linux; Apache, nginx or something else?

    * Linux, I assume. Not sure what webserver, but assume Apache.

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

    axxan
    Participant

    Hi,

    i want to show custom post type “portfolio” in activity or under a new tab “Media”
    my site is basically to embed videos and audios.
    i have been searching for hours still no solution.

    http://www.journalistspages.com

    BP 1.9.2

    #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

    godavid33
    Participant

    Hello,

    I am attempting to create a unified activity loop including personal and friends activity. You would think that it would be easy to find this, but alas I am journeying into custom coding my own solution, but it seems I can’t get past the first (and likely largest) initial roadblock. I can add a tab to the profile sub navigation no problem using the follow:

    
    function my_setup_nav() {
    	global $bp;
    	
    	bp_core_new_subnav_item( array( 
    		'name' => 'My Wall', 
    		'slug' => 'wall', 
    		'parent_url' => 'http://go-david.com/fsc/members/gabriel/activity/', 
    		'parent_slug' => 'activity', 
    		'screen_function' => 'my_profile_page_function_to_show_screen', 
    		'position' => 11, 
    		'item_css_id' => 'home' 
    	) );
    	
    }
    add_action( 'bp_setup_nav', 'my_setup_nav' );
    

    and then I try to add custom content as I have seen in code snippets in other forum posts:

    
    function my_profile_page_function_to_show_screen() {
    
    	//add title and content here – last is to call the members plugin.php template
    	add_action( 'bp_template_title', 'my_profile_page_function_to_show_screen_title' );
    	add_action( 'bp_template_content', 'my_profile_page_function_to_show_screen_content' );
    	bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    }
    
    function my_profile_page_function_to_show_screen_title() {
    	echo '<h1 class="big">wall</h1>';
    }
    
    function my_profile_page_function_to_show_screen_content() {
    	echo '<h1 class="big">content</h1>';
    }
    

    But all I get, when I go to the My Wall tab is the same content as the personal tab. How can I either a.) Customize the query string bp_has_activities( bp_ajax_querystring( ‘activity’ )) in activity-loop.php or b.) Just create my own template to display here.

    The latter solution is optimal, as I know I can only pass a single scope parameter to that query string so I would rather just create my own custom loop that aggregates all of the activity.

    To clarify, I want the member’s profile activity page to be a single page with all personal, friends, and group activity (including mentions, invitations, etc.).

    Thanks in advance,
    Gabe

    **P.S. Bonus points if you explain why the activity.php template is being called**

    #180966
    j0schi
    Participant

    Hi,

    this problem just drives me crazy, i would apprechiatte any help!

    We have the latest release of buddypress and wordpress installed. this error appears with the legacy theme and as well with our custom theme, regardless of activated plugins (disabled all exept buddypress)

    here is the situation:
    – when a user comments on a activity the comment shows up
    – when he refreshed the page the comment is gone
    – when i look into the database the comment is is there
    – when i change the user id from the comment in the database to 1,2,3 it works, 5 aleready dont works
    – it doest matter if the commenting user is a admin or not. user 2 isnt a andmin but the comment apears, when i register a new user and make him a admin the comments dont apear…
    – also the comment counter dont show the comments.

    has anyone any idea how to start? i just researched the whole day on this problem and couldnt find any solution. plus its totally unlogical for me wye this dont works with every new user…

    thank you in advance! and for real, if someone ssolves this i buy you a big beer!

    regards
    joschi

    #180691
    Gem @White Rabit
    Participant

    Hi All,

    Im suing Sabia Directory and I want the user activity from the plugin to show in there BuddyPress Activity Stream. http://codecanyon.net/item/sabaidirectory-for-wordpress/4505485?WT.ac=portfolio_item&WT.seg_1=portfolio_item&WT.z_author=onokazu

    The plugin is currently not compatible with BuddyPress. Iv done some searching about and I found this page. http://codex.buddypress.org/plugindev/bp_activity_add-2/#recording-activities-for-a-custom-component

    My knowledge and coding skills are not good enough to understand what all this means. Can some one please help me out and either point me in the right direction or explain my best course of attack.

    #180133
    Paul Bursnall
    Participant

    I’ve removed the tabs on sitewide activity by commenting out lines in buddypress > activity > index.php (edited version added to child theme). This will help in reducing problems when I narrow the site width.

    I’d like to do something similar on a single member profile page but I can’t find what I’m looking for in buddypress > members > index.php / members-loop.php or buddypress> members > single > activity.php

    I want to merge the data for Mentions and Favourites in the Personal tab, and Following and Groups into a second tab (possibly renamed ‘Connections’).

    It’s also related to narrowing the site width, but partly because I find the never ending list of default tabs in Buddypress really untidy, and a turn off for users.

    I’m sure this is a 5 minute job, I just can’t find what I’m looking for?

    WP 3.8.1
    BP 1.9

    Thanks,
    Paul.

    StijnDeWitt
    Participant

    Hi BuddyPress community,

    I am developing a BuddyPress plugin with a custom BuddyPress component in it. So far I am working off the BuddyPress Skeleton Component, but that is a bit outdated. Mostly I have been able to work around the issues, but I have found myself stuck at this one issue.

    I am creating a new component called ‘bp-env’ with slug ‘env’. It has a custom screen in the user profile (main menu next to Activity etc called ‘Env’ with a submenu with currently just one screen, ‘General’) that I also want to show in it’s separate index page. It has an env/index template so we should be able to visit mysite.com/env and see the index page for the bp-env component. This is working somewhat, but only with some nasty hacks that I feel are probably not needed if I would just understand BuddyPress better.

    I have a function

    function bp_env_load_template_filter($found_template, $templates) {

    based on the one from the skeleton component. Inside that function I see this line:

    // note: this is only really relevant for bp-default themes as theme compat
    // will kick in on its own when this template isn’t found
    $found_template = locate_template(‘members/single/plugins.php’, false, false);

    I don’t really get what this does and I really wonder whether I don’t have to change the path given to locate_template. I don’t see any relationship between members/single/plugins.php' and my templates at 'my_plugin/includes/templates/buddypress/env/'... At that location I have anindex.phptemplate that should be able to show the screen for my env component when requested separately (e.g. via mysite.com/env) and ageneral.phpfor the 'General' screen for my component that is shown when we navigate toEnv / General` within the user’s profile.

    Below that line I added this code. It was the only way I see for now to make BuddyPress pick up my index.php template, but probably that’s just because I am a n00b… 🙂

    // get template from $templates array and strip the php extension
    $template = str_replace( ‘.php’, ”, $templates[0] );

    if ($template == ‘env/index’) {
    $found_template = CC_PLUGIN_DIR . ‘/includes/templates/buddypress/’ . $template . ‘.php’;
    return apply_filters(‘bp_env_load_template_filter’, $found_template);
    }

    $bp->env->template = $template;
    // add our hook to inject content into BP
    add_action(‘bp_template_content’, create_function(”, ‘
    global $bp;
    bp_get_template_part($bp->env->template);
    ‘));

    Eventually I got this to somewhat work by copying my page template into ../env/index.php, but I don’t think it is supposed to work this way. Inside the copied page template I now have this:

    <?php
    while ( have_posts() ) : the_post();
    ?>
    <article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
    <?php if ( ! is_front_page() ) { ?>
    <h1 class=”entry-title”><?php the_title(); ?></h1>
    <?php } ?>

    <div class=”entry-content”>

    <?php /*
    Here, we fill in the BuddyPress template. This should
    normally work by the page template requesting the_content()
    and BuddyPress selecting our template based on the URL,
    but we did not yet get this to work, so we do it hardcoded
    for now…

    // This code is not working atm…
    <?php the_content( __( ‘Read more →’, ‘ward’ ) ); ?>
    */ ?>

    <div id=”buddypress”>
    <?php do_action( ‘bp_before_member_home_content’ ); ?>

    <div id=”item-body” role=”main”>
    <?php do_action( ‘bp_before_member_body’ );

    // This should not have to be hardcoded I guess….
    bp_get_template_part( ‘env/general’ );

    do_action( ‘bp_after_member_body’ ); ?>
    </div><!– #item-body –>

    <?php do_action( ‘bp_after_member_home_content’ ); ?>
    </div><!– #buddypress –>
    </div><!– .entry-content –>

    <?php get_template_part( ‘content’, ‘footer’ ); ?>
    </article><!– #post-<?php the_ID(); ?> –>

    <?php
    comments_template( ”, true );
    endwhile;
    ?>

    As you can see I am completely copying both the page template from my theme (Ward) and the default BuddyPress code that renders the stuff around the screen on the Profile page…

    Any tips for where to look on how to do this properly would be greatly appreciated!

    -Stijn

    terraling
    Participant

    I’m looking for some guiding principles here about the best way to deal with some relatively complex queries.

    I have a location-based site running WP and BP (latest of each) that geo-tags everything as it is created (users, activity, some CPTs etc.)

    On the front end, when a user browses the members directory, for example, they see only the other users within an x-mile radius (there is a slider for x).

    Similarly, activity status updates, they see only those updates within a given radius.

    At the moment I construct a custom $sql query which includes testing the lat & lng I have stored as extra xprofile fields or fields in wp_bp_activity_meta plus one or two other filters.

    This works, but I don’t know whether it is optimal, or scaleable.

    An alternative would be to do it in 2 steps: to use the normal bp loop functions to return all potential results regardless of location, and then write a PHP function to apply the radius test.

    Would the database be more efficient at running that test or does it choke on complex queries and it would be beneficial to break it up? The core BP functions are presumably highly optimised already.

    Doing it in 2 steps would mean there was some scope for caching the first set of results, doing it all in 1 rules out caching as every query will be different, barring someone refreshing the page.

    I’m asking this now because I’m about to dip my toes into adding Groups, with similar location-awareness. It shouldn’t be too difficult to replicate what I’ve done with Members and Activity, so that users only see Groups within a certain radius. But where it might get tricky is I’m contemplating going more granular. That is to say, having some universal groups and/or forums where, for example, individual forum posts are geo-tagged, so users in one area will see some of the posts and users in another area will see different posts within the same group/forum.

    I imagine the queries might get a bit hairy, and hence the question about whether to continue with custom queries or to use the BP loops as a starting point for a function which then applies the location radius test.

    Phew. Thanks.

    Jerry
    Participant

    I am using wordpress multisite 3.8.1 and buddypress 1.9. I am trying to customize my site, so I’ve created a bp-custom.php file. I’ve been reading the codex pages and I am now at an impasse.

    When I first implemented the bp-custom.php it caused severe conflicts with BotDetect CAPTCHA, so I removed that plugin. That allowed bp-custom to work properly, but is causing a conflict with users logging in or logging out. I tried remove AJAX login, but that did not help.

    Specifically, I get these two lines, the 2nd one with multiple occurrences:

    Warning: Cannot modify header information – headers already sent by (output started at /mysite/wp-content/plugins/bp-custom.php:2) in /mysite/htdocs/GotBooks_WordPress/wp-login.php on line 415

    Warning: Cannot modify header information – headers already sent by (output started at mysite/wp-content/plugins/bp-custom.php:2) in /mysite/htdocs/GotBooks_WordPress/wp-includes/pluggable.php on line 695

    My bp-custom file is located in the wordpress plugins folder. Here is my code in bp-custom:

    <?php

    // making my own functions to customize buddypress
    // by Jerry

    function bbg_change_profile_tab_order() {
    global $bp;

    $bp->bp_nav[‘profile’][‘position’] = 10;
    $bp->bp_nav[‘activity’][‘position’] = 20;
    $bp->bp_nav[‘blogs’][‘position’] = 30;
    $bp->bp_nav[‘friends’][‘position’] = 40;
    $bp->bp_nav[‘messages’][‘position’] = 50;
    $bp->bp_nav[‘groups’][‘position’] = 80;
    $bp->bp_nav[‘settings’][‘position’] = 60;
    }
    add_action(‘bp_setup_nav’, ‘bbg_change_profile_tab_order’, 999 );
    ?>

    I am on shared hosting with 1and1.com – don’t know if that makes a difference. I’ve been searching threads but can’t find a similar issue. Any help would be appreciated!

    Thanks,

    #178939
    bloew11
    Participant

    Hello

    I’m using wordpress 3.0.4 and buddypress 1.2.7. I’ve changed the Permalink on WordPress configuration to the following :
    Month and name. Example:
    http://www.mysoundfriends.com/2014/02/sample-post/"

    in the activity Stream the link to the detailpage is shown as:
    http://www.mysoundfriends.com/2012/07/alle-farben-danse/

    You can see the link on mysoundfriends.com and click on the tab “popular”

    but if you click on the link, the url is shown as the follow
    http://www.mysoundfriends.com/beli/posts/2427

    Have you any idea why it’s not working on the detail page?

    thanks in advance
    beli
    other details:
    * WP installed in a subdirectory of root
    * i’m using a customized theme (at the beginning it was bp-social) but now we changed the layout completely

    #178938
    bloew11
    Participant

    Hello

    I’m using wordpress 3.0.4 and buddypress 1.2.7. I’ve changed the Permalink on WordPress configuration to the following :
    Month and name. Example:
    http://www.mysoundfriends.com/2014/02/sample-post/"

    in the activity Stream the link to the detailpage is shown as:
    http://www.mysoundfriends.com/2012/07/alle-farben-danse/</a)

    You can see the link on mysoundfriends.com and click on the tab “popular”

    but if you click on the link, the url is shown as the follow
    http://www.mysoundfriends.com/beli/posts/2427

    Have you any idea why it’s not working on the detail page?

    thanks in advance
    beli
    other details:
    * WP installed in a subdirectory of root
    * i’m using a customized theme (at the beginning it was bp-social) but now we changed the layout completely

    #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/

Viewing 25 results - 501 through 525 (of 1,252 total)
Skip to toolbar