Search Results for 'custom activity page'
-
AuthorSearch Results
-
September 26, 2010 at 7:51 am #93439
In reply to: Display recent group blog posts on home page?
Roger Coathup
ParticipantTo 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
September 26, 2010 at 7:41 am #93437Roger Coathup
ParticipantFor the solution, please see this thread: https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/customizing-buddypress-profile-page-default-tab-and-item-nav-order/?topic_page=1&num=15
September 25, 2010 at 7:45 pm #93404In reply to: How To Show “Status Updates” In The Frontpage?
Roger Coathup
ParticipantIf 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.
September 24, 2010 at 11:03 pm #93346Roger 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/
September 24, 2010 at 2:59 pm #93314Bowe
Participant“Spam!!!”
*sees the topic is about his own theme*
“Absolutely NO problem with this!”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
September 23, 2010 at 7:52 pm #93231marcycapron
ParticipantI 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.
September 23, 2010 at 2:58 am #93168muchad
Participantput 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.idSeptember 22, 2010 at 4:53 pm #93128In reply to: Add custom fields to activity stream
Nick
ParticipantI’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.
September 19, 2010 at 5:47 pm #92873In reply to: Add users profile fields to the activity page
Roger Coathup
ParticipantAre 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
September 16, 2010 at 3:18 pm #92610Mark
ParticipantCan anyone else think of any other snippets I can add to the bp-custom.php to block new posts in one specific blog showing up in the activity stream?
ie. My blog_id is 282 and I have tried the 2 codes above?
September 16, 2010 at 2:28 pm #92606Mark
ParticipantAhh, thanks @nuprn1 – I have a bp-custom file, Im just being stupid. Just the numerical id to find. Thanks again.
September 16, 2010 at 2:16 pm #92605rich! @ etiviti
Participantsearch up on placing code snippets in the theme’s function.php or creating a bp-custom.php
the blog_id is not the name of the blog but rather the numerical value in the db for that blog.
September 16, 2010 at 1:00 pm #92592rich! @ etiviti
Participantfunctions/bp-custom file – but with that code snippet you won’t be able to recover the data going forward (blocked from the db) – make sure you test it
September 16, 2010 at 12:23 pm #92587Roger Coathup
ParticipantYou can adapt the code snippet in here by changing the blog id: https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/posts-of-the-main-blog-in-site-wide-activity/
If your theme follows the default structure, you’ll find your activity loop in my-theme/activity/activity-loop.php
Also have a look at the custom loop documentation (click documentation under support tab) on this site
September 12, 2010 at 1:59 am #92200Pisanojm
Participant@nuprn1 @mercime @boonebgorges
Thank you for leading me to the code to get to this… I basically just did a super-slight mod of Rich’s code. Here is what I used and I put it in the the bp-custom.php file in the plugins directory:
`<? function my_group_loop_activity_item() {
global $bp, $activities_template;
if ( !bp_is_active( ‘activity’ ) )
return;
if ( !bp_group_is_visible() )
return;
$show_hidden = false;
/* Group filtering */
$object = $bp->groups->id;
$primary_id = bp_get_group_id();
if ( ‘public’ != $bp->groups->current_group->status && groups_is_user_member( $bp->loggedin_user->id, bp_get_group_id() ) )
$show_hidden = true;
/* Note: any params used for filtering can be a single value, or multiple values comma separated. */
$defaults = array(
‘display_comments’ => false, // false for none, stream/threaded – show comments in the stream or threaded under items
‘sort’ => ‘DESC’, // sort DESC or ASC
‘page’ => 1, // which page to load
‘per_page’ => false, // number of items per page
‘max’ => 1, // max number to return
‘include’ => false, // pass an activity_id or string of ID’s comma separated
‘show_hidden’ => $show_hidden, // Show activity items that are hidden site-wide?
/* Filtering */
‘object’ => $object, // object to filter on e.g. groups, profile, status, friends
‘primary_id’ => $primary_id, // object ID to filter on e.g. a group_id or forum_id or blog_id etc.
‘action’ => ‘new_forum_topic’, // action to filter on e.g. activity_update, new_forum_post, profile_updated
‘secondary_id’ => false, // secondary object ID to filter on e.g. a post_id
/* Searching */
‘search_terms’ => false // specify terms to search on
);
$r = wp_parse_args( $args, $defaults );
extract( $r );$filter = array( ‘user_id’ => false, ‘object’ => $object, ‘action’ => $action, ‘primary_id’ => $primary_id, ‘secondary_id’ => $secondary_id );
$activities_template = new BP_Activity_Template( $page, $per_page, $max, $include, $sort, $filter, $search_terms, $display_comments, $show_hidden );
while ( bp_activities() ) : bp_the_activity(); ?>
<div class="item-descb" id="activity-“>
Latest Topic Activity in the Group:
<a href="”>
<?php endwhile;
}
add_action( ‘bp_directory_groups_item’, ‘my_group_loop_activity_item’ );
?>`I also added this to the default.css to give me a little more control of the output (changed the div in the original to match below):
` ul.item-list li div.item-descb {
margin: 10px 0 0 64px;
font-size: 11px;
color: #888;
width: 85%;
}
`THANKS AGAIN! Here is a pict completed:
http://mustech.net/holder/grouptopic2.jpgSeptember 10, 2010 at 2:51 pm #92085In reply to: Theme won’t update
strategicblend
ParticipantYeah you probably shouldn’t visit the URL – its a live staging site and always changing. I only placed it above per forum etiquette. If you need examples of actual code or the actual php files themselves I can certainly provide.
(UPDATE: I’ve told the dev team to temporarily hault any activity so you should be able to see the fully rendered site at that URL and specifically note the pages aren’t changing).
When I switch to the original BP theme everything DOES work. But just to note, I don’t have the option of using that theme – it has to be my own custom theme.
September 8, 2010 at 9:10 pm #91906In reply to: Author's posts in his profile
Roger Coathup
ParticipantHej Patrik – are you building your own theme for this (writing PHP, HTML templates, etc.)?
You’ll have to modify the templates for your profile page (e.g. members/single/home.php in the default theme) to include your custom activity loop.
You can access the current user_id within that page, and pass it to your custom loop.
August 31, 2010 at 1:17 pm #91108In reply to: aggregate activity stream from public groups
lorenzo
MemberHi Roger (and everyone else!), i think i’m going somewhere now, but will need some extra input. hopefully the thread will be an additional useful example!
ok, this is where i am at: default theme with the ajax controllers at the top of the activity stream. in the activity folder of the child theme i have an index.php and activity-loop.php and and entry.php.
basically i’ve got a ‘private’ area with content accessible only to staff. for normal post/pages i have is an extra check based on a custom field for posts and the category for pages like the following and then based on the group membership i either show a message or the actual content:
http://pastebin.com/E4cnkwZS (top)
now, because the group is private, the BP stuff is not showing in the activity stream already, which is good, but the posts/pages bypass my checks and come up in the list of activities showing the actual content which should be private instead.
so, here is what i came up with so far. using the index.php i check the group membership and then load two different activity-loops:
http://pastebin.com/E4cnkwZS (bottom)how would you exclude stuff? in the bp_has_activity function there is an ‘include’ option which allows to filter content, but not an ‘exclude’ one. it might be trivial to go around it, but not sure how. furthermore if you use the dropdown filter i have the impression that the arguments are passed dynamically resetting whatever is passed in the original query (like in your example and some i’ve tried using the same model).
i would very much appreciate any further suggestion! thanks
August 28, 2010 at 6:45 pm #90740In reply to: BuddyPress Template Pack
govpatel
ParticipantI am using latest wordpress 3.0.1 and default twentyten child theme and all i did was transfer folders using buddypress theme pack and go in menu and create a custom menu and use it as primary menu add all the pages in menu and than create custom links for buddypress like for /activity /members/ /forums and so on and they work fine.
August 28, 2010 at 12:43 pm #90689In reply to: Show comments on the activity related to that blog?
Roger Coathup
Participant@javipas – you need to be a little clearer on your setup. In the default setup / theme, the activity stream is a separate page, and not something that shows up on individual blogs / blog pages.
Are you using a custom theme with a custom activity stream, or an activity stream widget in your blogs?
The standard activity stream loop shows activity across your entire BuddyPress installation. If you want to filter the activity steam to just show comments relating to a specific blog, you can write your own custom activity loop:
Take a look at this documentation, in particular filtering on the primary_id to just show posts for a specific blog id: https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/
August 26, 2010 at 3:21 pm #90472In reply to: Profile Updates as List
Hugo Ashmore
ParticipantYou’ll probably want to create a custom loop then in whatever page, have a look at this page of the codex:
https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/August 25, 2010 at 8:18 pm #90364In reply to: Buddypress not on themainblog ?
John
ParticipantHello,
Thanks you very much for helping me.
I’ve followed your link but I’ve got a problem.
(3) Keep your old BuddyPress user / group avatars
I don’t find my file bp-custom.php (at the following location : wp-content/plugins/buddypress/), should I create one or is it at an another location ? I’ve looked but I didn’t find anything.(4) Redirect previous BuddyPress permalinks
I’ve edited my .htaccess but when I click on my name from a comment I’ve made on a post on the blog’s network or if I try to view an activity I end up on the same page : the Members Directory. I’m using the default buddypress theme on the blog.Did I make a mistake on my .htaccess ?
Here’s the path of my installation, using Wamp :
http://127.0.0.1/themainblog/ – the main blog
http://127.0.0.1/themainblog/network/ – where buddypress is enabled.
http://127.0.0.1/themainblog/blogname/ – a blog from the networkHere’s how I edited my htaccess :
RewriteEngine On
RewriteBase /themainblog/
RewriteRule ^index.php$ – [L]# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]RedirectMatch 301 ^/members/(.*)$ http://127.0.0.1/themainblog/network/members/$1
RedirectMatch 301 ^/groups/(.*)$ http://127.0.0.1/themainblog/network/groups/$1
RedirectMatch 301 ^/blogs/(.*)$ http://127.0.0.1/themainblog/network/blogs/$1
RedirectMatch 301 ^/forums/(.*)$ http://127.0.0.1/themainblog/network/forums/$1# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
RewriteRule . index.php [L]Best regards,
August 14, 2010 at 11:00 am #89058In reply to: How to make a private community?
Hugo Ashmore
ParticipantThat sounds like you actually need a custom front page, but what do mean by ‘click it’ that’s a rather loose term click what?
Why does that page not simply have the text/content you want with a simple link to the registration page and also a simple login, registered users will login and be directed to their profile page by the plugin mentioned earlier. What you do with the main site home link is another question, suppose it’s possible to have that custom frontpage display your intro page to all logged out users and once logged in if a member navigates back to that page it will display ? activity loop / main site blog posts
August 13, 2010 at 12:03 am #88915In reply to: I need ideas for theme creation.
Nahum
Participant@modemlooper contextual sidebars a definite must when working towards the perfect bp theme, as mentioned by nit3watch. I hate having to create them and loading up the sidebar.php with if statements to know what page you are on. Also a blog network focused theme combining the groups/blog components to work together. as mentioned here. https://buddypress.org/community/groups/requests-feedback/forum/topic/why-couldnt-the-groups-component-structure-work-for-blogs/
Custom field and post tags,cats, recognition by the activity stream with index file that can be manipulated to function like a site wide tags replacement.
Tagging and categorization for blogs. widgets and page templates for each.
Bring more individual blog info out front(posts, comment_counts, ) so that member blogs content can be categorized, highlighted and maneuvered more easily.
Pull in user blog info into their profiles, posts count, draft counts, quick links to their blog admin, widgets. Blog management options or panel.
Include follow blog streams feature, similar to follow people, but instead it pulls in new_blog_post activity into Blogs I follow activity tab.
The perfect blog network bptheme, basically.August 6, 2010 at 3:20 pm #88250justbishop
Member@mattmct: Or you could use conditional statements in a custom template. It would go something like this:
-
AuthorSearch Results