Search Results for 'forum'
-
AuthorSearch Results
-
November 8, 2016 at 8:51 am #260833
In reply to: Error After Disabling Email Notifications
danbp
Participantavoid to publish error message containing the absolute server path on public forums.
I removed them for your security.November 7, 2016 at 2:56 pm #260816MatrixMedia
Participantto exclude some categories I have tried this:
function exclude_category_slugs_from_activity_stream( $new_status, $old_status, $post ) { // Only record published posts if ( 'publish' !== $new_status ) { return; } // Don't record edits (publish -> publish) if ( 'publish' === $old_status ) { return; } // add in any categories to exclue from activity stream, separated by commas, no spaces $category_slugs_to_exclude = "news,new,News,service,Service"; // create the array that contains the category ids to exclude $ids_to_exclude = array(); // create new array by splitting category slugs by comma $category_slug_array = split( ",", $category_slugs_to_exclude ); // iterate over category_slug_array foreach ( $category_slug_array as $category ) { // get the category id based on the slug $idObj = get_category_by_slug( $category ); $id = $idObj->term_id; // push the category id onto the exclude array array_push ( $ids_to_exclude, $id ); } // get the post's categories $categories = get_the_category( $post->ID ); $in = false; // check if the post has any categories, do nothing if not if( count($categories) > 0 ) { // iterate over categories foreach ( $categories as $category ) { // check if any excluded category exists within post's categories if( in_array( $category->cat_ID, $ids_to_exclude) ) $in = true; } } // Don't record posts from filtered categories if( $in ) return; return bp_activity_post_type_publish( $post->ID, $post ); } add_action( 'bp_init', 'bp_blogs_catch_filtered_published_post' ); function bp_blogs_catch_filtered_published_post() { if ( bp_is_active( 'blogs' ) ) { remove_action( 'transition_post_status', 'bp_activity_catch_transition_post_type_status', 10 ); add_action( 'transition_post_status', 'exclude_category_slugs_from_activity_stream', 10, 3 ); } }I found here: https://premium.wpmudev.org/forums/topic/exclude-auto-blog-posts-from-buddypress-activity-stream
of course I changed the deprecated functions:
bp_blogs_record_post -> bp_activity_post_type_publish
bp_blogs_catch_transition_post_status -> bp_activity_catch_transition_post_type_statusbut nothing … not working … HELP!!!
November 7, 2016 at 2:47 pm #260814In reply to: Forum Excerpt
Venutius
ModeratorThink you need to ask this on the bbPress forum
November 7, 2016 at 1:00 pm #260812Topic: Forum Excerpt
in forum How-to & Troubleshootingmpridham
ParticipantHi,
Can anyone tell me how to enable exceprts in the Forum. Right now I am showing the Topic title and “Started By” but I would like to show the first 60 or so words of the post.
Thanks.
November 7, 2016 at 9:21 am #260810In reply to: searchable directory and forum
Venutius
ModeratorIt could be, difficult to answer since you have not given a great deal of detail on what features you want. You can create multiple extra profile fields which are searchable, you can use a plugin like BP Profile Search to enable all sections of the profile to be searchable, and of course BP supports public and private forums.
November 2, 2016 at 5:23 pm #260654In reply to: Topics open in REPLY mode
Daethian
ParticipantIs that the Third Party Plugins forum or??
November 2, 2016 at 4:58 pm #260653In reply to: Topics open in REPLY mode
Venutius
ModeratorThis sounds like you need to raise it on the bbPress support forum
November 2, 2016 at 3:16 pm #260651In reply to: Display user country flag
danbp
ParticipantThe single topic view template (
loop-single-reply.php) has 2 actions hooks you can use:do_action( 'bbp_theme_before_reply_author_details' ); do_action( 'bbp_theme_after_reply_author_details' );In so far, the above function should work.
Try this one. Add it into your theme function to test. And if it works from there, remove it and add it to your child-theme functions.php file.
function country_flag() { if( class_exists( 'bbPress' ) ) : $user_id = bbp_get_reply_author_id(); $country = xprofile_get_field_data( 'country', $user_id ); echo '<div class="country">'. $country .'</div>'; endif; } add_filter( 'bbp_theme_after_reply_author_details', 'country_flag' );Activate also wp_debug in wp-config.php while testing. It could be possible you have an error somewhere who avoid the function to work properly…
If it still doesn’t work, ask for help on the bbpress support.
November 2, 2016 at 11:04 am #260650In reply to: Mailing Users by posting an Sitewide Notice
Venutius
ModeratorTry asking on the WP Forums maybe?
November 2, 2016 at 9:44 am #260646In reply to: Display user country flag
davehakkens
ParticipantStill doesn’t work.
Here is an example of the page where it should be displayed. Am I missing something?November 1, 2016 at 11:41 pm #260628In reply to: Member’s activity showing up and crawl in google
Slava Abakumov
ModeratorThe best way – to allow access to specific pages for logged in users only. As GoogleBot is logged out – it will lose access and eventually remove indexed content. You can remove manually from Google Web Developer Console for this site as well.
There are quite a lot of topics like these here on the forum. Just google it.November 1, 2016 at 10:55 am #260600In reply to: Display user country flag
danbp
ParticipantIf it doesn’t work in your child theme functions.php, use bp-custom.php
Standalone because bbP is used separetely and not as group forum, which is a popular config when BuddyPress is activated. FYI (in case of):
October 31, 2016 at 8:06 pm #260585In reply to: Display user country flag
danbp
Participanthi @davehakkens,
You use a standalone bbPress. Normally you have to ask on bbPress forum for such questions.
Add this to bp-custom.php or child theme functions.php and give a try.
i tested it with group forums only, so i couldn’t test all the filters.
You might to find/experiment others.It’s a working example who fires the country value. But you’ll certainly have to complete it to get the flag image.
function country_flag() { $user_id = bbp_get_reply_author_id(); $country = xprofile_get_field_data( 'country', $user_id ); echo '<div class="country">'. $country .'</div>'; } add_filter( 'bbp_theme_after_reply_author_details', 'country_flag' ); //add_filter( 'bbp_theme_before_topic_author', 'country_flag' );October 29, 2016 at 5:53 pm #260548In reply to: Force email for login
modemlooper
ModeratorThis is outside scope of BuddyPress support as the login system is core WordPress. You may get better answers in the WordPress forums.
October 29, 2016 at 8:40 am #260543In reply to: How to Turn Off Email Notifications for All Users
danbp
Participantdealing with spammers is a long run work, to not say a never ending work. There is no miraculous plugin or trick to stop them.
And even if you would be a genius coder creator of an extra super original spam shield, you could be sure to became target #1 of all spammers, because in this case, you would represent the absolute challenger of all code breakers !Back to real life.
Most of updates spam comes directly into the DB. Bots are clever and don’t need to login to do that.
Some spammers are real people, and once they are logged, they do their stuff manually. These people can be isolated, but to do this, you have to find them in the user list. Which is absolutely not easy and time comsumting. And of course, this is not prevention but intervention, after you where spammed.You could also track IP‘s, but again, this can be helpfull only AFTER you where spammed. But getting ip’s on admin user list is a great way to gain time. Once you have the IP, you can consult many anti spam sites who store any bot and user known to be attackers. And eventually ban them with this plugin.
For now, first thing to do is to clean your user list. Whatever suspect username, like a589xdf or special to BP, Bill UNERHOOD, can be eliminated. The first example use alpha-numeric digits, the second a very well formed first and last name. It’s extremely rare that normal users enter such credentials. In addition to this, you can check their email. Why would you, for example, have members with a polish email (@blogmedykamenty.pl) if you’re in New Zeeland and your site relates about pets ? In this case, you can raisonably doubt about an interest between medicaments and pets ! You can fire such user.
All this may be good and well, but you have also to hardening WP. This means using another table prefix as wp_ at very first. And second, to not use “admin” as user name. Never !
Read also @venutius tutorialYou have to clean out the existing spammers, unfortunately manually. And to avoid upcoming spam.
To calm down the bots – in case you receive dozen of spam daily, close all comments and deactivate notices and messages component in bp settings for 2 or 3 weeks.
Also, in case you’re on a dedicated server, you really need to enforce his security. But this is out of the scope of this forum.
October 28, 2016 at 8:54 pm #260531In reply to: how to add new members
danbp
ParticipantHow do I add a new member to buddypress from the backend of WP?
They are the forum moderators and group admins.
So, how do I “activate” them?What should be understood from your questions ?
Adding a new user from backend and/or promote it as mod or group admin ?
Adding a new user is not related to BuddyPress, but to WordPress.To promote users as mod or admin or add new user to a group from back-end
dashboard > groups > select the group > edit > anything to do that is at the bottom of the screen.October 28, 2016 at 7:46 pm #260526In reply to: how to add new members
Steve
ParticipantThese are real users on a site that I am developing. They are the forum moderators and group admins.
So, how do I “activate” them?
Is it something I do on the backend? Or do I just login with their info on the frontend?
October 28, 2016 at 5:49 pm #260518Earl_D
ParticipantI see you are using wordfence security plugin. There was a recent but that was preventing uploads on my BP site. You may want to check this thread in WP plugin support forum to see if it related to your problem.
https://wordpress.org/support/topic/recent-update-and-image-uploads/#post-8350474October 28, 2016 at 4:37 pm #260510In reply to: [Resolved] Action Filters
danbp
ParticipantYou’re mentionning activity types…
When you go to a group activity screen, you have the group activity filter which give you a list of related group activities you can use: updates, group updates, group membership and if you have a group forum: topics and replies.
To know how it is spelled internally, the simpliest is to go to DB and _bp_activities table, sort it by component and search groups and you will see the correct type name beside. That’s it for activities.
If you want list all filters applied to groups, use notepad++ and search for “apply_filters”. This will retrieve over 300 lines of filters related to the group component.
…but not sure i understand you correctly. 😉
October 28, 2016 at 3:46 pm #260506In reply to: impossible to create new group, register, ….
danbp
ParticipantNo idea if the order or the names have an influence on your issue, but i don’t think that you need 2 locahost in the file.
You use127.0.0.1 localhost 127.0.0.1 localhost ::1 localhost ::1 mysite 127.0.0.1 mysiteMake it looking exactly like in my previous example.
What is the URL of your local site ?
What do you have in site’s htaccess ?BP pages have no model, just a page attribute, which should be ( no parent ).
What you could do:
Try to install another site with simply WP and BP (download a new copy for each) and see if the issue is still in.
If it does, you have to review your server settings or at least, to read some advice and docsOctober 28, 2016 at 11:10 am #260494Paul Wong-Gibbs
Keymaster@Scaffies (@jenfilgate i’m going to ASSUME you have EXACTLY the same issue, otherwise you should make your own forum topic)
You said:
type “Subscriber” / “Participant” can no longer upload new profile pictures, or pictures, video, or audio to their personal galleries
BuddyPress doesn’t have “personal galleries” built-in. We only support uploading media for group and member profile pictures, and cover images for those. You’ll need to contact the author of the plugin(s) used to provide your personal galleries, we can’t support other plugins. Sorry.
October 27, 2016 at 3:51 pm #260448In reply to: Maybe Buddypress is not right for OUR community!
coffeywebdev
ParticipantI could maybe help out! I estimate that it would cost ~$100-200. I specialize in WordPress plugin extensions, you can check my website out at http://coffeywebdev.com!
I’ve been pretty busy lately, but I found a potential solution on these forums:
I’d be happy to help you make these adjustments, you can direct message me about cost/timeline/etc.
In members-loop.php use this
<?php if ( bp_has_members(bp_ajax_querystring( ‘members’).’&type=alphabetical’) ) : ?>source: https://buddypress.org/support/topic/show-all-members-in-buddypress-directory/
October 26, 2016 at 3:56 pm #260391In reply to: Change Default Members Profile Landing Tab
danbp
ParticipantI guess you don’t understand how it works.
The seventhqueen example you mention show the default landing tab when you visit a profile. This default tab is “activity”.
On your site it is exactly what happens actually:
../members/admin/ -> the defined landing tabOn the demo, default is “activity” and the url is
../members/kleoadmin/ -> the default landing tabThe profile slug is always: /members/USERNAME
The default URL of a profile is always: /members/USERNAME
The default content is profile’s activity which use the default URL/slug
When you navigate inside a profile, from activity to profile to groups, forums or media.
In your case and the actual setting, when you go to activity you will have /members/USERNAME/activity
When you go to profile, you will have /members/USERNAME(defined as default component), when you go to groups, you will see /members/USERNAME/groups and so on.To resume, when you modify the default profile component, in favor of profile view or groups or whatever, you modify only the content showed by default. But this doesn’t modify the default slug which stays the same: /members/USERNAME
In so far, it works like you wanted and i don’t understand what you want now.
October 25, 2016 at 8:40 pm #260340In reply to: BuddyPress Privacy for Messages
danbp
Participantif you’re only looking for “free” solutions, i’m afraid that you won’t get many, unless you find and built them yourself.
BuddyDev, very expensive. That’s your opinion. Did you even know that you use a function contributed by it’s author ?
How many time have you already spent on this forum, and nothing to say about all other searches you probably have done elsewhere ?
Do you imagine the price you have to pay if this support forum wouldn’t be “free” ? And the time (which is money) to charge to yourself for those efforts ? Certainly more than 20$ !Not everything can be native, because not everybody need functionnalities you want and because BP is only a plugin and not a collection of whatever existing enhancement who might be added, or who YOU think it should be in.
This is your 7th topic here.
And a good dozen of times i read your claim about lack of feature or functionnalities.
You critizise a lot but aren’t very constructive. That attitude is really unfair in regard of all thepeoplevolonteers working around BuddyPress.October 25, 2016 at 5:03 pm #260312In reply to: Activities
danbp
ParticipantHi @mei-ling,
it’s not an issue but how it works ! 😉
You can filter the activity stream and remove the activities you don’t want to be showed.
Add this snippet to bp-custom.php or your child-theme functions.php
function bpex_bp_activity_types( $retval ) { if ( bp_is_active( 'activity' ) ) { // list of all BP activity types - remove or comment those you won't show. $retval['action'] = ' activity_comment, activity_update, // bbp_topic_create, // bbp_reply_create, friendship_created, created_group, joined_group, last_activity, new_avatar, new_blog_post, new_blog_comment, new_member, updated_profile '; return $retval; } } add_filter( 'bp_after_has_activities_parse_args', 'bpex_bp_activity_types' );You might also remove bbpress activities from the activity filter. You can use this (goes to same file as previous)
function bpex_remove_bbp_activities_dropdown_labels() { if ( bp_is_active( 'activity' ) ) { // Remove forum filters in site wide activity streams remove_action( 'bp_activity_filter_options', array( bbpress()->extend->buddypress->activity , 'activity_filter_options' ), 10 ); // Remove forum filters in single member activity streams remove_action( 'bp_member_activity_filter_options', array( bbpress()->extend->buddypress->activity , 'activity_filter_options' ), 10 ); // Remove forum filters in single group activity streams remove_action( 'bp_group_activity_filter_options', array( bbpress()->extend->buddypress->activity , 'activity_filter_options' ), 10 ); } } add_action( 'bp_init', 'bpex_remove_bbp_activities_dropdown_labels', 9 );Codex references:
-
AuthorSearch Results