Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'custom activity page'

Viewing 25 results - 476 through 500 (of 831 total)
  • Author
    Search Results
  • #153746
    @mercime
    Participant

    @creativepixels There’s still hope. I overlooked the fact that you already went through the Appearance > BP Compatibility process. So here’s what you’ll do:

    – Deactivate BP template pack plugin

    – Remove the 6 BuddyPress folders transferred to your supreme theme’s folder in wp-content/themes/supreme-theme folder namely: /activity, /blogs, /forums, /groups, /members, and /registration.

    – Clear cache and check your BP pages now.

    #153609
    bp-help
    Participant

    It stripped the code again. Just place this between opening and closing php tags in the bp-custom.php file:
    `
    function bp_guest_redirect() {
    global $bp;
    if ( bp_is_activity_component() || bp_is_groups_component() /*|| bbp_is_single_forum()*/ || bp_is_forums_component() || bp_is_blogs_component() || bp_is_page( BP_MEMBERS_SLUG ) ) {
    // enter the slug or component conditional here
    if(!is_user_logged_in()) { // not logged in user
    wp_redirect( get_option(‘siteurl’) . ‘/register’ );
    } // user will be redirect to any link to want
    }
    }
    add_filter(‘get_header’,’bp_guest_redirect’,1);
    `

    #153487
    Anonymous User 7600456
    Inactive

    Hooray! I worked it out in the end.

    Here is how I did it:

    1, If you don’t already have one create a blank page in ‘/wp-content/plugins’ called bp-custom.php (see this page for more info)

    2, Paste this code into bp-custom.php: http://pastebin.com/Sk56iQQU

    For reference these are the pages that helped me work it out:

    https://buddypress.trac.wordpress.org/ticket/4784

    https://buddypress.trac.wordpress.org/ticket/4106

    https://codex.buddypress.org/developer/customizing/bp-custom-php/

    Edit: I can’t get the ‘code’ tags to work. I have put it in a pastebin. Mods feel free to edit this to work and delete this note and the link to pastebin.

    #153326
    Unsal Korkmaz
    Participant

    Well..
    I found my problem..
    Btw it seems it was a misunderstood that i was trying to show it on blogs directory as latest post.. Seems my problem is post_type = ‘post’ is hardcoded on buddypress:

     $paged_blogs[$i]->latest_post = $wpdb->get_row( "SELECT post_title, guid FROM {$blog_prefix}posts WHERE post_status = 'publish' AND post_type = 'post' AND id != 1 ORDER BY id DESC LIMIT 1" );
    

    This is just.. wrong. Why not use {$blog_prefix}bp_activity table? why trying to connect to {$blog_prefix}posts?

    #152445
    Mitesh Patel
    Participant

    Thanks @ubernaut. Yes, that’s a nice idea, but I do want to use site-wide forums.

    The page structure is like this, but with more pages

    Home
    About
    Community
    -Forums
    -Groups
    -Activity
    Contact

    Anyway, I don’t think it’s going to be possible without some devine intervention :), as I noticed in testbp.org site, the ‘discussion’ menu is highlighted only when you select it (the page is forum-index). When you go any deeper (select a forum or a topic), the highlight get’s lost, so the issue is, the custom menu is not able to acquire/implement the hierarchy info, which may or may not have been provided by bbpress itself.

    The same problem is there with the link you posted as well. On the other hand, all the buddypress menus and sub-menus and sub-sub-menus can correctly highlight the parent ‘community’ page. So, it’s a bbPress/forum specific issue.

    #151629
    Clive Hetherington
    Participant

    I’ve found that somewhere down the line a decision was made to only allow comments from posts into the activity stream.

    My comments disappeared from activity because 99% of my comments are from pages.

    I’m presuming this change was made to accommodate custom post types. I’d suggest that as these types of decision can sink the entire reason for a BP installation (in some cases) that they should be made with some thought or perhaps even a community vote?

    Can BP make this an OPTION in the next version please?

    Perhaps there should be an option to include or exclude each of the standard wp custom types on installation?

    #151456
    danbpfr
    Participant

    hi @fitnessblogger,

    use this in wp-content/plugins/ bp-custom.php
    (If you haven’t this file you have to create it first)

    Tested on 1.6.3

    `function bpfr_excerpt($text) {
    return trim($text,'[…]’);
    }
    add_filter(‘bp_activity_truncate_entry’, ‘bpfr_excerpt’, 3, 3 );`

    if you want to replace […] by ‘xxx’ you use this

    `function bpfr_excerpt($text) {
    return str_replace( ‘[…]’,’xxx’,$text );
    }
    add_filter(‘bp_activity_truncate_entry’, ‘bpfr_excerpt’, 3, 3 ); `

    Take care with copy/pasting from here. Quotes must be single quotes at least.

    #151068
    @mercime
    Participant

    @ciumbargi know that those who help out in these forums are all volunteers who generously do their best to assist others even though they are not paid to do so. It is indeed unfortunate that you see an advice about how to find the correct selectors in different browsers as a negative even after some assistance was already given for what was not quite clear in the request.

    As I see it, the issue is resolved in your site viewing it using Firefox. If it is not, then I advise you to post at the Pagelines forums and include info about what browser you’re using so that they can fix it … thereby benefiting the rest of the Pagelines customers.

    Have a nice day.

    #150490
    digitman2
    Participant

    Again, its not just the body class, as I said its the avatar as well, plus in future there might be other changes introduced which I’d like to be introduced in my custom pages as well. I don’t see why there can’t be a hook added to this function, it will be a one line change and its consistent with all the other hooks that are added.

    Is it your decision to add/not add a hook?

    #150027
    danbpfr
    Participant

    hi,

    see at the bottom of this page how to change avatar size
    https://codex.buddypress.org/developer/customizing/changing-internal-configuration-settings/

    #149120
    danbpfr
    Participant

    Hi,

    did you set the permalinks to something other than default. Should be done.

    Have you checked the yoast plugin ?

    The error is probably due to PHPSESSID cookie.

    Another cookie is comming from bp-activity-oldestpage. This is a custom setting  Check it ! The normal name is bp-activity

    #149097
    seppy
    Participant

    Hi @sbla

    On the groups pages (where the styling isn’t correct) it seems to still have in the ‘home’ class in your body tags (which has the transparent background)
    `body class=”single-item groups group-home home custom-background”
    `

    So it’s calling this CSS which you don’t want!
    `
    .home #wrapper {
    background-color: transparent;
    border: none;
    margin: 20px auto 20px auto;
    padding: 0;
    }
    `

    Where as the page that it is correctly styling hasn’t got “home” in the body classes.

    `body class=”directory activity custom-background”`

    How are you currently adding the ‘home’ class to body?

    `function add_home_class($classes) {
    if (is_front_page()) {
    $classes[] = “home”
    }
    return $classes;
    }
    add_filter(‘body_class’, ‘add_home_class’);`

    #148913
    peterjhead
    Participant

    Try this in bp-custom.php

    function bp_non_member_redirect() {
    global $bp;
    if ( bp_is_activity_component() || bp_is_groups_component() /*|| bbp_is_single_forum()*/ || bp_is_forums_component() || bp_is_blogs_component() || bp_is_page( BP_MEMBERS_SLUG ) ) {

    if(!is_user_logged_in()) { // not logged in user
    wp_redirect( get_option('siteurl') . '/register' );
    } // user will be redirect to any link to want
    }
    }
    add_filter('get_header','bp_non_member_redirect',1);

    NOTE: If your using sitewide forums instead of group forums you will need to remove the comment /* */ around:
    || bbp_is_single_forum()
    in the above code. Merry Christmas!

    #148340
    samanthar
    Participant

    Going to Members Works
    Going to Activity IE comes up with “Internet Explorer has stopped working” A problem caused the program to stop working correctly. Window will close the program and notify you if a solution is available. Close Program

    It does the above a couple of times before coming up with a blank page.

    WP 3.4.2
    Buddypress 1.6.2

    I havent tried changing themes as i am worried about losing all the current customizations, but will do if we have too

    #148193
    shanebp
    Moderator

    >a page where my users can be curators and have collections of custom posts

    CPs that they created ? Or created by anyone ?

    Usually a profile extension is used for this.

    But you say ‘outside of buddypress’ so you mean a WP page… ?
    Then, because you want it driven by activity_ids, write a custom query.
    Use each activity_id to find the user_id in the activity table, look for posts by that member in the posts table and show the results in a loop.
    Use 2 queries if you can’t write a JOIN.

    #148187
    designnz
    Participant

    Hi @shanebp, thanks for the reply. Im wanting to have a page where my users can be curators and have collections of custom posts (via activity_id). It will fall under its own page outside of buddypress with a special activity page for displaying items.

    #145524
    drill_sgt.lewis
    Participant

    Another simpler approach would be to created a bp-custom.php and place it in the plugins directory and add the following code
    `<?php
    function bp_guest_redirect() {
    global $bp;
    if ( bp_is_activity_component() || bp_is_groups_component() /*|| bbp_is_single_forum()*/ || bp_is_forums_component() || bp_is_blogs_component() || bp_is_page( BP_MEMBERS_SLUG ) ) {
    // enter the slug or component conditional here
    if(!is_user_logged_in()) { // not logged in user
    wp_redirect( get_option(‘siteurl’) . ‘/register’ );
    } // user will be redirect to any link to want
    }
    }
    add_filter(‘get_header’,’bp_guest_redirect’,1);
    ?>`
    This code will work to hide buddypress pages and group forums as is, if your using sitewide forums in line 4 remove the comments around:
    || bbp_is_single_forum()
    Save and refresh. Works in current versions.

    #145394
    gar976
    Participant

    I have a custom menu but created long ago. In buddypress settings the component directories are set to active pages for activity streams, discussion forums, user groups and members.

    Problem extends beyond this to main buddypress menu at top right of screen where profile edit etc are all blank too (not 404 page not found though). I have an active members widget in a sidebar which does actually work so i agree that it seems like a links issue – but the correct page URL displays when links are clicked.

    #145122
    @mercime
    Participant

    == Activity, Groups and Members pages display on the menu bar, but Register does not? ==

    You can just add it to the custom menu in Appearance > Themes

    == Also if I try and go straight to the URL (entreacting.com/register) it just takes me to the home page. ==

    That happens when you’re logged in and go to the register page. Log out and check if you can go to the register page just to double-check everything’s in working order.

    == Also I cannot edit my user profile. when I click me name on the right it takes me to “Page not found” ==

    Strange. Re-upload BuddyPress manually to wp-content/plugins/ i.e., via FTP/cpanel/etc.

    meandering
    Participant

    Wow thanks for this amazing help!

    I did it and I’m getting excited! (Though I didn’t see the “ tags at all for some reason.)

    Some pages still seem to have issues fitting:

    http://onlinefashionweek.net/activity/
    http://onlinefashionweek.net/members/pataphor/forums/
    http://onlinefashionweek.net/members/pataphor/friends/

    I was thinking it might be easier to remove the sidebar, but I wasn’t sure how to go about it.

    On the other hand, this test forum I made fits great!

    http://onlinefashionweek.net/forums/forum/test-forum

    So maybe if I could make them all fit, maybe with that custom CSS somehow, it would be cool.

    Although, on a separate note, I’m not sure why Forums is blank …

    http://onlinefashionweek.net/forums

    Ai yi yi, my head now officially hurts. : )

    Really appreciate this insanely helpful support!

    tvansant
    Participant

    I found a way to make the default page for members to be the profile page.
    `http://www.buddyboss.com/making-profile-the-default-landing-page-in-buddypress/`
    and
    `https://codex.buddypress.org/extending-buddypress/bp-custom-php/`

    Sean Infinitee
    Participant

    Hey guys-hoping you can help me figure out what I’m doing wrong…if I can’t hide or remove the “community” tab then it would seem to be a pretty simple concept to change the order of the tab, but no luck with the above…not that php or css savvy but the instructions here are pretty straightforward so any help is appreciated!

    Using latest wordpress version and just installed buddypress yesterday so I would assume it is also the latest version.

    My website is http://www.defendersofturntablism.org

    I added the line `define( ‘BP_DEFAULT_COMPONENT’, ‘preferred_default_tab’ ); to wp-config.php above ‘//MySQL settings – You can get this info from your web host **//`

    Created bp-custom.php in plugins folder and added

    `function bbg_change_profile_tab_order() {
    global $bp;

    $bp->bp_nav = 10;
    $bp->bp_nav = 20;
    $bp->bp_nav = 30;
    $bp->bp_nav = 40;
    }
    add_action( ‘bp_setup_nav’, ‘bbg_change_profile_tab_order’, 999 );`

    Unfortunately all this has done is add the above line of code to the header of my site…can anyone help me figure this out??! Seems like it should be very simple. Ideally I want to have see the community tab go away and have the members section contain the buddypress activity, groups, forums, etc.

    Thanks in advance!!

    #143918
    EthanVan
    Spectator

    We have started out with the following plugins and will be tailoring them to our specific needs:

    BP (Obviously)
    BP Profile As Homepage
    BP Activity Stream Hashtags
    BP Docs
    BP Friends Online
    BP Profile Privacy
    BP reCAPTCHA
    BP Verified
    WP Custom Login Page
    Easy Instagram
    BP Skeleton Component (for all custom plugins)

    The above mentioned plugins (aside from BP) will be highly modified and contain only traces of the original code. Credit will be given to the original developers for the provision of the base plugin state and inspiration that leads us to our end result.

    #143652
    shanebp
    Moderator

    imo, It’s not clear what you’re trying to do.
    On a ‘single activity page’ – you mean the profile activity page for a specific member ?

    And on that page you want to display, in a sidebar, the 20 most recent updates from all users ?

    In your code, you’re only looking for updates that include an image [bpfb_images]

    So you only want the 20 most recent updates from all members that include an image ?
    If so, you’d be better off writing a custom query. Then you won’t have to do all that string parsing.

    #143526
    DaveyWavey
    Participant

    @modemlooper said 4 days, 6 hours ago:
    To change slugs you change the page name and URL for that page in the WordPress admin.

    That worked perfectly. Almost. It seems that links in the activity feed still reference “groups” as opposed to the new slug so for instance the link should be something like this:

    http://www.mysite.com/newslugforgroups/groupname/forum/topic/newforumpost/

    instead the groups slug somehow persists and reads like this:

    http://www.mysite.com/groups/groupname/forum/topic/newforumpost/

    And this above link generates a 404 page not found error.

    Old slug: groups
    New slug: newslugforgroups

    This seems to only occur in the activity feed – everywhere else, your suggestion seems to work just fine.

Viewing 25 results - 476 through 500 (of 831 total)
Skip to toolbar