Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'custom activity page'

Viewing 25 results - 526 through 550 (of 838 total)
  • Author
    Search Results
  • #138118
    Roger Coathup
    Participant

    @elangley – BuddyPress is used to provide the backbone for member accounts on Enterprise Nation. Customised activity stream loops are also used (e.g. clicking on discussions a sidebar option from some pages) takes you to a custom activity stream showing new forum threads, and blog comments & threads.

    The profiles are currently being overhauled – with a raft of new functions coming on board in the next month or so (e.g. shop account integration, and some bespoke BuddyPress components for directory listings).

    kraigg
    Participant

    Can anyone help me?

    I’m trying to filter the activity stream so that it only displays ‘published’ forum topics and replies.

    I’m using bbPressModeration, which marks all forum topics and posts as ‘pending’, until the administrator approves and publishes the content. The problem is that pending content still appears in the activity stream.

    I’m using the code below for my custom activity stream.

    `
    <?php

    /* = Generate Custom Activity Stream


    * Place this function anywhere you want to show your custom stream.
    * Should accept any of these parameters:
    * https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/
    */

    my_activity_stream(‘per_page=4&page=1&action=new_forum_post,new_blog_comment,new_blog_post,new_forum_topic’);

    /* = Custom Activity Stream


    * Place this function in bp-custom.php (in your plugins directory)
    */
    function my_activity_stream($args ) {

    if ( bp_has_activities($args) ) : ?>

      <li class="” id=”activity-“>

      <a href="”>

    <?php endif;

    wp_reset_query();

    }
    `

    #137343
    abbersbolton
    Participant

    Well (I’m sorry I don’t have a clue how to insert a pic like you have) I’d like them to show up on the member’s profile page, i.e. when they click on your name. I want it to be in the header I suppose, or just somehow accessible. At the moment, when I click on a member, there is no “public profile” tab or anything like there is on my own, so all you see is the activity module.with activity, groups, forums etc.
    I just want other people to be able to access this info even if it means an “info” tab a la Facebook!

    To briefly explain, I have a similar set up to yours – Twitter button and klout score and a user location map so these things are in the header already, but other info like for example, Facebook page url, web address – I want these custom fields to also show and not just serve as input for plugins etc.

    Thanks

    #137000
    olihaslam
    Participant

    I figured it out :)

    WP/BP is installed on IIS (I’ve only ever dealt with Apache before) so to fix it I changed the permalink settings to a custom structure (see Settings > Permalinks).

    I changed the custom structure from:
    /index.php/%year%/%monthnum%/%day%/%postname%/

    to:
    /%year%/%monthnum%/%day%/%postname%/

    thus removing the index.php bit and all works fine now.

    Very happy!

    modemlooper
    Moderator

    those buttons are loaded via javascript on page load. When you refresh activity stream via ajax the button’s code is not called again. This is why they do not show. I killed javascript buttons on my share plugin because it really slowed down BP activity (the javascript code gets called for every activity item on page x each button using javascript) and for the same reason you are experiencing. You could also try to use your own image for the buttons. This is against Facebook TOS but there are some tuts online. Google “custom like button facebook”.

    #136296
    Mathieu Viet
    Moderator

    sorry i misunderstood, i’m not english, i thought banner == header…

    This is an example for the activity/index.php template : the hook just under the activity page title is :
    `bp_before_directory_activity_content`

    so in the functions.php of your active theme, you can add something like this :

    `add_action(‘bp_before_directory_activity_content’, ‘i_do_not_want_custom_header’);

    function i_do_not_want_custom_header(){
    ?>

    <?php
    }`

    I’m sure you’ll find the right hooks to add your ‘narrow photo’ in the other BuddyPress templates..

    #136278
    Mathieu Viet
    Moderator

    Hello @tgoedde

    If you’re using the theme BP Default, it’s quite easy actually. As this theme supports custom-header, you can simply edit the BuddyPress pages (Activity, register, groups, forum… and so on) in which you want to add a custom header.

    I just tested this in my activity page.
    1/ Edit the page in WordPress backend
    2/ Use the media button to select your photo, it must have at least a width of 1250px (if under, the pic won’t show)
    3/ Upload and choose not to insert but to use as featured image. Once done you can close the thick box window.
    4/ you’ll see in the edit page / the featured image box at the bottom right with your uploaded image shrinked.
    5/ Save the page. And you’re done ;)

    Repeat these steps for each BuddyPress template you want to add a custom header to.

    Wow! Thank you very much! As far as I can tell that worked!

    One question/concern. I did not change the following because, well, I couldn’t find them:

    /groups/single/home.php
    /groups/single/plugins.php
    /members/single/home.php
    /members/single/plugins.php
    /members/single/settings/delete-account.php
    /members/single/settings/general.php
    /members/single/settings/notifications.php

    Here’s what is visible:

    Templates

    activity-loop.php
    comment.php
    entry.php
    Main Index Template
    (activity/index.php)
    post-form.php
    blogs-loop.php
    create.php
    Main Index Template
    (blogs/index.php)
    Comments
    (comments.php)
    core_functions.php
    custom_functions.php
    import_settings.php
    options_chameleon.php
    post_thumbnails_chameleon.php
    Footer
    (footer.php)
    forums-loop.php
    Main Index Template
    (forums/index.php)
    Theme Functions
    (functions.php)
    create.php
    groups-loop.php
    Main Index Template
    (groups/index.php)
    Header
    (header.php)
    home.php
    breadcrumbs.php
    entry.php
    featured.php
    navigation.php
    no-results.php
    postinfo.php
    scripts.php
    top_info.php
    widgets.php
    Main Index Template
    (index.php)
    Main Index Template
    (members/index.php)
    members-loop.php
    Blog Page Page Template
    (page-blog.php)
    Contact Page Page Template
    (page-contact.php)
    Full Width Page Page Template
    (page-full.php)
    Gallery Page Page Template
    (page-gallery.php)
    Login Page Page Template
    (page-login.php)
    Search Page Page Template
    (page-search.php)
    Sitemap Page Page Template
    (page-sitemap.php)
    Portfolio Page Page Template
    (page-template-portfolio.php)
    Page Template
    (page.php)
    activate.php
    register.php
    Search Form
    (searchform.php)
    Sidebar
    (sidebar.php)
    Single Post
    (single.php)

    Styles

    Stylesheet
    (style.css)

    Am I just missing them?

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

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

    @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

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

    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.

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

    @mercime
    Participant

    @kristopherlouie You’d need to use the first option, i.e., change 16 template files within the 6 BP folders transferred to your custom theme folder in server during the compatibility process.

    If you’ve previously changed any of the BP template files in your theme folder, replace all of them for a clean slate by deleting the 6 BP folders in server – /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
    `

    <article id="post-” >

    `

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

    ` and move it above `

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

    Save files.

    @mercime
    Participant

    As agreed to above, we will create two new files, header-buddypress.php and sidebar-buddypress.php to make your WP theme compatible with BP

    IF you’ve revised any of the BP template files transferred to your fullscreen theme folder in server during the BP Compatibility process, please delete the 6 BP folders transferred to your evolution theme folder in server – activity, blogs, forums, members, groups, register – then re-run Appearance > BP Compatibility again to make sure that you have clean template files.

    A. Copy header.php and Save As > header-buddypress.php

    Open up header-buddypress.php and at the bottom of the file, below other code contained within, add this:
    `

    <div class="box-center pgsize2 “>

    <?php
    /* Title page */
    $queried_object = $wp_query->get_queried_object();
    if ( $queried_object->ID == get_option( ‘page_for_posts’ ) ) {
    $current_id = get_option( ‘page_for_posts’ );
    } else {
    $current_id = $wp_query->post->ID;
    }
    $page_hide_box = get_post_meta( $current_id, ‘page_hide_box’ );
    $page_hide_box = trim($page_hide_box);
    if($page_hide_box != ‘yes’){
    print ‘

    ‘;
    }
    ?>

    <?php
    $page_hide_title = get_post_meta( $current_id, ‘page_hide_title’ );
    $page_hide_title = trim($page_hide_title);
    $page_alternative_title = get_post_meta( $current_id, ‘page_alternative_title’ );
    $page_alternative_title = trim($page_alternative_title);
    if($page_hide_title != ‘yes’){
    echo ‘

    ‘; the_title(); echo ‘

    ‘;
    } else if($page_alternative_title != ”){
    echo ‘

    ‘.$page_alternative_title.’

    ‘;
    } else {
    echo ‘

    ‘;
    }
    ?>

    `

    Save file.

Viewing 25 results - 526 through 550 (of 838 total)
Skip to toolbar