Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'custom activity page'

Viewing 25 results - 751 through 775 (of 1,252 total)
  • Author
    Search Results
  • gkdreamz
    Member

    I have installed the latest version of BuddyPress on a WP.

    However, the Activity, Members, Groups, and Blogs tabs all show “Page not found” errors.

    I tried deactivating BuddyPress, resetting the permalinks, and then reactivating BuddyPress, but still am receiving the errors.also i did mod-rewrite to apache server and customize my .htaccess file.But still i am getting same 404error.i lost here..please help me to out from this

    Thanks for any help you can provide.

    #135988

    In reply to: Buddypress page blank

    gkdreamz
    Member

    I have installed the latest version of BuddyPress on a WP.

    However, the Activity, Members, Groups, and Blogs tabs all show “Page not found” errors.

    I tried deactivating BuddyPress, resetting the permalinks, and then reactivating BuddyPress, but still am receiving the errors.also i did mod-rewrite to apache server and customize my .htaccess file.But still i am getting same 404error.

    Thanks for any help you can provide.

    nickharambee
    Participant

    Hi,

    mercime (@mercime) kindly posted the following function that hides the nav items for Buddypress pages when users are logged out:

    add_filter( 'wp_nav_menu_items', 'mme_loggedin_only_links' );
    function mme_loggedin_only_links($items) {
    if (!is_user_logged_in())
    return $items;
    else
    $ouractivity = '<li><a href="' . home_url('/') . 'activity' . '">' . __('Activity', 'buddypress' ) . '</a></li>';
    $ourmembers = '<li><a href="' . home_url('/') . 'members' . '">' . __('Members', 'buddypress' ) . '</a></li>';
    $ourgroups = '<li><a href="' . home_url('/') . 'groups' . '">' . __('Groups', 'buddypress' ) . '</a></li>';
    $ourgroupforums = '<li><a href="' . home_url('/') . 'forums' . '">' . __('Forums', 'buddypress' ) . '</a></li>';
    $items = $items . $ouractivity;
    $items = $items . $ourmembers;
    $items = $items  . $ourgroups;
    $items = $items . $ourgroupforums;
    return $items;
    }

    I would now like to extend this function so that classes that are added to the nav items in the standard WordPress menu are also added to the BuddyPress nav items. For instance, the classes added to my home navigation tab are “menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-18 current_page_item” when the page is active. I am particularly keen to have a class for current-menu-item added to each of the four BuddyPress pages when they are active.

    Could someone help adapt the function above so that such a class is added?

    Thanks,

    Nick

    goviral
    Member

    I am trying to create a site that has 2 types of members but only displays 1 of their feeds and profiles.

    I want to be able to have the Members directory only display the non-subscriber users/members and the same with the activity feed, I only want it to display non-subscribers.

    I have created a child theme & then done a new members-loop.php

    I was trying to follow the info from this topic:
    http://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/excluding-roles-from-the-member-loop/?#post-130978

    & this

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

    but it is still displaying all members. I am also using BP User Account Type Lite plugin to create 2 types of users. I’m not sure if this would interfere with it?

    That plugin is meant to create a shortcode to display only certain members in a members directory page. But that page is also displaying all members.

    Here is the members-loop.php code in pastebin
    http://pastebin.com/Yjm3cwx7

    Any help would be much appreciated.

    @mercime
    Participant

    @ktown28 I would look at the comments.php file and customization of comment form in functions.php. You could also install the Theme Check plugin and the Log Deprecated Notices plugin to check if your theme is up to WordPress standards.

    ktown28
    Member

    hey johngraybeal did you ever figure out what the issue was? I’m having the same issue with my custom theme. Thanks

    @mercime
    Participant

    == Does the same thing in the bp-default theme? ==

    Are you asking me if the issue will still be there using bp-default theme or are you telling me that it’s doing the same thing using the bp-default theme and mistakenly added the question mark?

    The thing is, there’s something wrong with your BP theme – Bodybuilder Yukon ‘child theme – or your customization of the theme. I can’t even open up the site activity page. There are BP pages like my test account > activity > friends which is not rendering at all and the source code shows that it ends at “ Aside from which, each page takes too long to load, So different from what I see for example at http://demos.ithemes.com/buddypress/yukon/members/justin/

    Is this a test site or did you install WP/BP in a physical subdirectory?

    Hugo Ashmore
    Participant

    Been having the same issue – in my case working up a custom set of files and the most likely reason is that I’ve upset the markup structure/class tokens . Despite spending a little time recently going through the default bp global.js file to reduce dependency on markup (this won’t be of benefit until 1.6) you do have to be very careful to respect the markup structure in activity stream and it’s various classes as the necessary JS depends and expects certain elements to exist.

    So check and compare your entry.php template in activity so see if you have left out any classes or changes markup.

    daveC87
    Member

    Hey Guys,
    I am using WordPress 3.3.2 and BuddyPress 1.5.5. I have created custom Group’s pages with the Buddypress Group Extension API and am allowing users to post from the front end on one of these pages and am having trouble saving custom field data when I do this. Everything else (title, content, and image saves to data base perfectly.) You can see example here: http://liveitupsocial.com/groups/san-fran-adventure/add-adventure/

    I am allowing user’s to essentially post activities that they think the group should participate in that weekend. I am querying these posts on another custom group page and I want these posts to be group specific. To do this I am sending a hidden field with value equal to the group ID when users add an activity to that group. Through displaying POST values I know the group ID is being sent and posted to my form validation, but not being saved as metadata.

    I have placed the form validation in the group’s plugins.php, and the form in the display() in my custom Buddypress Group Extension API. Using that technique all fields save perfectly except for my post metadata which I’m sending as a hidden field (Group ID): Before the code is there a better way to do this?

    In my Group Extension API my funciton display() holds the form: ( I will summarize and only show the hidden field not to bloat this post with code)

    `funtion display(){


    // Custom Function gets current GroupID
    <input type="hidden" name="group_id" value="”>

    }
    `

    Then I have form validation on the top of my Group’s plugin.php (Again summarized with the only part, the custom field, I’m having trouble with).

    `
    groups/single/plugins.php
    <PHP

    if (isset ($_POST)) {
    $group_id = $_POST;

    // Insert Custom Fields
    add_post_meta($post_id, ‘group_id’, $group_id, true);

    do_action(‘wp_insert_post’, ‘wp_insert_post’);

    PHP>
    `

    Again,my title, content, image all save perfectly, the hidden field is posting just not saving to the database. Am I missing something? Is there a better way to structure the whole posting from the front end on custom group pages using the Group Extension API? Thanks in advance.

    @mercime
    Participant

    @nickharambee Remove the BP Component Pages you want to make private from the custom menu https://codex.buddypress.org/extending-buddypress/how-to-set-up-your-main-site-navigation-using-the-built-in-wordpress-menus/

    Add the following to your theme’s or child theme’s functions.php file

    add_filter( 'wp_nav_menu_items', 'mme_loggedin_only_links' );
    function mme_loggedin_only_links($items) {
    if (!is_user_logged_in())
    return $items;
    else
    $ouractivity = '<li><a href="' . home_url('/') . 'activity' . '">' . __('Activity', 'buddypress' ) . '</a></li>';
    $ourmembers = '<li><a href="' . home_url('/') . 'members' . '">' . __('Members', 'buddypress' ) . '</a></li>';
    $ourgroups = '<li><a href="' . home_url('/') . 'groups' . '">' . __('Groups', 'buddypress' ) . '</a></li>';
    $ourgroupforums = '<li><a href="' . home_url('/') . 'forums' . '">' . __('Forums', 'buddypress' ) . '</a></li>';
    $items = $items . $ouractivity;
    $items = $items . $ourmembers;
    $items = $items  . $ourgroups;
    $items = $items . $ourgroupforums;
    return $items;
    }
    #134985
    mandrill
    Member

    Can someone clear this up for me?

    Do I need to muck about with the function that enqueues the CSS if all I want to do is tweak the CSS and leave the default.css to handle the things I’m not touching? The tutorial says no, but reading the comments here I’m no longer certain.

    One thing I do know though is that my custom styles (in wp-content/themes/themename/styles.css along with the required information) are not overriding the defaults. They do on the home page but not on the activity stream.

    You can see the results here: http://platoon13.org/news

    rxcknrxll
    Member

    I am running latest version of Buddypress and WordPress. Installation went smoothly. I opted to install compatibility pack and run the Amped child theme from Genesis. Everything seems to be set up properly. No errors or anything.

    The default pages created by Buddypress are in place, and they’re assigned properly in Buddypress settings. There are two main problems:

    1. When I visit any Buddypress page (/activity, /register, etc) I’m met with a 500 server error.
    2. When I visit any user-specific Buddypress page (members/user-name/activity, members/user-name/profile, etc) I’m met with a page that says “oops this link appears to be broken”.

    The rest of the site is cool. Other pages in WordPress render just fine. There are no 500 server errors unless I try to visit a Buddypress page. Also, I have a custom 404 error page. It works when trying to visit a page that doesn’t exist. But when I try to visit a user-specific Buddypress page, it supposedly doesn’t exist…and the 404 error page doesn’t show up. I just get the “opps this link appears to be broken” error.

    This all tells me there is something wrong with the installation, but I can’t figure out what’s up. I’ve tried disabling all other plugins, and I’ve gone in and resaved each page, but that hasn’t worked.

    Any insight is much appreciated!

    dannyjimmy
    Member

    People are used to Facebook and go for the quick default: Posting onto the group’s wall. They do that even if I’ve asked them a question in the forum. -_-

    QUICK AND DIRTY: The easy quick solution is: Disable the forum. (though I’ve heard in other posts that some have had trouble uninstalling a group’s forum recently…)

    But that doesn’t always work. Sometimes a group just needs a forum. (although the straight-up stream is pretty nice)

    At that point, what do I do?

    LESS QUICK, STILL DIRTY: A somewhat lame solution is to use BP group extras to make FORUMS the landing page for the group on a group-by group basis.

    Ideally, I’d like people to see the activity stream, but not be able to post directly onto it, but rather to be simply directed (like on BuddyPress.org) to the various forum topics.

    HALF THE ANNOUNCE-GROUP PLUGIN: Any thoughts on how to do this? Someone suggested commenting out parts of the “announcements-only” plugin to block posting to the stream but allow forum participation. Would that work? @dwenaus

    HALF THE BP-GROUP EXTRAS PLUGIN: If I was going to go the BP-group-extras route and just diminish the activity stream via navigation rather than privilege, I’d want to comment out the “custom fields” part of the group, since my groups don’t need that and it would just confuse users. Thoughts on how I would do that? @slaFFik Or is there some more simple way of reordering the group’s tabs / landing page?

    FINALLY, is there some simple and/or creative way I’m failing to think about this?

    All I know is that this is a SIGNIFICANT issue for me. In my experience so far, forum discussions and activity stream discussions DO NOT play nice with each other from a user experience standpoint, and sites like buddypress.org and facebook.com understand that and don’t allow it. I’m just wondering what “the common person” can do to avoid that same conflict.

    Thanks much,

    #134676
    Tammie Lister
    Moderator

    You can do this one of two ways:

    1. Place a loop on your front page https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/ is a great resource for this.
    2. Make entire activity page your front page. To do this you simply go under settings > reading and select a static page and your activity page.

    #134446
    @mercime
    Participant

    Based on the HTML structure of your theme, you need to use the first option, i.e., change 16 template files within the 6 BP folders transferred to your canvas child theme folder in server during the compatibility process.

    If you’ve previously changed any of the BP template files in your theme folder in server, replace all of them for a clean slate by deleting the 6 BP folders – /activity, /blogs, /forums, /groups, /members, and /registration – then re-run Appearance > BP Compatibility.

    Download the 6 clean BP folders to your computer hard drive.

    A. At the top of each of those 16 template files I linked to above, replace
    `

    `

    with
    `

    `

    Then, in each of 16 files, you’d like to change the BP Templates’ page title’s header tag from `

    …

    ` or `

    ..

    ` to `

    // Titles Of Respective BP Page Templates //

    `, just watch out when you do this in the /activity/index.php page.

    Save files.

    @mercime
    Participant

    You have a custom theme that’s supposed to be BuddyPress-ready. I would contact theme author regarding this issue. To confirm if it is a theme issue, change to bp-default theme, clear cache and see if issue is corrected.

    #29257
    brightonmike
    Member

    Before we go any further, I have modrewrite enabled and my permalinks are fine. They work fine.

    So I install Buddpress on my local WP installation running on WAMP.Ran through the setup, but it won’t work.

    The activity, discussion, user, members, register, activate pages are blank. They don’t 404, but they are blank.

    Every other Buddypress page returns a 404, it returns the 404 in my theme folder.

    I am using a custom theme but I get the same problems with the default theme, so I don’t think it’s theme related.

    Any ideas? It’s just broken for me right now.

    #29199
    Eric Langley
    Participant

    Hi Guys,

    I have two sites, a primary and a sub site. When a post is made in the primary site is shows up in the Activity Stream (desired), however when a post is made on the secondary site it does not show up in the Activity Stream of that site (not desired). I looked at all of the setting pages but can’t seem to find out why.

    Any help would be greatly appreciated.

    TYIA, Eric

    1. Which version of WordPress are you running?
    3.3.2
    2. Did you install WordPress as a directory or subdomain install?
    Domain
    3. If a directory install, is it in root or in a subdirectory?
    root
    4. Did you upgrade from a previous version of WordPress? If so, from which version?
    Clean install
    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
    NA
    6. Which version of BP are you running?
    1.5.5
    7. Did you upgraded from a previous version of BP? If so, from which version?
    Nope
    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
    Yes, BuddyPress Multi Network (@sbrahesh), and a few others.
    9. Are you using the standard BuddyPress themes or customized themes?
    WPMU DEV BuddyPress Social Theme
    10. Have you modified the core files in any way?
    No
    11. Do you have any custom functions in bp-custom.php?
    No, other than the Theme
    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
    No
    13. Please provide a list of any errors in your server’s log files.
    NA
    14. Which company provides your hosting?
    Private on AWS EC2
    15. Is your server running Windows, or if Linux; Apache, nginx or something else?
    Windows Bitnami stack

    James
    Participant

    hi again @juanmaguerrero, I do not have any customizations, just child theme of bp-default (local at the moment) and your 2 steps. When I switch to “updates” in drop-down of site wide activity directory, I see my 3 activity updates. Now I press page refresh, 3 activities are still there, but every move of scroll bar returns “Sorry, there was no activity found. Please try a different filter.”

    If you won’t be able to recreate it again, will send you some video from my test site in approx. 10 hours, it’s already night here. Drop me some email. thanks!

    juanmaguerrero
    Participant

    hi, @janismo I cannot reproduce the bug you mention. It currently does not support the dropdown list change, but no “error” is visibly shown. Maybe you are using some tweaked code that I don’t know… could you provide more details about the bp_has_members loop customization you made? thanks!

    James
    Participant

    hi @juanmaguerrero, great tutorial!
    unfortunately, bug that @shawn38 has mentioned partly is still there. Go to site wide activities, switch to “updates” as drop down filter – everything still will work fine, but now refresh page and bug is back again. If you have custom bp_has_members loop on separate page, bug is always there. Have to say that for those, who really needs this functionality, it is not so terrible. thanks again!

    Hugo Ashmore
    Participant

    But did you deactivate the custom theme and activate bp-default, disable all plugins except BP and for good measure visit permalinks page to clear cache.

    And are you really having exactly the same issue? It is proper to create a new thread and describe your issue in as much detail there rather than tag (hijack) on to an old thread.

    username_
    Member

    I was looking through on this page http://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/ ; and in the actual function docs to see the filtering options and scope options to use for such a task. I didn’t see an exclude option for user_id just activity_id. Seems if it has include exclude shouldn’t be too difficult. right?

    I see the ability to include user_ids to be queried and that it can be an array of user_ids, most likely for the single member pages. But this is inclusive and I would like to exclude some users from the main activity wall. Say user A doesn’t want to see user B’s updates anymore because they are negative… I wouldn’t want to include all members but user B that seems silly.

    I found this helpful page
    http://blog.etiviti.com/2010/03/buddypress-hack-remove-non-friend-updates-from-the-activity-stream/
    to allow me to do a filter hook on bp_has_activities after it’s queried, however I thought it would be better to do it on the query itself and not after.

    Any thoughts if someone has run into this sort of thing before or has any ideas? If not I will most likely go with unsetting the activities array but seems to me it would be so much faster to have it inside the query to do…

    Thanks!

    #133837
    peeld
    Participant

    The code here works:
    `/* Redirect BP group to forum tab rather than activity tab */
    function redirect_group_home() {
    global $bp;
    $path = clean_url( $_SERVER );
    $path = apply_filters( ‘bp_uri’, $path );
    if (bp_is_group_home() && strpos( $path, $bp->bp_options_nav[$bp->groups->current_group->slug] ) === false ) {
    if ($bp->groups->current_group->is_user_member || $bp->groups->current_group->status == ‘public’) {
    bp_core_redirect( $path . ‘forum/’ );
    }
    }
    }
    function move_group_activity_tab() {
    global $bp;
    if (isset($bp->groups->current_group->slug) && $bp->groups->current_group->slug == $bp->current_item) {
    unset($bp->bp_options_nav[$bp->groups->current_group->slug]);
    }
    }
    //The following line redirects to a group forum page rather than a group activity page
    add_action(‘bp_init’, ‘redirect_group_home’ );
    //The following line removes the group activity tab entirely
    //add_action(‘bp_init’, ‘move_group_activity_tab’);`

    However, it renders the activity update button useless (i.e. can’t post activity updates in a group!). Removing the code from bp-custom makes group activity updates work, putting it back in breaks activity updates :( Any hints?

Viewing 25 results - 751 through 775 (of 1,252 total)
Skip to toolbar