Search Results for 'forum'
-
AuthorSearch Results
-
August 27, 2016 at 6:43 pm #258125
In reply to: tinymce in activity replies and comments
danbp
ParticipantThe ultimate tutorial to add wp_editor to What’s New textarea (on Site, Members and Group Activities pages).
Warning
The What’s New feature was never intended to publish posts or formatted text. It was imagined for brief announcement or instant conversation. That’s why this textarea is texturized and doesn’t allow much HTML tags. It is also ajaxified and need the original BP ID to work.
You will use it at your own risk.The following trick will let you remove the existing textarea from the template and replace it with a custom wp_editor. And it will be very customized ! For example, you will not have the visual tab, but only his HTML version, similar to the one you see on this forum for example.
Required:
BuddyPress activated
a working child theme
some understanding of HTML and php grammarThis trick was succesfully tested on a single install with WP 4.6, BP 2.6.2 and a Twenty Sixteen child theme.
Start !
Read from here how to remove the textarea in post-form.phpThe code to remove is line 40 and looks like this:
<textarea class="bp-suggestions" name="whats-new" id="whats-new" cols="50" rows="10" <?php if ( bp_is_group() ) : ?>data-suggestions-group-id="<?php echo esc_attr( (int) bp_get_current_group_id() ); ?>" <?php endif; ?> ><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_textarea( $_GET['r'] ); ?> <?php endif; ?></textarea>You replace it by:
<?php $content = ''; $editor_id = 'whats-new'; wp_editor( $content, $editor_id ); ?>As the visual edit tab doesn’t work, you must deactivate it. In your child-theme functions.php, add this:
add_filter( 'user_can_richedit' , '__return_false', 50 );And that’s it !
If you want also rich edit for activity comments, which i didn’t recommand for sites who have many comments, you can use the same technique as above, with some more settings. Note that each comment has is own ID and that each comment editor should also have an unique ID.
First, you need to remove the textarea from (child-theme/buddypress/)activity/entry.php
You remove this:
<textarea id="ac-input-<?php bp_activity_id(); ?>" class="ac-input bp-suggestions" name="ac_input_<?php bp_activity_id(); ?>"></textarea>
and replace it by<?php $id = bp_get_activity_id(); $content = ''; $editor_id = 'ac-input-'. $id; $settings = array( 'textarea_name' => 'ac_input_'. $id, 'editor_class' => 'ac-input bp-suggestions' ); wp_editor( $content, $editor_id, $settings ); ?>With Twenty Sixteen, i first couldn’t see the Post Update button and the option selector. I got it with this little CSS adjustment (in child-theme/style.css).
div#whats-new-options { display: block!important;}Function reference: wp_editor.
August 26, 2016 at 7:05 pm #258096In reply to: tinymce in activity replies and comments
danbp
ParticipantSo far i know, this stopped to work correctly recently (search the forum). Something is going wrong with JS and the what’s new textarea. In fact, it doesn’t become a real wp-editor when used inside BP…
August 26, 2016 at 11:53 am #258082In reply to: Isolated Groups
BILL
ParticipantThanks @DanBP
I can’t figure out how to do it with BuddyPress so I am asking for any opinions that could point me in a useful direction. My thought concerning bbPress was that maybe by adding forums I would be able to limit what the Group Leader and Students can see to just that groups user list.
So, my question isn’t how to get bbPress to do this but what way can I do this. Does BuddyPress have this functionality and I need to find some instructions that have eluded me so far? Or, is there a plugin that I have to use or possibly do I have to learn about using the multisite feature or some other method to create isolated groups that the group leader can invite and remove users without seeing other companies/clients?I accept I may be missing something obvious to knowledgeable WP Devs, actually, I hope it is something I just haven’t found in the BuddyPress docs.
To be clear, this project is still in development and I can use whatever is best for this important and seemingly simple situation.
August 25, 2016 at 7:00 pm #258060In reply to: Isolated Groups
danbp
ParticipantHi,
bbPress is a forum plugin. Why should you need a forum to group users ?
August 24, 2016 at 4:08 pm #258018In reply to: Fatal Error
danbp
ParticipantPlease don’t double post on this forum.
You activated BuddyPress Custom Profile Menu plugin and got a fatal error. Remove it or rename his folder via FTP, so you can access your dashboard again.
Then contact the plugin author.
Since 2.6, BP use a new navigation API. Maybe the plugin isn’t updated for that or there is another conflict with your theme.August 24, 2016 at 4:09 am #257956In reply to: Site-Wide Colored Names
Zimm
ParticipantForums, blog posts, private messages, any comments, etc.
August 20, 2016 at 10:56 pm #257834danbp
ParticipantProfiles are handled on the mandatory BP members page.
And yes you’re supposed to go to your-site/members/USERNAME/profile/ via the usermenu which is in the top-right corner of the toolbar (like on this forum) or from any profile, via the buddynav.Glad you got it !
FYI, see eventl. here:
https://buddypress.org/support/topic/add-dynamic-menu-link/#post-242555August 19, 2016 at 2:17 pm #257780In reply to: email notifications stopped for @ mentions, replies
pixelpushermama
Participant@djpaul Any news on this? That mail bridge plug in did not work for us. We are currently running WP 4.5.3 (I know there is an update available)
BuddyPress Version 2.6.2
BuddyPress Edit Activity 1.0.8
BuddyPress Follow Version 1.2.2
BuddyPress Forum Editor Version 1.0
BuddyPress Global Search Version 1.1.4Along with
bbPress 2.5.10
BuddyBoss Wall Version 1.2.7
BuddyBoss Media Version 3.1.9
Along with Memberium and i2SDKThese appear to be a few revisions beyond when we asked originally and it is still not functioning.
It has been several months since we have had an operational email notification capability,which is a problem for us, running a paid site we need full functionality. Can you reccomend anything to try or anyone we should consult with?August 18, 2016 at 5:24 pm #257754danbp
Participantyou can filter the activity stream. Read here:
You’ll also find many snippets on the forum by searching for “_parse_args”.
Updates are an activity type ! This is already available in the activity filter.
August 18, 2016 at 7:40 am #257739In reply to: Group with multiple forums?
mlwilkerson
ParticipantI posted the final bit of my solution to this problem over on BBPress Ticket #2191 here:
https://bbpress.trac.wordpress.org/ticket/2191#comment:17It’s filter code that helps bbPress to know what BuddyPress group is associate with any activities that might happen in a sub-forum.
So the BuddyPress group still has just one forum, but that one forum can have multiple sub-forums.
August 18, 2016 at 1:52 am #257734In reply to: Group with multiple forums?
mlwilkerson
ParticipantThanks for the suggestion, @earl_d. I had tried it already, but at your suggestion, I tried again. I did find one user error on part that was partially responsible for the fact that it didn’t work previously (the root group forum had a visibility of “Hidden”, which breaks makes the topic inaccessible to non-admin users). But still, your suggestion didn’t work for me.
TLDR: I got it working, mostly, though not entirely, and not using the approach you suggested, but your suggestion sent me down a fruitful path that ended up working out. See Scenario 4 below. Posting all of this for the benefit (hopefully) of others that may come along some day trying to work through the same issue.
(BTW, the way I interpreted your suggestion was that I should set the top-level group forum to have type=category instead of type=forum. In any case, here are my results…)
Versions
- WordPress: 4.6
- bbPress: 2.5.10
- BuddyPress: 2.6.2
Scenario 1:
(a) Create the BP Group without an associated forum.
(b) Separately, later, create a forum with type=category
(c) Go to the BP Group’s settings to try and associate the Forum to the BP GroupFail: The forum drop-down has the category forum greyed out, probably because it’s type=category.
Scenario 2:
(a) Create the BP Group *with* an associated Forum (which will automatically have type=forum)
(b) Separately, later, go edit that new Forum’s type, setting type=category
(c) Navigate to the forum’s page within the group. Say’s “the forum is empty.”
(d) Add a new sub-forum type=forum
(e) Create Topic A in the sub-forum
(f) Navigate to the group’s forum again (as a non-admin user)Expected: Topic A should appear
Actual: Topic A does not appear(g) How about directly linking to Topic A? Maybe Topic A is accessible to the user, but somehow the template simply isn’t outputting it under (f) above?
Expected: Topic A should be accessible
Actual: Topic A is accessibleTherefore: the user can see and interact with Topic, but BuddyPress doesn’t know about it as being part of the forum.
In retrospect, what seems to have actually happened here is that the original group of type=forum was regenerated and associated with the BP Group. So our topic is probably not showing up in the Group because it’s parent is the sub-forum of a forum the forum that is no longer associated with the group.
Scenario 3:
I thought: If sub-forums don’t work, then maybe multiple sibling forums could work. The Settings page for BuddyPress obviously only allows you to attach one forum, though the data model seems to allow for multiples. However, after slogging through the code, it’s clear that the current version of bbPress thwarts the adding of multiple forums. In at least two places that I saw in the code (like includes/extend/buddypress/groups.php), you have something like this:// No support for multiple forums yet $forum_id = (int) ( is_array( $forum_ids ) ? $forum_ids[0] : $forum_ids );So even if you were to completely bypass the user interface and do a hack of some kind to attach multiple forums to the group, this sort of code would thwart the hack.
Scenario 4:
So what if we go back to Scenario 1, but set up the initial group-associated forum with type=forum, instead of type=category. It would then be selectable in the admin UI, or could just be created automatically upon creation of the group.(a) Create a new private group with an associated forum
(b) Go create a new private forum and set its parent to be that initial group forum
(c) Create a topic in the sub-forum
(d) Navigate to the forum within the group as a non-admin userExpected: The sub-forum should be visible and navigable
Actual: It is! The user can click through, see the topic within the sub-forum, and reply on it.Conclusion: Success! This is the best and most functional scenario thus far.
Key differences from what I’d tried and failed before:
- All forums involved have to be set to Private visibility. If Hidden, then some aspects of this may success, but others will fail.
- The forum that is associated with the group will have to be type=forum, not type=category. But I wrote a little plugin that disallows creation of new topics within a forum, without having to mark it CLOSED (thereby also disabling comments). So this will functionally turn this top-level group forum into a category/container forum anyway
Caveat: I have noticed that when my admin user replies on the topic within the sub-forum, the BP Activity is created as expected (seen in the admin screen under Activities), but it doesn’t show up in the BP news feed of my non-admin test user. The other way works, though: if my non-admin user posts a reply to that topic, then this activity shows up in the news feed of my admin user. I need to debug that.
August 17, 2016 at 8:27 pm #257730In reply to: Group with multiple forums?
Earl_D
ParticipantThe way to to it is to make the first forum for your group a category forum. Ex MY GROUP FORUM then make subsequent forums standard and set the first one as the parent. That should accomplish what you want to do.
August 17, 2016 at 6:31 pm #257726In reply to: Group with multiple forums?
mlwilkerson
ParticipantI have the same need/concern.
Unfortunately, I think the suggestion from @openring to use https://wordpress.org/plugins/bbp-private-groups/ won’t work. I’ve looked closely at that plugin. It doesn’t seem to have anything to do with BuddyPress groups. Rather, it seems to have to do with creating it’s own role based access groups. So that’s a way of having more access control over your forums, which is valuable in and of itself, but it doesn’t pertain to BuddyPress.
August 16, 2016 at 12:57 pm #257684bchase2
ParticipantI appreciate your assistance. The developer says the time it would take to evaluate BP with his theme is outside of his support services, so I’m on my own there. Unfortunately, I really like the theme and so want to try and find a work around if possible.
I am learning as I go with this. I do know how to handle basic modification to .php files and current templates. Is there a way to create a page for groups that is outside the theme settings? I believe this is where the problem lies, with the Specular Theme default page template. I just don’t know how to modify a single page or subsequent pages to remove the template model just for this page. If I activate any of the basic WP themes, BP works fine in all respects within that theme, but reactivating the Specular theme seems to disable the groups page functionality whether I create it in the WP basic theme or from within the Specular Theme.
If it matters, I have the bbPress plug in also installed and it’s “forum” features work fine within the Specular theme using a shortcode on the “Forum” pages. Is there a similar BP Group page shortcode I might be able to install in the same fashion?
Thx-
August 16, 2016 at 10:39 am #257678Apokh
ParticipantFound now, that deactivating Simple:Press solved the problem for some reason. The bad thing is, that SP is our main forum software :/
August 16, 2016 at 9:31 am #257669In reply to: Creating User Class Systems Out/Inside Buddypress
Paul Wong-Gibbs
KeymasterOur user details and activity goes into a massive database; however I don’t want this to be impacted by the forum users
If this is absolutely non-negotiable (don’t share the database), you are going to almost certainly have to set up a separate WordPress site, just for your community.
There is one users table in the database, provided by WordPress, and as BuddyPress is a plugin that runs on top of WordPress, we also use that users database table.
If you don’t want new community users mixed up with existing users, you need to put the community stuff on a separate WordPress. Or, write code to filter and customise various lists of users as/when/if you need. BuddyPress Member Types might help.
August 16, 2016 at 9:21 am #257665In reply to: Front-End Publishing
Paul Wong-Gibbs
KeymasterThis is a better question for somewhere on the WordPress.org forums. More people over there, and this isn’t specific to BuddyPress. 🙂
August 16, 2016 at 8:11 am #257653In reply to: Creating User Class Systems Out/Inside Buddypress
sharmavishal
Participant“WP was finding it difficult to distinguish users on our current system with users of Buddypress”
correct cause bp adds additional profile fields…xprofile fields like name for example. rest gets stored in the wp_users database.
maybe u can try setting up different subdomains…bp on community.yoursite.com and forums on forums.yoursite.com
August 16, 2016 at 8:08 am #257652In reply to: role field in register form
sharmavishal
Participantcheck bp member types…and search this forums for “member types”
August 14, 2016 at 1:48 pm #257607In reply to: Problem with change password and s2member
danbp
ParticipantDeactivate all plugins and the theme and test registering from WP using a Twenty theme as first.
Then activate BP and re-test.
Then activate S2 or whatever you use for paid membership and again, test.
And finally, you have to test your theme (if not a Twenty one).FYI, BuddyPress doesn’t handle the password field, but WordPress.
You’ll probably get better answers on WP or S2 support forum.August 12, 2016 at 10:58 pm #257572In reply to: BuddyPress 2.6.2 is now available
Kineta
ParticipantAfter we upgraded to 2.6.2 yesterday, notifications of replies stopped working on group forums.
August 8, 2016 at 7:16 am #257339In reply to: Sort Order of Activity Stream
danbp
ParticipantHi,
buddypress.org use BuddyPress and bbPress plugin for the forum part (with some BP Ninja’s customization).
But note that BP activity comments are not forum topics – even if both may “look” like a discussion tread.
To get a similar behave, install bbPress as sitewide forum.
or to get a more indeep integration with your community members, use BP (member) groups and install a forum in some groups. By doing it this way, you can have thematic discussion groups, where not only the discussion is thematic, but where also the participant are sorted.
In other words, an “ordinary” forum can be categorized. With BuddyPress, a forum can be categorized, but members can be grouped, related to the group they belong to (is the group has a forum of course).
Note also that many BP user’s don’t use a group forum because group members can discuss via the group activity. This is very common, but only if you don’t care about forum fonctionnalities like sub-forums, moderation, spam/ham or rich edit for example.
August 7, 2016 at 9:28 pm #257328In reply to: Sort Order of Activity Stream
allanmisner
ParticipantOkay, I’m thinking I may have asked the question the wrong way.
I’m assuming this site is using Buddy Press for this support forum. Is that right? How does this one work because this seems to do all of what I want.
August 7, 2016 at 9:28 pm #257327In reply to: [Resolved] the right way to remove nav items
danbp
ParticipantHi,
two snippets to remove profile and group items.
function bpex_hide_profile_menu_tabs() { if( bp_is_active( 'xprofile' ) ) : if ( bp_is_user() && !is_super_admin() && !bp_is_my_profile() ) { // BP's profile main menu items. Comment those to show. // bp_core_remove_nav_item( 'activity' ); bp_core_remove_nav_item( 'profile' ); bp_core_remove_nav_item( 'friends' ); bp_core_remove_nav_item( 'groups' ); // exist only if you use bbPress bp_core_remove_nav_item( 'forums' ); // BP's profile main menu items. Comment those to show. // bp_core_remove_subnav_item( 'activity', 'personnal' ); bp_core_remove_subnav_item( 'activity', 'mentions' ); bp_core_remove_subnav_item( 'activity', 'favorites' ); bp_core_remove_subnav_item( 'activity', 'friends' ); bp_core_remove_subnav_item( 'activity', 'groups' ); } endif; } add_action( 'bp_setup_nav', 'bpex_hide_profile_menu_tabs', 15 ); function bpex_remove_group_tabs() { if ( ! bp_is_group() ) { return; } $slug = bp_get_current_group_slug(); // hide items to all users except site admin if ( !is_super_admin() ) { // bp_core_remove_subnav_item( $slug, 'members' ); bp_core_remove_subnav_item( $slug, 'send-invites' ); // bp_core_remove_subnav_item( $slug, 'admin' ); // bp_core_remove_subnav_item( $slug, 'forum' ); } } add_action( 'bp_actions', 'bpex_remove_group_tabs' );August 7, 2016 at 7:02 am #257306Topic: How to create a dynamic link to “my friends”
in forum How-to & TroubleshootingKristian Yngve
ParticipantInitial details:
WordPress 4.5.3 running.
BP Press: Version 2.5.10.
WordPress as a directory, it in root.
I have custom functions in a child bp-custom.php.
I’m running bbPress (standalone), ersion 2.5.10.
NOTE: Everything all works great – just this doesn’t seem to…
______________________________________________Now, I’ve seen many of the ‘[Resolved] How to create a dynamic link to “my profile”‘ forums but I need it as an image-link (in page, so not a widget), to the user’s “my friends”.
My best guess was: having the url of the image being:-
http://taipeiexpats.org/members/MEMBER_NAME/friends/
and, having this code in my bp-custom.php (I’ve also tried my child theme functions):-
add_filter( ‘bp_core_enable_root_profiles’, ‘__return_true’ );
}
This would allow the MEMBER_NAME (I tried adding the %username% and etc…)
None of this works.
Any ideas upon what I got to do?
-
AuthorSearch Results