Forum Replies Created
I hope we can still update the BuddyPress back-end icons to match WP 3.8 before BP 1.9 goes public.
They’re still colored when being hovered plus the alignment is a tiny bit off.
Yeah, stupid of me, of course, ..thanks Shanebp.
I’ve made a Trac. to get easier customization for this ‘problem’..
It’s set for BuddyPress version 2.0
Probably a typo on a HTML or PHP tag, code not being valid – missing some double quotes or having too manny of them.
Scan this page through a HTML Validator and see the result.
its better to use social button plugin
No it’s not..
This is a great Tutorial, thumbs up for giving this nice piece of code.
This Tutorial is clean and very basic, it does what most people need, just simple links from their BuddyPress profile to the users Social Media pages.
I think it’s too complex for a Plugin because this is too specific to your needs , plugins are great when they serve lots of people. But you could alter the layouts if you know how the template structure in WordPress and BuddyPress works.
Give each page it’s own custom Activity-loop template and you should be able to make whatever view you want on each page that shows an Activity.
By default each page uses only one ( the default ) activity-loop template to create the activity content. But if you like you can duplicate those files and customize them for each page. Just duplicated the needed files and rename them to something like this: activity-groups-loop.php or activity-members-loop.php than make sure at the groups page the loop to the activity doesn’t load the default activity templates but your custom ( duplicated ) files.
I really love how easy this works in WordPress and BuddyPress not a lot of CMS software have this easy to use template structure and logic.
The only real problem I found with this is that the Activity-contents are made by very dynamic code – it’s very difficult to alter the items that will be shown at the page such as time, name, avatar , activity-title and the real content compared to other BuddyPress pages.
I’ve made a Trac. Ticket for BuddyPress 2.0 , so lets hope somebody very smart could change the code a bit and we can really alter our Activity contents too.
Yeah mostly it’s the slug or the name of the template ( file-name.php ) inside the plugins folder.
” 3rd-party plugins should use this template to easily add template support to their plugins for the members component. ”
Thats the template they use for adding a component to the profile page.
Just try a few or ask the Plugin developer.
Yeah I was afraid of that too..
I think I’ve seen some Filter a few days ago to remove a menu-tab. This way you can remove lets say the activity link from popping up on the navigation menu’s.
Try Google at this: BuddyPress + remove + item + PHP_code_that_prints_the_menu()
Hahaha.. I was looking for the same thing yesterday so I made a Codex-page for this question.
You have to add that code to the config.php file.
What are you gonna do with your Groups without Activity system it’s the ‘comments’ part of a group.
Just to make sure where do you want to delete the activity from showing up.
example.org/groups/test-group/ * here */
example.org/members/profile/ * here */
You can always remove the activity-loop from the template structure.
When BuddyPress doesn’t past the activity-loop it will not show up on your site of course.
But shouldn’t een Moderator have control over comments inside the group ?
Okay he can not edit the group description or delete the group as a moderator but I think a moderator should be able to bann people, en edit comments inside the group.
Thats what moderators do, keeping an eye on things.
Right now he can edit only when bbPress is active. He can only moderate on topics and replies not in BP-groups.
Maybe if thats’ what they want – delete this moderate option IF bbPress = not_active.
Because right now you can make somebody moderator but he’s still a regular Member when you don’t use bbPress inside Groups.
Don’t hold back on posting more code-snippets on here
It’s still not 100% what I was hoping for but at least I’ve removed the default ‘ XX time ago ‘ string.
I can’t believe how difficult it is to customize the Activity-stream against ofter BuddyPress functions. The Activity is BuddyPress’ backbone that connects everything together but there are barely template_tags(); available to use.
Look at this, those are 5 different activity_items who are all getting included by a single template-tag(); called bp_activity_action() how could you ever make HTML and CSS around something like this?
I guess loading-times will always be a problem because i’ve never seen a BuddyPress website that loaded regular speed..
What do you mean by change this to a different page ?
You can change the layout of the profile-page and change it to what ever you want it to look like.
If you wanna change this page you can look in the template files..
Or redirect it to a complete different page ? – but why would you do that, if somebody clicks on a name it expects to go to the profile-page and not to a blog-index for example..
This topic is resolved!
Found the second conditional statement aswel,
<?php if ( is_user_logged_in() && bp_current_user_can( 'bp_moderate' ) ) : ?> <li><a class="button" href="<?php bp_group_permalink(); ?>admin/edit-details/"><i class="fi fi-wrench"></i></a></li> <?php endif; ?>
Hope this can help somebody else in the future.
One conditional I got done by looking at some other template files..
Inside the Group Activity template ( groups/single/activity.php ) I found this PHP tag and from reading the lines of code I could tell this was what I’m looking for.
IF user_is_logged_in AND = group_member do that
<?php if ( is_user_logged_in() && bp_group_is_member() ) : ?> <li><a class="button" href="<?php bp_group_permalink(); ?>send-invites/"><i class="fi fi-megaphone"></i></a></li> <?php endif; ?>
One more to go..
In the Plugins section I’ve seen two plugins that work with BuddyPress.
Catalog + Pets the last one can also be used for everything else you just have to change the idea of Pets to some other subject.
True, but I was thinking of using the FitText.js plugin to prevent usernames from going to a second line when they become longer at this index page.
While working with min-heights on each element I try to control each member ‘widget’ having the same overall height.
I would like to use BuddyPress as an upgrade (redesign) of an exciting bbPress site that has been broken from upgrading from bbPress 1.0 -> 2.0.
This site offers news articles, video + audio Post Formats and support trough bbPress but has grown into some very active ‘online-public-bar’ where people like to post a lot of Off Topic stuff mainly on the forum-side of the of the website while the homepage (news) is often overlooked.
Using the Groups section for all Off Topic forum discussions and use the bbPress forums module only for real On Topic support would make this website more social and getting more people involved though the Activity-stream.
Plus I could make a custom audio-postformat (Podcasts) query on the BP Groups page to list all latest Podcasts.
Redesign of the Groups section. Replacing the Avatar for an icon that will be the same through the entire site and people will recognize it as Off Topic stuff.
Maybe the font-size, spacing and coloring is still a bit off but I’ll look at this at the end, right now it using the Global styles.
The buddypress.css file is inside the plugins folder.
wp-content / plugins / buddypress / bp-templates / bp-legacy / css / buddypress.css (copy)
If you wanna change or add to this file this file you can copy-/paste it inside your WP theme folder inside a css folder and this new file will be used instead of the old one.
wp-content / themes / [ your theme name ] / css / buddypress.css (paste)
We can’t help without Live example to view the source..
I never use Cache plugins for Forums or Community driven websites. The content on those kinda websites changes so frequently that it’s very difficult to Cache.
Just optimize your website , minify your JS and CSS files and try to make less browser requests.
What you’re trying to do doesn’t work I believe.
BuddyPress only creates those pre-named Pages in WordPress to create Permalink -structures.
I believe the BuddyPress script takes over from that point , those pages have no further meaning from the back-end of your WordPress website. You can add content to them as much as you want but that content will not show up on the front-end of the page because BuddyPress has taken over those pages and instead loads it’s own ‘groups’ – ‘activity’ – ‘members’ templates.
If you want to add some content to those pages you have to look into the template files.
wp-content / plugins / buddypress / bp-templates/ bp-legacy / buddypress / groups / index.php
Thats the files that will be shown when you view the Groups page.
If you would like to add some content to it or edit it in any form you should copy-/paste that file inside your WP Theme folder – just like this.
wp-content / themes / [your-theme-name] / buddypress / groups / index.php <– make sure that’s a COPY of the default version.
Found the answer by reading this topic.
The word item_id got me thinking-/searching in the Core files before I found this tag.
<?php bp_activity_item_id(); ?>
- It will Echo just a plain ID number of the related Group the activity is posted in. Just what I needed, I maybe was too focused on the word ‘group’ and searching to much about group_id’s.