Search Results for 'buddypress'
-
AuthorSearch Results
-
August 14, 2014 at 5:45 pm #186927
In reply to: Problem with Geotheme 3.3
mohammad-mursaleen
ParticipantI think to avoid conflict you can add
add_theme_support( 'buddypress' );in your child theme function.php file.
For more info visit the following link.
BP Theme Authors: make sure your theme registers 'buddypress' support
Hope this would help others in the community.
August 14, 2014 at 4:58 pm #186923In reply to: [Resolved] Query users based on xprofile data
danbp
ParticipantHi @magicroundabout,
Natively xprofile field datas are automatically made clickable.
When you click on it BP built a list of members who answered the same thing.
See here how it works and how you can handle this
https://codex.buddypress.org/component/xprofile-2/https://buddypress.org/support/topic/how-to-remove-auto-generated-links-in-user-profile/
https://buddypress.org/support/topic/remove-automatic-links-in-profile/August 14, 2014 at 2:37 pm #186584danbp
ParticipantHi @saurabhsjain91,
not exactly possible yet. Consider those topics
https://buddypress.org/support/topic/admin-moderated-group-creation/#post-168082
https://buddypress.org/support/topic/approval-for-group-by-admin/#post-148409August 14, 2014 at 1:31 pm #186575snarkypuppet
ParticipantHey @shanebp – thanks for sharing – I think this might only work if you are looking for friends + personal activity.
I’ve been scouring the forums and wp stack exchange and haven’t found anyone that has got this setup working. I’m seeing a lot of people saying it can be done but no actual code examples or suggestions for how. I do see that personal + friends activity can be combined with the example given on the activity loop page.
Is there anyone in the buddypress dev community that has, in practice, combined various scopes successfully?
August 14, 2014 at 8:09 am #186563In reply to: members portfolio with video
danbp
ParticipantHi @brodskis,
there is an old plugin who may already work with 2.x (not tested)
https://wordpress.org/plugins/buddypress-portfolio/and this one, but as profile widget
https://wordpress.org/plugins/bp-profile-widgets/August 13, 2014 at 11:45 pm #186558In reply to: members portfolio with video
brodskis
ParticipantHi
Thank you for suggestionI tried RTmedia but that gives members an option to upload media. I’m looking for a way for members to easly embed vimeo or youtube on there profiles. Alternatively do you know of any good themes useing buddypress with easy interfaces for members to make their creative portfolios on including embedding vimeo.
all the best
August 13, 2014 at 11:33 pm #186557In reply to: members portfolio with video
Henry Wright
ModeratorAugust 13, 2014 at 10:27 pm #186554In reply to: BP Default Cookie Usage
Henry Wright
ModeratorHi @packjazz,
One of the main uses of cookies within BuddyPress is in template message display. In this case, cookies are used to store generated error or success messages and display them after the page has been reloaded.
If you try searching the BP code base for
setcookie, you should find how else BP utilises cookies.Note: WordPress probably utilises cookies too.
August 13, 2014 at 8:14 pm #186551alscott99
ParticipantWell I thought it was a BuddyPress issue, which is why I came here. But if you’re all saying that the code I have should be working, then I will definitely contact theme support next.
August 13, 2014 at 7:22 pm #186546snarkypuppet
ParticipantJust did a quick test in
bp-activity-template.php. This isn’t any kind of solution as i’m editing core files.As suggested in another thread I created an additional ‘case’ in
bp_has_activities(). This code does not work and is a pretty basic attempt. Note that I only included the case here, there are a few other edits required in the function. This will return posts by friends in groups you belong to.The issue seems to be that we want
$primary_idOR$user_idbelow, not BOTH. Does someone have some insight into a way around this? Or can someone confirm that this is in fact the issue?case 'groupsfriends': if ( bp_is_active( 'groups' ) ) { $groups = groups_get_user_groups( $user_id ); if ( !empty( $groups['groups'] ) ) { $object = $bp->groups->id; $primary_id = implode( ',', (array) $groups['groups'] ); } //$user_id = 0; } if ( bp_is_active( 'friends' ) ) $friends = friends_get_friend_user_ids( $user_id ); if ( empty( $friends ) && empty( $groups['groups'] ) ) return false; $user_id = implode( ',', (array) $friends ); break;August 13, 2014 at 6:58 pm #186543danbp
ParticipantSeems not to be possible for the moment. If you read the ticket, Boone says:
It’s a nice thought, though I’m not sure if it’d be possible to make this work without refactoring the entire activity query class. Moving to Future Release for discussion.
Feel free to disccuss this on #4988 or try to create a patch.
August 13, 2014 at 6:10 pm #186542snarkypuppet
ParticipantHey @danbp Thanks for the response. I looked into that thread and that led me to this:
bp_has_activities to accept multi scope
This is an enhancement marked for future review… 14 months ago :\ – Looks like the only way to do it is to write a new class/function.
Is there anyone out there that has written something that includes multiple scopes? Is it possible?
August 13, 2014 at 5:41 pm #186539danbp
Participantfor simple filtering, you can use the template file and the appropriate conditionnal (bp_has_activities….) for the activity loop
For more complex filtering it is better to write your own function.
So yes it can be done.For ex like here
https://buddypress.org/support/topic/filtering-activity-stream/August 13, 2014 at 5:12 pm #186535In reply to: Activity filtering: friends and groups
danbp
ParticipantAugust 13, 2014 at 4:53 pm #186533In reply to: friend request under another subnav-item
danbp
Participanthi @commoneasy,
anything concerning friends is in /buddypress/bp-friends folder.
It is unclear to me what you want to achieve exactly. Can you please explain the difference between what BP does natively with friends request and you want to get by having a sub-nav item leading to… what exactly ? How do you figure this out ?
Freend request is a more complex affair as simply getting the “request loop” on a separate template.
August 13, 2014 at 9:40 am #186518danbp
Participantplease read here and provide more details and if possible give a site URL.
All of your topics are so far related to some weird settings of your wordpress/buddypress installation. So it is somehow complicated to help you if you don’t resolve this first.There is no shame to read the WP codex by the beginning: get started and to follow each step.
August 13, 2014 at 9:30 am #186516danbp
ParticipantHi @simpleone,
you can actually only hide xprofile fields. Hiding field groups is not possible, due to a bug.
But it is corrected for 2.1 and you’ll find a patch on the trac.You can already apply the patch to 2.0.2 bp-xprofile-classes.php and the above snippet will work. Add it to bp-custom.php or theme’s functions.php
To hide an xprofile group, use bp_parse_args like this:
function bpfr_make_profile_tab_members_only( $retval ) { // hide to non members if( !is_user_logged_in() ) { // exlude groups, separated by comma $retval['exclude_groups'] = '4,5'; // exclude fields, separated by comma $retval['exclude_fields'] = '1,39'; } return $retval; } add_filter( 'bp_after_has_profile_parse_args', 'bpfr_make_profile_tab_members_only' );August 13, 2014 at 12:39 am #186510milosnikolic
ParticipantYeah I understand that it’s how it was designed to work, but it should only do it if you manually mark someone or if akismet does it. But it has to be Buddypress as nothing else is enabled, but why some users and not all then…
August 13, 2014 at 12:13 am #186505milosnikolic
ParticipantOk here I found this:
“Added new “hide_spam” parameter to the entire Activity template loop stack; defaults to true, except if specific activity items have been requested (for backpat reasons).”I found “hide_spam” in 3 files in buddypress but it’s already set to false? How can I disable this option?
Is it here in bp-activity-template.php:
// If a user is a spammer, their activity items will have been automatically marked as spam. Skip these.
if ( $comment->is_spam )
continue;$user_ids[] = $comment->user_id;
or here
@type string|bool $spam Spam status. ‘ham_only’, ‘spam_only’, or false
* to show all activity regardless of spam status. Default: ‘ham_only’.August 13, 2014 at 12:00 am #186502milosnikolic
ParticipantYes I thought so but one of the first things I tried is to disable all plugins except Buddypress and it was still happening. I tried it again now – bbpress error is for something else it seems, as users still get marked for spam even when it’s disabled.
August 12, 2014 at 11:54 pm #186500shanebp
ModeratorThose notices are about bbpress, not buddypress.
Try asking on the bbpress support forums.August 12, 2014 at 8:24 pm #186487milosnikolic
ParticipantYes I’m using a custom Buddypress theme (Cinematix) but it’s updated to the newest version and no one else has that problem. bp-custom.php doesn’t exist. I tried switching the theme also and same thing is happening.
Is there a way to disable buddypress flagging users for spam, so that is_table field isn’t being set to 1?
August 12, 2014 at 8:03 pm #186484Joe
Participantwell i pasted the following code into the member-header.php file in buddypress where it says to add code and still no luck.
<div id="member_profile"> <div class="profile_fields">Position <span><?php bp_member_profile_data( 'field=Position' );?></span></div> </div> <?php /*** * If you'd like to show specific profile fields here use: * bp_member_profile_data( 'field=About Me' ); -- Pass the name of the field */ do_action( 'bp_profile_header_meta' ); ?> Any ideas?August 12, 2014 at 7:16 pm #186480In reply to: How to connect Buddypress to MySQL.
bp-help
Participant@onogbebor
You really need to be more clear in what you hope to achieve. If you have WordPress installed and have also installed and activated BuddyPress then there is already a connection with MySQL and the BP tables are already created.August 12, 2014 at 1:24 pm #186472shanebp
ModeratorThis could be done, but it will require much more than a code snippet.
You’ll have to duplicate all the activity comment code for php, js & html.
Take a look at:
buddypress\bp-templates\bp-legacy\buddypress\activity\comment.php
to get an idea of what is involved. -
AuthorSearch Results