Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'custom activity page'

Viewing 25 results - 1,001 through 1,025 (of 1,252 total)
  • Author
    Search Results
  • #96209
    Matt Edminster
    Participant

    Thanks so much for the reply Roger.

    I have tried all those, but realized I missed one other possibility: bp-custom. Sure enought, that seems to be the source, though I’m not sure why. Strangely enough, of the various hacks that I have there, the problem seems to be in the standard “define” functions prescribed in the bp codex pages.

    `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’, ‘directory’ );
    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’ );

    define(‘BP_DEFAULT_COMPONENT’,’updates’);`

    Any idea why one of these would be throwing the system?

    powers1
    Member

    So, I’m creating custom activity types using the `bp_activity_add` function. Currently installed: Buddypress 1.2.4.1. This question is about the “View” link next to an activity in a user’s activity stream. I don’t want it to link to the activity detail page – instead, I want it to link to my custom component. Instead of linking to http://localhost/activity/p/id it should link to http://localhost/mycomponent/id

    I see in the `bp_activity_get_permalink` that several activity types are hardcoded as returning the permalink (new_blog_post, new_blog_comment, etc). while the rest link to /activity/p/id. I *could* add my activity type to this hardcoded list. But I’d rather not. How can I instruct Buddypress to use the permalinks for my custom activities without hacking the `bp_activity_get_permalink` function?

    Hugo Ashmore
    Participant

    I’m no longer on their pay plan, so they arent digging in deep for me.

    I guess thats why I was hoping to get it resolved on here.

    Er well while we’re willing to help there’s a limit to free support, but it’s not so much that that’s the issue it’s simply that we have exhausted what we can probably do without getting down and dirty with the actual site and files. You have an issue that shouldn’t be happening IF you have taken everything back to a clean install and default theme that is. It’s perplexing and I certainly don’t know what to suggest other to still think there’s some customisation or plugin at work causing issues – might not be a bp plugin!

    As for asking whether there are files you can replace that is not a question that ought to be asked we have said and I think you have acknowledged that you must be testing with a clean install, core files should never have been modified if your child theme files were then that would be caught by using the default theme to test with – that theme as well as the core files should never be modified. If these conditions are met there is something very screwy going on and you will need to pay a developer to look the site over.

    Hugo Ashmore
    Participant

    Considering that bp-custom.php doesn’t exist unless the developer creates it then if it is found that is likely to be the culpret.

    As Roger says though this problem has to be the result of some customisation or plugin somewhere BP 1.2.5.2 onwards doesn’t show this issue in a vanilla install.

    Roger Coathup
    Participant

    it’s almost certainly a problem with your setup, and nothing to do with the core BuddyPress code.

    As I suggested, check your bp-custom.php file first of all – it goes in the /plugins folder – did your developer put any functions in there that modify the behaviour of your site?

    p.s. are you sure you are using vanilla BuddyPress – you (or developer) haven’t modified any of the core files?

    Roger Coathup
    Participant

    Take a look at this page for details on writing your own custom activity loop – paying particular attention to the scope and filter options: https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/

    connorg
    Participant

    I created a custom index page for my theme and wanted the main content to be the activity stream for the logged in user, so I just copied and pasted from the `acitivty.php` file in the `members/single` folder. But, unlike the activity stream in a member’s profile, it is displaying the site-wide activity stream, I essentially just want it to display the activity for the logged in user as well as their friend’s activity, like Facebook. How do I do this?

    Thanks in advance!

    Roger Coathup
    Participant

    Are you using the default bp-custom.php or have you got a bespoke version?

    Hugo Ashmore
    Participant

    You have got a huge heap of plugins running. The first rule of troubleshooting is to reduce down to the most basic functionality to produce a test case that demonstrates the issue or not, ideally one runs the basic installation which will not demonstrate the issue, then start to add back in plugins one by one checking each time to see if the issue kicks in again, or work that in reverse and start disabling plugins one by one checking as you go so that you know what plugin causes the problem.

    This is exactly the same reason we ask that people drop back to the default theme as doing that tells us immediately if an issue is related to BP or a custom theme.

    #94453
    Hugo Ashmore
    Participant

    Not a similar issue, these sound like two separate issues.

    Please do not post to a forum in this manner you must start your own thread and provide as much detail as possible if you want help.

    @holgria Are you running a custom theme or BP-default? Without more detail than you have provided it won’t really be possible to help you.

    @micb11 You should start your own thread on your issue, don’t assume it’s similar to someone else; there could be any number of reasons why you are having these issues, without some detail it’s impossible to help you -same question though custom theme or standard BP?

    #15642
    fjrichman
    Member

    I’m having issues with indexes for everything http://www.thoughtsofthemasses.com/blogs/ for example. There’s a huge space that exists regardless of anything I’ve edited.

    I’m using the BuddyPress Template Pack Plugin to convert a WP Theme.

    Index PHP:
    `

     <a class="button" href="”>

    • <a href="”>
    • <a href="”>

    `

    CSS:
    `/*
    Theme Name: Andreas09
    Theme URI: http://webgazette.co.uk/wordpress-themes/wp-andreas09/
    Description: Highly customisable three column goodness.
    Author: Andreas Viklund and Ainslie Johnson
    Tags: orange, white, three column, flexible width, threaded comments, custom colors, buddypress

    andreas09 v1.0 (Dec 10th 2005) – An open source template by Andreas Viklund – http://andreasviklund.com. Free to use for any purpose as long as the proper credits are given to the original author.

    Ported to WordPress by Ainslie Johnson – Last updated 28/07/06
    */

    /* Inherit the default theme adminbar styles */
    @import url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/adminbar.css );

    /* General Element Styling */

    body {
    background:#8b8b8b;
    color:#303030;
    font:76% Verdana,Tahoma,Arial,sans-serif;
    margin:0;
    padding:0;
    text-align:center;
    }

    a {
    font-weight:bold;
    text-decoration:none;
    }

    a:hover {
    color:#808080;
    text-decoration:underline;
    }

    p {
    line-height:1.5em;
    margin:0 0 15px;
    padding: 0px;
    }

    /* Captions and image alignment for wordpress */

    div.aligncenter {
    display: block!important;
    margin: 0px auto;
    }
    img {
    border-width: 0px !important;
    border-style: none !important;
    }
    div.alignleft {
    float: left!important;
    margin-right: 10px;
    }
    div.alignright {
    float: right!important;
    margin-right: 0px;
    margin-left: 10px;
    }
    .wp-caption {
    border: 1px solid #CCCCCC;
    text-align: center;
    background-color: #F8F8F8;
    padding-top: 4px;
    margin-top: 10px;
    margin-bottom: 10px;
    }

    .wp-caption img {
    margin: 0;
    padding: 0;
    border: 0 none;
    }

    .wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 16px;
    padding: 5px 4px;
    margin: 0;
    font-family: Arial, Tahoma, “Lucida Sans”;
    color: #949494;
    font-style: normal;
    }

    p img {
    padding: 0;
    max-width: 100%;
    }

    img.centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    }

    img.alignright {
    padding: 4px;
    margin: 0 0 2px 7px;
    float: right;
    }

    img.alignleft {
    padding: 4px;
    margin: 0 7px 2px 0;
    float: left;
    }

    .alignright {
    float: right;
    }

    .alignleft {
    float: left;
    }

    /* End captions and image alignment */

    /*** Main container ***/

    #container {
    color:#303030;
    margin:0;
    min-width:770px;
    padding:0;
    text-align:left;
    width:100%;
    }

    /*** Header section ***/

    #sitename {
    color:#ffffff;
    height:90px;
    margin:0 20px 10px;
    text-align:left;
    }

    #sitename h1,#sitename h2 {
    font-weight:400;
    margin:0;
    padding:0;
    }

    #sitename h1 {
    font-size:2.4em;
    padding-top:20px;
    }

    #sitename h1 a {
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 5px;
    }

    #sitename h2 {
    font-size:1.6em;
    }

    /*** Content wrap ***/

    #wrap {
    clear:both;
    font-size:0.9em;
    padding:0;
    margin-top: 5px;
    }

    /* Horizontal menu */

    #mainmenu {
    clear: both;
    width: 100%;
    margin: 0px;
    padding: 0px;
    }

    #mainmenu ul.level1 {
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    }

    #mainmenu ul {
    background: #b0b0b0 url(images/menubg.jpg) center left repeat-x;
    padding: 0 0 0 5px;
    margin: 0px;
    border-bottom: 1px solid #fff;
    }

    #mainmenu li {
    display: inline;
    line-height: 25px;
    margin-left: -4px;
    padding: 0px;
    font-size: 0.9em;
    list-style: none;
    text-transform: uppercase;
    }

    #mainmenu a {
    padding: 6px 9px 6px 9px;
    text-decoration: none;
    border-right: 1px solid #B0B0B0;
    }

    #mainmenu li.current a {
    color: #000;
    }

    /*** Sidebars ***/

    #leftside,#rightside {
    margin:0;
    padding:0 10px 10px;
    width:165px;
    }

    #leftside {
    float:left;
    margin-right:10px;
    }

    #rightside {
    float:right;
    margin-left:10px;
    }

    #rightside img {
    border: 0px;
    }

    /*** Sidebar menu ***/

    #leftside h2, #rightside h2 {
    font-size: 1.4em;
    margin-top: 10px;
    padding: 5px 5px 5px 0;
    border-bottom: 1px solid #BEBFC3;
    }

    #leftside ul, #rightside ul {
    padding-left: 0px;
    margin: 0px;
    }

    #leftside li, #rightside li {
    list-style: none;
    }

    li#categories li a, li#archives li a, li.pagenav li a {
    background:#e8e9ea;
    border:1px solid #b0b0b0;
    display:block;
    margin-top:4px;
    padding:5px 4px 4px 10px;
    position:relative;
    text-transform: capitalize;
    width:140px;
    }

    li#categories li a:hover, li#archives li a:hover, li.pagenav li a:hover {
    background:#f8f9fa;
    border:1px solid #909090;
    color:#303030;
    text-decoration:none;
    }

    li#categories ul.children li a, li#archives ul.children li a, li.pagenav ul.children li a {
    font-size:0.8em;
    letter-spacing:1px;
    margin:3px 0 2px 10px;
    padding:4px 2px 2px 8px;
    width:125px;
    }

    li#categories ul.children li li, li#archives ul.children li li, li.pagenav ul.children li li {
    padding-left: 10px;
    }

    li#categories ul.children li li a, li#archives ul.children li li a, li.pagenav ul.children li li a {
    width: 115px;
    }

    li.feed {
    background: url(images/rss.gif) no-repeat left top;
    padding: 2px 0 8px 20px;
    }

    li#recent-comments ul li {
    padding-bottom: 5px;
    }

    li#recent-posts ul li {
    padding-bottom: 5px;
    }

    /*** Content ***/

    #content,#contentalt {
    background-color:#fafcff;
    border:1px solid #909090;
    color:#2a2a2a;
    padding:15px 20px 5px;
    }

    #content {
    margin:0 200px;
    }

    #contentalt {
    margin:0 200px 0 20px;
    }

    #content h1,#contentalt h1,#contentalt h2 {
    background-color:inherit;
    color:#606060;
    font-size:1.8em;
    font-weight:bold;
    letter-spacing:-1px;
    margin:0 0 15px;
    padding:0;
    }

    #content h1,#contentalt h1 {
    border-bottom: 1px solid #b0b0b0;
    }

    #content h2 {
    font-size:1.6em;
    color:#606060;
    }

    /* Archives/Links Page List styles */

    .archives li, .linkspage li {
    list-style: none;
    }

    .archives ul.children {
    padding-left: 10px;
    margin-left: 10px;
    }

    /*** Footer ***/

    #footer {
    background:#8b8b8b url(images/footerbg.jpg) top left repeat-x;
    clear:both;
    color:#000;
    font-size:0.9em;
    font-weight:bold;
    margin:0;
    padding:20px 0;
    text-align:center;
    width:100%;
    line-height: 1.5em;
    }

    #footer a {
    color: #d0d0d0;
    font-weight:bold;
    }

    /*** comments Form ***/

    #comment {
    width: 100%;
    border:1px solid #b0b0b0;
    }

    #commentform {
    width: 97%;
    }

    #author {
    border:1px solid #b0b0b0;
    }

    #email {
    border:1px solid #b0b0b0;
    }

    #url {
    border:1px solid #b0b0b0;
    }

    #submit {
    background:#f0f0f0;
    border:1px solid #b0b0b0;
    }

    #submit:hover {
    background: #e8e9ea;
    border: 1px solid #848484;
    cursor: pointer;
    }

    /* Image Display */

    .entry img, .entrytext img {
    border: 1px solid #b0b0b0;
    margin: 5px;
    padding: 5px;
    }

    .entry a:hover img, .entrytext a:hover img {
    border: 1px solid #505050;
    padding: 5px;
    }

    img.wp-smiley {
    border: 0px;
    margin: 0px;
    padding: 0px;
    }

    .thumbnail {
    background:#fafbfc;
    border:1px solid #b0b0b0;
    margin:0 0 10px 10px;
    padding:5px;
    }

    .left {
    background:#fafbfc;
    border:1px solid #b0b0b0;
    float:left;
    margin: 5px 15px 6px 0px;
    padding:5px;
    }

    .right {
    background:#fafbfc;
    border:1px solid #b0b0b0;
    float:right;
    margin: 5px 0px 6px 15px;
    padding:5px;
    }

    .noalign {
    background:#fafbfc;
    border:1px solid #b0b0b0;
    margin: 5px 5px 5px 5px;
    padding:5px;
    }

    /* Search Form */

    #searchform {
    margin-top: 10px;
    }

    #searchbox {
    background:#f0f0f0;
    border:1px solid #b0b0b0;
    margin:0 4px 0 0;
    width:160px;
    }

    #searchbutton {
    background:#f0f0f0;
    border:1px solid #b0b0b0;
    }

    #searchbutton:hover {
    background: #e8e9ea;
    border: 1px solid #848484;
    cursor: pointer;
    }

    /*** Comments Display ***/

    .postmetadata {
    background:#e8e9ea;
    font-size: 0.9em;
    border: 1px solid #b0b0b0;
    padding: 10px;
    margin: 0px;
    }

    ol.commentlist li {
    border: 1px solid #b0b0b0;
    padding: 10px;
    margin-bottom: 10px;
    }

    ol.commentlist li cite {
    text-transform: capitalize;
    }

    ol.commentlist li p {
    padding-top: 10px;
    }

    .alt {
    background:#e8e9ea;
    }

    /*** Text format ***/

    .intro {
    font-size:1.1em;
    font-weight:bold;
    letter-spacing:-1px;
    }

    blockquote {
    border: 1px dashed #b0b0b0;
    padding: 10px;
    margin: 30px;
    }

    blockquote p {
    padding: 0px;
    margin: 0px;
    }

    .small {
    font-size:0.8em;
    }

    .large {
    font-size:1.4em;
    }

    .center {
    text-align:center;
    }

    .category {
    border-bottom: 1px solid #b0b0b0;
    }

    .date {
    margin-top: -10px;
    padding-top: 0px;
    border-bottom: 1px solid #b0b0b0;
    }

    #page {
    border-bottom: 1px solid #b0b0b0;
    padding-bottom: 10px;
    margin-bottom: 10px;
    }

    /* Previous/Next Page Navigation */

    .navigation {
    margin: 0 0 20px 0;
    padding: 0 0 20px 0;
    border-bottom: 1px dashed #b0b0b0;
    }

    .bottomnavigation {
    margin: 30px 0 0 0;
    padding: 5px 0 30px 0;
    border-top: 1px dashed #b0b0b0;
    }

    .alignleft {
    float: left;
    text-align: left;
    }

    .alignright {
    float: right;
    text-align: right;
    }

    .post {
    padding-top: 0px;
    padding-bottom: 10px;
    margin: 0px;
    }

    /* Fix by Andy Skelton */

    .entry, .entrytext {
    overflow: hidden;
    }

    * html.entry, * html.entrytext {
    overflow: visible;
    height: 1px;
    }

    * html.entry p, * html.entrytext p {
    width: 99%;
    overflow: hidden;
    }

    .entrytext {
    padding-top: 0px;
    }

    /*** Various classes ***/

    .clearingdiv {
    clear:both;
    height:30px;
    width:1px;
    }

    .hide {
    display:none;
    }

    /* Widgets */
    .rsswidget {
    border:0px;
    vertical-align: bottom;
    }
    /*** End of file ***/.commentlist li li {
    list-style-type: none;
    }

    /* > Item Headers (Profiles, Groups)


    */

    div#item-header {
    overflow: hidden;
    }
    div#item-header div#item-header-content { margin-left: 170px; }

    div#item-header h2 {
    font-size: 28px;
    margin: 0 0 15px 0;
    line-height: 120%;
    }
    div#item-header h2 a {
    text-decoration: none;
    color: #777;
    }

    div#item-header img.avatar {
    float: left;
    margin: 0 15px 25px 0;
    }

    div#item-header h2 { margin-bottom: 5px; }

    div#item-header span.activity, div#item-header h2 span.highlight {
    vertical-align: middle;
    font-size: 11px;
    font-weight: normal;
    line-height: 170%;
    margin-bottom: 7px;
    }

    div#item-header h2 span.highlight { font-size: 16px; }
    div#item-header h2 span.highlight span {
    position: relative;
    top: -2px;
    right: -2px;
    font-weight: bold;
    font-size: 11px;
    background: #a1dcfa;
    color: #fff;
    padding: 1px 4px;
    margin-bottom: 2px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    vertical-align: middle;
    cursor: pointer;
    display: none;
    }

    div#item-header div#item-meta {
    font-size: 14px;
    color: #aaa;
    padding-bottom: 10px;
    overflow: hidden;
    margin: 15px 0 5px 0;
    }

    div#item-header div#item-actions {
    float: right;
    width: 20%;
    margin: 0 0 15px 15px;
    text-align: right;
    }
    div#item-header div#item-actions h3 {
    font-size: 12px;
    margin: 0 0 5px 0;
    }

    div#item-header ul {
    overflow: hidden;
    margin-bottom: 15px;
    }

    div#item-header ul h5, div#item-header ul span, div#item-header ul hr {
    display: none;
    }

    div#item-header ul li {
    float: right;
    }

    div#item-header ul img.avatar, div#item-header ul.avatars img.avatar {
    width: 30px;
    height: 30px;
    margin: 2px;
    }

    div#item-header div.generic-button, div#item-header a.button {
    float: left;
    margin: 10px 10px 0 0;
    }

    div#item-header div#message.info {
    line-height: 80%;
    }

    /* > Item Lists (Activity, Friend, Group lists)


    */

    ul.item-list {
    width: 100%;
    }
    ul.item-list li {
    position: relative;
    padding: 15px 0;
    border-bottom: 1px solid #eaeaea;
    }
    ul.single-line li { border: none; }
    body.activity-permalink ul.item-list li { padding-top: 0; }

    ul.item-list li img.avatar {
    float: left;
    margin: 0 10px 10px 0;
    }

    ul.item-list li div.item-title, ul.item-list li h4 {
    font-weight: normal;
    font-size: 14px;
    width: 75%;
    margin: 0;
    }
    ul.item-list li div.item-title span {
    font-size: 12px;
    color: #999;
    }

    ul.item-list li div.item-desc {
    margin: 10px 0 0 64px;
    font-size: 11px;
    color: #888;
    width: 50%;
    }

    ul.item-list li div.action {
    position: absolute;
    top: 15px;
    right: 0;
    text-align: right;
    }

    ul.item-list li div.meta {
    margin-top: 10px;
    color: #888;
    font-size: 11px;
    }

    ul.item-list li h5 span.small {
    font-weight: normal;
    font-size: 11px;
    }

    /* > Item Tabs


    */

    div.item-list-tabs {
    clear: left;
    overflow: hidden;
    margin: 25px -19px 20px -19px;
    background: #eaeaea;
    }
    div.item-list-tabs ul li a {
    text-decoration: none;
    }

    div.item-list-tabs ul {
    width: 100%;
    }
    div.item-list-tabs ul li {
    float: left;
    margin: 5px 0 0 5px;
    }
    div.item-list-tabs#subnav ul li {
    margin-top: 0;
    }

    div.item-list-tabs ul li:first-child {
    margin-left: 20px;
    }

    div.item-list-tabs ul li.last {
    float: right;
    margin: 7px 20px 0 0;
    }
    div.item-list-tabs#subnav ul li.last {
    margin-top: 4px;
    }

    div.item-list-tabs ul li.last select {
    max-width: 175px;
    }

    div.item-list-tabs ul li a,
    div.item-list-tabs ul li span {
    display: block;
    padding: 5px 10px;
    text-decoration: none;
    }
    div.item-list-tabs ul li span {
    color: #aaa;
    }

    div.item-list-tabs ul li a span {
    display: inline;
    padding: 0;
    color: inherit;
    }

    div.item-list-tabs ul li.selected a,
    div.item-list-tabs ul li.current a {
    background-color: #fff;
    color: #555;
    font-weight: bold;
    -moz-border-radius-topleft: 3px;
    -webkit-border-top-left-radius: 3px;
    -moz-border-radius-topright: 3px;
    -webkit-border-top-right-radius: 3px;
    }
    ul li.loading a {
    background-image: url( ../images/ajax-loader.gif );
    background-position: 92% 50%;
    background-repeat: no-repeat;
    padding-right: 30px !important;
    }
    div#item-nav ul li.loading a {
    background-position: 88% 50%;
    }

    div.item-list-tabs#object-nav {
    margin-top: 0;
    }

    div.item-list-tabs#subnav {
    background: #fff;
    margin: -15px -19px 15px -19px;
    border-bottom: 1px solid #eaeaea;
    min-height: 35px;
    overflow: hidden;
    }

    div.item-list-tabs ul li.feed a {
    background: url( ../images/rss.png ) center left no-repeat;
    padding-left: 20px;
    }

    /* > Item Body


    */

    .item-body {
    margin: 20px 0;
    }

    span.activity, div#message p {
    display: inline-block;
    font-size: 11px;
    font-weight: normal;
    background: #FFF9DB;
    border-bottom: 1px solid #FFE8C4;
    border-right: 1px solid #FFE8C4;
    color: #ffa200;
    padding: 1px 8px;
    margin-top: 6px;
    text-decoration: none;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    }

    /* > Directories (Members, Groups, Blogs, Forums)


    */

    div.dir-search {
    float: right;
    margin: -37px 0 0 0;
    }
    div.dir-search input[type=text] {
    padding: 4px;
    font-size: 12px;
    }

    /* > Pagination


    */

    div.pagination {
    margin: -15px -20px 9px -20px;
    border-bottom: 1px solid #eaeaea;
    padding: 10px 20px 10px 20px;
    color: #888;
    font-size: 11px;
    height: 16px;
    }
    div.pagination#user-pag, .friends div.pagination,
    .mygroups div.pagination, .myblogs div.pagination, noscript div.pagination {
    background: #f8f8f8;
    border: none;
    padding: 8px 15px;
    }

    div.pagination .pag-count {
    float: left;
    }

    div.pagination .pagination-links {
    float: right;
    }
    div.pagination .pagination-links span,
    div.pagination .pagination-links a {
    font-size: 12px;
    padding: 0 5px;
    }
    div.pagination .pagination-links a:hover {
    font-weight: bold;
    }
    `

    #94309

    Hey @nuprn1,

    im just trying to filter some items in the bp_has_activities() function and cant seem to get it to work whenever I add more than one filter/parameter.

    this works:
    “

    this doesnt work:
    “
    or
    “

    I think my syntax is wrong, or Im trying to mix the filters and parameters in the same place. Anyways, I dont know hot to work with this. Im referencing the following page:

    https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/

    Any help will be much appreciated,
    thanks

    #94202
    chouxpastry2002
    Participant

    Hello guys,
    I think i have arrived at right thread to post my query at.

    I am looking to filter Group creation and member joining activity from Group activities.

    I dont want to display “Member has joined this group” And “Member has created this group” in group activity stream.

    Please tell me how to do it using custom-bp.php file or themes function.php file. I am ok with both the types.

    Regards,
    Sam.

    Roger Coathup
    Participant

    Ok… there are few things you need to look at to achieve this:

    You should create a new theme where you are going to implement your reworked profile / activity sub-nav menu. I suggest deriving this from the bp-default theme: https://codex.buddypress.org/extending-buddypress/building-a-buddypress-child-theme/

    In the default theme, the activity sub-nav menu is created by a call to bp_get_options_nav() in /members/single/activity.php. It’s this call that you’ll either want to replace with your custom version (or apply filters / action hooks to get your desired result).

    You should also take a look at how the activity stream is built – it’s quite easy to create your own activity loop that will return all the items for a given user merged into a single page (rather than the separate tabs): https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/

    Hopefully that’s enough to get you started.

    #93791
    Hugo Ashmore
    Participant

    This page will show you the parameters that can be passed:

    https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/

    What you show should work to limit the qnt returned

    #93439
    Roger Coathup
    Participant

    To show blog activity you’d typically customise your home page template to include a customised activity loop that just shows blog posts.

    Check under Docs… Custom buddypress loops on ths site for details on how to do that.

    There might also be off the shelf widgets that will work for you, but you will need to have a widgetised home page theme

    #93437
    Roger Coathup
    Participant
    #93404
    Roger Coathup
    Participant

    If you want the activity stream as your front page – go to wp-admin … settings … reading … front page displays

    If you just want a small area to show updates, try a widgetised theme, and add the sitewide activity widget

    If you want something more bespoke, i.e. just status updates… you will have to write your own custom activity loop – check docs on this site for information on this. Make sure you do this in a new or child theme.

    Roger Coathup
    Participant

    @jwack – you’ll hit some performance problems –

    You’ll need to use switch_to_blog(blog_id) to change to each blog, and extract the post, author, etc. details.

    Each call to switch_to_blog incurs a performance overhead.

    Your alternative is to store the information you need in the activity stream when a post is saved:

    Most of the information you need is already stored there for you. Take a look at the function: bp_blogs_record_activity()

    You can then code a custom activity loop on your home page, that loops through activity items for new blog posts and checks whether they are in your list of featured blogs: https://codex.buddypress.org/developer-docs/custom-buddypress-loops/

    #93314
    Bowe
    Participant

    “Spam!!!”
    *sees the topic is about his own theme*
    “Absolutely NO problem with this!” :D

    Thanks for creating this topic Ross, I’m really glad you like the theme I’m putting up for sale. And Boone thanks for promoting my already outdated video as well :-) My intention with the new BP-Tricks site is not to only sell a premium theme, and offer some kind of subscription service (I’m not a big fan of subscription models for Themes).

    BP-Tricks will hopefully become a resource for great BuddyPress tips and tricks. Selling the theme is just a great way for me to keep BP-Tricks running, earn some money and hopefully improve the quality of BuddyPress Child Themes.. The theme is GPL and cool stuff that I add to it will all be shared in the form of Tutorials on BP-Tricks. The actual design elements and the support are what people are paying for (similar as WooThemes does this for example).

    Everyone can submit code/design/inspirational Tricks through a form or the backend, and by doing so you’ll earn Awards (@DJPaul his Achievement Plugin FTW!) and badges awarded by me. The best new trick each month earns a nice price (currently a Free theme, but I’ll try to get some sponsors) and they get listed on the frontpage in Widget of Fame :)

    Besides that the Activity Stream is purely meant to be a source of information displaying ONLY new Tricks, external Tricks (BP-Links from @MrMaz) and external member blogs from our members (if you blog about BuddyPress or anything related to it) you can add your RSS feed to your profile and people who follow you get your updates in their stream. This plugin will be released to the community when the site launches next week.

    There’s also a customized search feature which only searches the BuddyPress network (BP.org, BP-Tricks, WPMU.org, Etivite.com, BuddyDev.com, ShabuShabu.eu etc) and a bunch of other stuff which I probably forgot to tell.

    All the site features remain free, and also the site will be Ad free for as long as I earn enough to keep it running without loosing money on it.

    I hope this makes my intentions clear, and that it will become a place where you can enjoy great BP Tricks from not only me, but from anyone, without getting the feeling that I’m out for someone’s money.. because that is certainly not my intention :) If you want to have access to the site before launch to look around and submit some Tricks for the community just let me know, and I’ll make sure you’ll have access and be a part of the cool kids ;)

    marcycapron
    Participant

    I have no luck in changing the default to profile… despite having never changed the slug… I can change the order just fine, but the second I put the snippet in wp-config the base user profile (which default goes to activity) doesn’t work and goes to home page.

    crap.

    #93168
    muchad
    Participant

    put this in your functions.php in your theme

    function my_custom_query_filter( $query_string ) {
    $query_string .= ‘&per_page=10?;
    return $query_string;
    }
    add_filter( ‘bp_dtheme_ajax_querystring’, ‘my_custom_query_filter’ );

    you just change per_page option as you need…
    it’s run for me, you can see here http://blog.uin-malang.ac.id

    #93128
    Nick
    Participant

    I’m open to any other thoughts.

    I’m after something like this on the homepage:

    http://www.nibydesigngroup.com/TUmailer/community.jpg

    I think it’s going to be some major code hacking unless someone has other thoughts.

    #15274
    Nick
    Participant

    I’d like to add fields to the activity stream. I’m a relatively new coder so any help would be appreciated.

    I have studied this post and copied it to a tee but can’t seem to get it to work properly.

    http://buddypress.org/community/groups/creating-extending/forum/topic/adding-a-second-element-for-posting-with-an-activity/?topic_page=1&num=15

    What I am looking to do is to have 6 fields to every activity post: Post Title; Description; Make; Price; Model; and Location.

    I have added the fields to the form in the post-form.php as so.

    `


    @

     
    <input type="submit" name="aw-whats-new-submit" id="aw-whats-new-submit" value="” />

    `

    It looks great. Next I added this to my functions.

    `/**
    * This captures additional info at update.
    */
    function add_equipmentmeta_to_activity( $content, $user_id, $activity_id ) {
    bp_activity_update_meta( $activity_id, ‘equip’, ($_POST) );
    }

    add_action( ‘bp_activity_posted_update’, ‘add_equipmentmeta_to_activity’, 10, 3 );

    function my_equipmentmeta() {
    $my_equipmentmeta = bp_activity_get_meta( bp_get_activity_id(), ‘equip’ );
    //if (is_user_logged_in()) : {
    echo ‘(‘ . $my_equipmentmeta . ‘)‘;
    //}
    //endif;
    }
    add_action( ‘bp_activity_entry_meta’, ‘my_equipmentmeta’ );`

    Which was based on the previous post I mentioned above. I have been testing the ‘add_post_model’ to see if I could get just one to work.

    Lastly I changed the global.js like this.

    `/* Default POST values */
    var object = ”;
    var item_id = jq(“#whats-new-post-in”).val();
    var content = jq(“textarea#whats-new”).val();
    var title = jq(“input#add_post_title”).val();
    var make = jq(“input#add_post_make”).val();
    var model = jq(“input#add_post_model”).val();
    var price = jq(“input#add_post_price”).val();
    var location = jq(“input#add_post_location”).val();

    /* Set object for non-profile posts */
    if ( item_id > 0 ) {
    object = jq(“#whats-new-post-object”).val();
    }

    jq.post( ajaxurl, {
    action: ‘post_update’,
    ‘cookie’: encodeURIComponent(document.cookie),
    ‘_wpnonce_post_update’: jq(“input#_wpnonce_post_update”).val(),
    ‘content’: content,
    ‘title’: title,
    ‘make’: make,
    ‘model’: model,
    ‘price’: price,
    ‘location’: location,
    ‘object’: object,
    ‘item_id’: item_id
    },
    `

    I do not get any errors but I cannot get any data to show up. The holder for the meta tags shows up but it doesn’t contain any data. I’m not entirely sure where I am going wrong. Is this the best solution for my problem or is there something else I am missing?

    Thanks ahead of time for any help…

    #92873
    Roger Coathup
    Participant

    Are you using the default theme?

    The default theme shows the profile on a separate tab when you visit the member’s page. If you want to move the view profile content onto the activity tab you can look at copying the content from members/single/profile.php into members/single/activity.php (do this in a child theme of course).

    If you want something more sophisticated, take a look at the custom loop examples under Support …. Docs on this site

Viewing 25 results - 1,001 through 1,025 (of 1,252 total)
Skip to toolbar