Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'custom activity page'

Viewing 25 results - 651 through 675 (of 831 total)
  • Author
    Search Results
  • #98135
    LPH2005
    Participant

    The code for the activity loop may be placed in the index.php page. Make sure you add the loop with the commenting enabled.

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

    #97508
    Paul Wong-Gibbs
    Keymaster

    @modemlooper, if I create a custom link item to “example.com/activity”, and then click on that link, it loads the correct page and applies the ‘current-menu-item’ class to the li element. I’m testing this on BP trunk and WP 3.0.1.

    If I put a Page into my menu, it gives it the class ‘current_page_item’ as it recognises it is part of the WordPress object hierarchy.

    #97369
    r-a-y
    Keymaster

    It’s basically a page template using a forum topics loop.

    Get acquainted with the forum topics loop!
    https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-forum-topics-loop/

    Not sure if the “forum_id” can be comma-delimited. If so, you could specify specific groups to pull forum topics from.

    You could also possibly use the activity stream loop to gather topics of groups you’ve joined as well:
    https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/

    #96821

    I have my own icons added Like on the page that list blogs it shows the right avatars http://paranormalportal.paranormalsos.com/blogs/

    but in the activity stream & the activity widget it shows only the gravatars or my custom icons & not the users who made the blog post (I hope that makes since)

    #96497
    r-a-y
    Keymaster

    You just need to create a new page with a custom page template and assign this new page as the front page:
    https://codex.wordpress.org/Creating_a_Static_Front_Page#Creating_a_Static_Front_Page

    Once you’ve done this, “Activity” should automatically be added to the nav menu (I think!).

    #96352
    ovizii
    Participant

    well, my idea was this:

    reading through the forums and the codex I found a couple of settigns that seemingly can be used from wp-config.php BUT I don’t want to clutter it too much.
    Alternatively I can use bp-custom.php or make a small plugin and pop it into mu-plugins.

    here is my collection of lines, please let me know where I can find more (built-into BP as I know plugins also offer several of these). What is recommended for what? I try to use wp-config.php only for WP related stuff, mu-plugins only for stuff that really needs to be running on every page and functions.php for stuff specific for my theme (and in this case the main page)

    `/*add user with ID as group admin, alternatively change to mod*/
    define( ‘BP_RESTRICTGROUP_AUTOADD_ADMIN_USER_ID’, 1);
    /* disable the admin bar*/
    /*define( ‘BP_DISABLE_ADMIN_BAR’, false);*/

    /*customize all slugs*/
    /*define( ‘BP_ACTIVATION_SLUG’, ‘activate’ );*/
    /*define( ‘BP_ACTIVITY_SLUG’, ‘activity’ );*/
    /*define( ‘BP_BLOGS_SLUG’, ‘journals’ );*/
    /*define( ‘BP_FORUMS_SLUG’, ‘discussions’ );*/
    /*define( ‘BP_FRIENDS_SLUG’, ‘peeps’ );*/
    /*define( ‘BP_GROUPS_SLUG’, ‘gatherings’ );*/
    /*define( ‘BP_MEMBERS_SLUG’, ‘chefs’ );*/
    /*define( ‘BP_MESSAGES_SLUG’, ‘messages’ );*/
    /*define( ‘BP_REGISTER_SLUG’, ‘register’ );*/
    /*define( ‘BP_SEARCH_SLUG’, ‘search’ );*/
    /*define( ‘BP_SETTINGS_SLUG’, ‘settings’ );*/
    /*define( ‘BP_XPROFILE_SLUG’, ‘info’ );*/

    /*customize more stuff*/
    /*Put profiles in the root � http://example.org/username/*/
    /*define ( ‘BP_ENABLE_ROOT_PROFILES’, true );*/

    (btw. since I have decided upon the final theme to use, I guess I will be going via the functions.php route)

    /*Change the default tab opened when looking at a user’srofile (default is activity):*/
    /*define( ‘BP_DEFAULT_COMPONENT’, ‘profile’ );*/
    `
    Also if you want yo ucan give some more information about order of invocation?

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

    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/

    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?

    #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

Viewing 25 results - 651 through 675 (of 831 total)
Skip to toolbar