Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 26 through 50 (of 64 total)
  • @jamiewade

    Member

    Bump.

    @jamiewade

    Member

    Bump.

    @jamiewade

    Member

    This may also be a problem with your hosting. Make sure to set the correct permissions in your wp-content folder.

    @jamiewade

    Member

    Here is the code for the Home Tab:

    `
    <li class=”selected”>
    <a href="activity/friends” title=””>`

    @jamiewade

    Member

    @bgrun80 No worries mate, glad I could be of assistance!

    @jamiewade

    Member

    Worked it out! For those who are interested in how to do this, you need to go to wp-content/plugins/buddypress/bp-activity/bp-activity-templatetags.php and delete this code:

    `if ( is_user_logged_in() )
    $content .= ‘ · id . ‘” class=”acomment-reply” id=”acomment-reply-‘ . $activities_template->activity->id . ‘”>’ . __( ‘Reply’, ‘buddypress’ ) . ‘‘;`

    @jamiewade

    Member

    I am really sorry @boonebgorges I am such a beginner with PhP I wouldn’t know where to begin :(

    @jamiewade

    Member

    @bgrun80 Hello there Ben. There is a much simpler way of using a Date Of Birth check. A simple plug in called “BP Xtra Signup” will do this for you. The plug in also gives you other fields to be added on the sign up page, for example Agree To Terms & Conditions, Password Strength Meter and Username Availability, to name a few. Definitely should check the plug in out, much simpler than writing codex yourself.

    @jamiewade

    Member

    This is my new activity-loop.php file. This does not break the sub navs like I posted 5 minutes ago:

    `

    <?php
    if ( bp_has_activities( bp_ajax_querystring( ‘activity’ )) ) ?>

    •  

    `

    And here is my bp-custom.php file:

    `define( ‘BP_ACTIVATION_SLUG’, ‘activate’ );
    define( ‘BP_ACTIVITY_SLUG’, ‘activity’ );
    define( ‘BP_BLOGS_SLUG’, ‘blogs’ );
    define( ‘BP_FORUMS_SLUG’, ‘forums’ );
    define( ‘BP_FRIENDS_SLUG’, ‘friends’ );
    define( ‘BP_GROUPS_SLUG’, ‘groups’ );
    define( ‘BP_MEMBERS_SLUG’, ‘members’ );
    define( ‘BP_MESSAGES_SLUG’, ‘messages’ );
    define( ‘BP_REGISTER_SLUG’, ‘register’ );
    define( ‘BP_SEARCH_SLUG’, ‘search’ );
    define( ‘BP_SETTINGS_SLUG’, ‘settings’ );
    define( ‘BP_XPROFILE_SLUG’, ‘profile’ );

    /** wp-content/plugins/bp-custom.php **/
    function my_change_activity_default_subnav() {
    global $bp;
    if (bp_is_my_profile()) {
    bp_core_new_nav_default(array( ‘parent_slug’ => $bp->activity->slug, ‘screen_function’ => ‘bp_activity_screen_friends’, ‘subnav_slug’ => $bp->friends->slug));
    }
    }
    add_action( ‘bp_setup_nav’, ‘my_change_activity_default_subnav’ );

    function my_change_activity_subnav_sequence() {
    global $bp;
    if (bp_is_my_profile()) {
    // flip just-me and friends positions
    $bp->bp_options_nav = ’20’;
    $bp->bp_options_nav = ’10’;
    }
    }

    function bbg_my_friends_activity_default( $qs ) {
    if ( is_user_logged_in() && empty( $qs ) && empty( $_POST ) ) {
    $qs = ‘scope=friends’;
    }

    return $qs;
    }

    add_filter( ‘bp_ajax_querystring’, ‘bbg_my_friends_activity_default’, 999 );

    add_action( ‘bp_activity_setup_nav’, ‘my_change_activity_subnav_sequence’ );`

    The site is still functional when I have made the changes you suggested, however when I log in and click on the Activity tab, the Friends (x) box is selected, but the activity shown is from the whole site.

    @jamiewade

    Member

    @boonebgorges Hmmm I tried adding these codes into the files but it broke the other subnavs? Groups (x) and @username mentions only displayed the activity stream for the whole site? They didn’t show Group activity/mentions respectively.

    @jamiewade

    Member

    Second bump, really need this sorted guys! Please :)

    @jamiewade

    Member

    I did this to my website and it works a treat. This applies if you are using the default BP theme, or a child theme. You will need to go to <b>wp-content/plugins/buddypress/bp-themes/bp-default/header.php</b>

    At approximately line 47, you will see the opening tags <div id="header"> Look to about line 52, and you will see the code for the home tab. Replace the code with this

    <li class="selected">
    <a href="yoursite.com/activity" title=""></a>
    </li>

    <b> Remember to add http: // before the yoursite.com/activity, for some reason it doesn’t show when I type the full URL in here.</b>

    If you look below that, you should see the code for the activity tab, delete this code. You should now have removed the activity tab from the menu, and the Home tab has now been changed so it directs to the activity stream. Any problems message me.

    @jamiewade

    Member

    Bump.

    @jamiewade

    Member

    I had to change the code to this because it broke the drop down menu filter. Please can you tell me what I need to change? Thanks

    `

    <?php
    function my_query_filter_new ( $query_string ) {
    $query_string .= ‘&per_page=10’;
    return $query_string; }
    add_filter( ‘bp_ajax_querystring’, ‘my_query_filter_new’ );
    if ( bp_has_activities( bp_ajax_querystring( ‘friends’ )) ) ?>

    •  

    `

    @jamiewade

    Member

    Hmm I tried this, but nothing? I changed `if ( bp_has_activities( bp_ajax_querystring( ‘activity’ )) ) ?>` to `if ( bp_has_activities( bp_ajax_querystring( ‘friends’ )) ) ?>`

    Here is the code for the whole of the activity-loop.php file

    `

    <?php
    function my_query_filter_new ( $query_string ) {
    $query_string .= ‘&per_page=10’;
    return $query_string;
    }
    add_filter( ‘bp_ajax_querystring’, ‘my_query_filter_new’ );
    if ( bp_has_activities( bp_ajax_querystring( ‘friends’ )) ) ?>

    /* Show pagination if JS is not enabled, since the “Load More” link will do nothing */

    •  

    `

    @jamiewade

    Member

    I tried adding `<li class="selected"` to the tab but it only selects it for CSS purposes, the friends stream does not show?

    @jamiewade

    Member

    Bump.

    @jamiewade

    Member

    Hmm I tried this with no success. Here is an image of what I wish to do, if it helps at all.

    Photobucket

    @jamiewade

    Member

    Sorry, just really want to get this sorted before I launch the site :) I do not wish to edit the dropdown filter, but I want to set the default activity filter to (Friends (x)) which is to the left of the drop down box.

    @jamiewade

    Member

    Anyone? Please??

    @jamiewade

    Member

    You can restrict which pages a non-registered member can see, if thats any help? For example I have restricted all the pages for non-members, apart from the registration page, terms and conditions and my blog posts?

    @jamiewade

    Member

    @bowromir Thanks for your help, although I tried this and its not working?

    In reply to: Activity Filters

    @jamiewade

    Member

    Anyone?

    In reply to: Tags On Profile Fields

    @jamiewade

    Member

    @Mikey3D Thank you very much!

    @jamiewade

    Member

    @mercime Yes I was talking to PCWriter about this issue. The strange thing is, the admin bar displayed once the site was firts set up, and was there for about a week then it went? I used Softaculous on cPanel to install WordPress to my site, then I downloaded the BuddyPress plug in from the WordPress admin. Here is the website in question.

Viewing 25 replies - 26 through 50 (of 64 total)
Skip to toolbar