Search Results for 'buddypress'
-
AuthorSearch Results
-
January 3, 2017 at 8:36 am #262508
donburikun
ParticipantThank you for your reply and solution. It would be great however if an option for this was officially implemented in Buddypress as it is an issue that allows malicious users to spam many users in one shot.
January 2, 2017 at 1:19 pm #262496In reply to: I want my users to be able to create posts and pages
danbp
ParticipantIf you consider all your users to have the same ability to publish, you can simply setup WP’s default role from subscriber to author. You don’t need a plugin to do that. To allow categories, search on WP codex, as this has nothing to do with the fact you use BuddyPress.
For customizing the Howdy menu item, use this custom snipet or take one of the existing plugin to do that.
January 2, 2017 at 1:09 pm #262495In reply to: Is possible hide some tabs in profiles??
danbp
ParticipantBuddyPress’s toolbar menu works like any other toolbar sub-menu item.
See WP codex for details
Read here for some usage examples explained in details:
December 30, 2016 at 7:41 pm #262474shanebp
ModeratorYou can create a job listing here.
If you do, you may want to include answers to the questions that danbp asked above.
December 30, 2016 at 7:32 pm #262473In reply to: Error Call to undefined function dbDelta ()
wspond
ParticipantOK, so fresh over-install (copying overtop of running site) of 4.7 and as soon as I turn on buddypress, I loose the admin completely. Take it out of the folder via ftp, then I get admin back. Thoughts.
New godaddy hosting account
Wordpress 4.7
current BuddyPress.December 30, 2016 at 7:27 pm #262472In reply to: Questions about BuddyPress
shanebp
Moderator1. Yes
2. You mean WP posts ? Yes, if you give them permissions.
3. They can ‘friend’ each other. There is a plugin re ‘Follow’.
4. Probably – but you’ll need to customize the Follow plugin.
You should install BP on a test site and start trying different settings and additional plugins.
After you have done that, you can ask more specific questions here.December 29, 2016 at 6:48 pm #262459In reply to: Need Advice for Stopping Spam at the Gate
modemlooper
ModeratorUse this fork, fixed it
December 29, 2016 at 6:21 pm #262457In reply to: Is possible hide some tabs in profiles??
Laura N
ParticipantO_o it is very difficult for me, but “activity” was just an example, If I want to remove a no default option? For example “docs”.
In my buddypress show “docs” because I installed BuddyPress Docs plugin.
function bpfr_remove_nav_tabs() { bp_core_remove_nav_item( 'docs' ); // and so on for each item you want to remove } add_action( 'bp_setup_nav', 'bpfr_remove_nav_tabs', 15 );December 29, 2016 at 6:00 pm #262455In reply to: Amazon AWS (Lambada, SNS, etc.)
danbp
ParticipantBuddyPress display members, but those members are referenced in WordPress. No idea to share about what you want to do, but have you searched on the plugin repo ?
https://wordpress.org/plugins/search.php?type=term&q=Amazon+Services
December 29, 2016 at 5:51 pm #262454In reply to: Is possible hide some tabs in profiles??
danbp
ParticipantActivity is the default tab when you are on a profile. If you want to remove it, you must first define a new default landing tab.
Details in this topic.
Just in case of, bp-custom.php file doesn’t need a CLOSING php tag.
December 29, 2016 at 5:22 pm #262453In reply to: Hide the list of subscribers in a group
danbp
ParticipantYou can use the same technique as the one given on your other topic.
Search the forum for examples or read on codex how to conditionally display a template.December 29, 2016 at 5:17 pm #262452In reply to: Broken after install
danbp
Participantofficial requirements for WP (hosters) are given here. Minimum php version for WP is 5.2.4, while most used php version is 5.6
More WP stats here.BuddyPress users use all 5.3 and above (as of preliminary 2016 survey results).
This means that if you use 5.6, you’re anyway fine.
And about WP and BP compatibility, you can read here.December 29, 2016 at 4:43 pm #262451In reply to: Delete the “Publish a note in the group” function.
danbp
ParticipantHi @pimous,
if you mean the Update form (wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypres/activity/post-form.php), you just have to add a conditionnal into the template file, from within your child-theme.
Something likeif ( is_super_admin ) { // if user is admin, show him the form, otherwide, do nothing bp_get_template_part( 'activity/post-form' ); }For a general idea and more details, read here:
December 29, 2016 at 2:31 pm #262441In reply to: delete notifications
danbp
Participantthank you for the sharing, but I am afraid that your proposal is not acceptable in regard of coding best practice. I let your snippet in place, but i also warn all readers to use it, unless they know what they do.
This forum is public and most users coming here for help are querying at first for BuddyPress related issues solution, not third party plugin tricks like the one you share here. The majority is also not very comfortable with php or even site development.
This aspect is one of the main reason to provide usefull and safe code.
IT IS NOT THE CASE HERE – and i wouldn’t recommand it.Not because it doesn’t or wouldn’t work ( and i haven’t tested it), but because it is not correctly written. Allowing such a snippet is like encouraging (and by the way perpetuating) bad practices. Hopefully you understand and agree that we don’t want this on the BuddyPress support forum.
@sbrajesh ‘s BuddyPress Clear Notification plugin was last updated in march 2016, which is pretty recent. I doubt that the bug is in his plugin and i expect more a menu related issue… but this is only an expectation of mine.If you estimate that your workaround is helpfull for that plugin, get in touch with Brajesh or publish it on the plugin support.
By the way, next time you publish code on this form, use the code button available on the editor toolbar to insert it properly.
FYI about what you did wrong or not properly:
– hacking a core file. Notification template should be used, but from inside a child-theme, not directly from bp-legacy).
– comments should be in english (some in your example are in french)
– your recommendation is against all WP usage:copy this script into ur document root where u have installed ur wordpress
– you can add custom code via bp-custom.php. There is also no need to go to wp root, when you can do the same thing from within your child-theme.
– why do you recall jquery ? It is already loaded when you run BP…
– i’m not a developer, but i’m pretty sure there are other things to mention about coding.In regard of the script itself, BP provide much simplier way to delete notification or show a delete button: reference.
You’re also using french in that script.Calling a file “test” is ok, but in that case you should provide some explanation on how to finally use your snippet. As already said, not everybody here is able to understand – and use raw code – when you provide a workaround. Providing code is fine, providing code+tutorial is always better.
Désolé d’être sévère et rien de personnel, mais juste une mise au point nécessaire.
[modlook] @jjj, @DJPaul, @boonebgorges, @mercime, @hnla, @shanebp, @henrywright
December 29, 2016 at 12:50 pm #262437In reply to: Is possible hide some tabs in profiles??
danbp
Participanthi @tallerwp,
this is documented in Codex. Read here:
You can aso find other examples by searching the forum.
December 28, 2016 at 6:32 pm #262429In reply to: Activity Stream Ads
truelux
ParticipantHere’s my solution… Place this into your child-theme’s / BuddyPress activity-loop.php
<?php $number = 1; while ( bp_activities() ) : bp_the_activity(); if ($number == 10){ echo 'ADSENSE_CODE_HERE'; } $number++; ?>This makes the content appear after the first 10 activity streams but then it goes by every 20. Works for me though 🙂
December 28, 2016 at 9:58 am #262423In reply to: Can’t get BuddyPress activated
Paul Wong-Gibbs
Keymaster@johnjamesjacoby This specific error has already been fixed in BuddyPress trunk a couple weeks ago (I don’t have the changeset number to hand). netweb fixed an identical problem in bbPress a couple of months ago: https://bbpress.trac.wordpress.org/changeset/6113/trunk
December 28, 2016 at 9:56 am #262422In reply to: Can’t get BuddyPress activated
Paul Wong-Gibbs
KeymasterThe issue reported by @larsivar two weeks ago is by a change in PHP 7.1. We have fixed this specific issue for an upcoming release — our ticket tracking PHP 7.1 is here https://buddypress.trac.wordpress.org/ticket/7392
While we could ship a release today to fix that specific error, there is at least 1 other PHP 7.1 error that I know about, which is in WordPress itself, which I reported here https://core.trac.wordpress.org/ticket/39277
We’ll do more testing for PHP 7.1 in BuddyPress in the first couple weeks of the new year (probably) and ship what fixes we have. We may or may not choose to wait for the next minor release of WordPress (4.7.1) before doing that. Still to be determined.
December 28, 2016 at 9:54 am #262421In reply to: Broken after install
Paul Wong-Gibbs
Keymaster@wautersandreas and @danbp Fatal errors with that exact message are caused by a change in PHP 7.1. We have fixed this specific issue for an upcoming release — our ticket tracking PHP 7.1 is here https://buddypress.trac.wordpress.org/ticket/7392
While we could ship a release today to fix that specific error, there is at least 1 other PHP 7.1 error that I know about, which is in WordPress itself, which I reported here https://core.trac.wordpress.org/ticket/39277
tl;dr We’ll do more testing for PHP 7.1 in BuddyPress in the first couple weeks of the new year (probably) and ship what fixes we have. We may or may not choose to wait for the next minor release of WordPress (4.7.1) before doing that. Still to be determined.
December 27, 2016 at 11:41 pm #262415In reply to: Toolbar disappears after Woocommerce install
danbp
ParticipantSorry, but we can’t assist you for premium theme or third party plugin issues. The toolbar is part of WordPress and BuddyPress only allows you to show/hide it for logged out users. See checkbox in BP’s main settings: Show the Toolbar for logged out users.
Control if you have a specific function runing in your theme functions.php file. If you don’t know how to proceed, ask for help on your theme support. If you find nothing in the theme, ask on woocommerce support.
December 27, 2016 at 10:48 pm #262411In reply to: [Resolved] How to Hide Admin accounts 2016?
livingflame
ParticipantSolution: HIDE ADMIN FROM BP WIDGETS AND DIRECTORY
This code is complementary for the other ==>
So, full code:
// Exclude Admin from Directories and BP Widgets add_filter( 'bp_after_has_members_parse_args', 'buddydev_exclude_users' ); function buddydev_exclude_users( $args ) { //do not exclude in admin if( is_admin() && ! defined( 'DOING_AJAX' ) ) { return $args; } $excluded = isset( $args['exclude'] )? $args['exclude'] : array(); if( !is_array( $excluded ) ) { $excluded = explode(',', $excluded ); } $user_ids = array( 1, ); // enter user ids here $excluded = array_merge( $excluded, $user_ids ); $args['exclude'] = $excluded; return $args; } // Deny access to admins profile. User is redirected to the homepage function bpfr_hide_admins_profile() { global $bp; if(bp_is_profile && $bp->displayed_user->id == 1 && $bp->loggedin_user->id != 1) : wp_redirect( home_url() ); exit; endif; } add_action( 'wp', 'bpfr_hide_admins_profile', 1 ); // Hide admin's activities from all activity feeds function bpfr_hide_admin_activity( $a, $activities ) { // ... but allow admin to see his activities! if ( is_site_admin() ) return $activities; foreach ( $activities->activities as $key => $activity ) { // ID's to exclude, separated by commas. ID 1 is always the superadmin if ( $activity->user_id == 1 ) { unset( $activities->activities[$key] ); $activities->activity_count = $activities->activity_count-1; $activities->total_activity_count = $activities->total_activity_count-1; $activities->pag_num = $activities->pag_num -1; } } // Renumber the array keys to account for missing items $activities_new = array_values( $activities->activities ); $activities->activities = $activities_new; return $activities; } add_action( 'bp_has_activities', 'bpfr_hide_admin_activity', 10, 2 );December 27, 2016 at 2:34 pm #262405danbp
ParticipantGroup Forum use bbpress which has his own support. Ask there please.
BuddyPress doesn’t use roles outside what you setup in your WordPress settings.December 27, 2016 at 2:08 pm #262403In reply to: Broken after install
danbp
ParticipantHi guys,
which theme do you use ? Try with Twenty Sixteen or fifteen, and if you deactivated the toolbar in your settings, try to activate it, then activate BP again.
Another thing to try is to not use the theme customizer. Setup WP, then BP and use a twenty theme, without customizer actions. This basic trio should work.
If your site use php 7+, try to use only php 7.0 (not 7.0.x) as BP is not ready for the very latest php version at this time… You could also try to use only php 5.6 instead of 7.0…
Just in case of, as this was already mentionned on Trac, you can follow about that issue on #7406
December 27, 2016 at 1:45 pm #262401danbp
ParticipantHi @venutius
The explanation of this error message and how to solve it can be found here:
https://codex.wordpress.org/Option_Reference
You just have to adjust the comment max links in WP settings > General > DiscussionThe message is coded in bp-core/bp-core-moderation.php:135 and is applied to
$max_linksvariable.Also…
When you get such myterious message, the first place to check for is the pot file! All words used by BuddyPress are listed there, including file names and line numbers. That way, it is easy to get the origin, the function name or some dev’s comment for what is going on.
This trick applies also for theme and other plugins.December 26, 2016 at 9:36 am #262375In reply to: WordPress Customizer Problem
pare81
ParticipantOh, sorry, please close this ticket. My activation siteoption from buddypress was linked to my frontpage. That was the problem.
Best regards
Pare -
AuthorSearch Results