Search Results for 'toolbar'
-
AuthorSearch Results
-
September 27, 2016 at 1:33 pm #259158
In reply to: Toolbar bubble – change style
danbp
ParticipantHallo @mmirlach,
I’ve activated the toolbar bubble in the settings… What are you talking about ? Such a setting doesn’t exist in BuddyPress.
You can get any css information you need for this by:
– right click on the page where you see this bubble and check the source code
or
– use Firebug or a similar tool.September 12, 2016 at 8:27 am #258649In reply to: Profile field wp editor styling
danbp
ParticipantHi,
appart it is a wordpress related question, you can use CSS.
Try this rule; goes to child-theme style.css
div.wp-editor-container div.quicktags-toolbar { background-color: red!important; }You can find good tuts on the web for more details.
September 9, 2016 at 9:27 am #258554In reply to: tinymce in activity replies and comments
bigkahunaburger
Participant@jbboro3 Oh wait that is the code just for the tinymce. I’m trying to remember if I ever had the rich text editor working for comments.
Here is the code I was using for what’s new (its modified slightly for the plugin I posted above):
function bpfr_whats_new_tiny_editor() { $dwqa_tinymce_css = apply_filters( 'dwqa_editor_style', DWQA_URI . 'templates/assets/css/editor-style.css' ); $toolbar1 = apply_filters( 'dwqa_tinymce_toolbar1', 'bold,italic,underline,|,' . 'bullist,numlist,blockquote,|,' . 'link,unlink,|,' . 'image,code,|,'. 'spellchecker,fullscreen,dwqaCodeEmbed,|,' ); wp_editor( isset( $_GET['r'] ) ? '@' . esc_attr( $_GET['r'] ) : '', 'whats-new', array( 'textarea_name' => 'whats-new', 'editor_class' => 'whats-new-mce', 'editor_height' => 200, 'media_buttons' => false, 'quicktags' => false, 'tinymce' => array( 'toolbar1' => $toolbar1, 'toolbar2' => '', 'content_css' => $dwqa_tinymce_css ) ) ); } add_action( 'whats_new_textarea', 'bpfr_whats_new_tiny_editor' );I need to do some digging too see if I have something for the rich editor in comments. I tired so many different things trying to get it working I forgot where I left off.
September 8, 2016 at 1:27 pm #258521In reply to: “Create Group” button not showing
danbp
ParticipantHi !
unable to recreate this issue on a standart install and 2016 activated.
This button comes only up on Group Directory: All Groups | My Groups | Create Group and not when you’re inside an existing group (where you see Send invites).
There is another button for this on the WP Toolbar > Usermenu > Groups > Create Group
And both are displayed correctly on Twenty Sixteen.Within buddypress.css default file, there is no specific rule for it.
In case of, button’s ID on BuddyMenu is #group-create-navFor now,
– is group creation allowed for all users (see in BP options) ?
– do you see the button in the usermenu (top right corner) and does it work ?No idea what’s your issue, but i don’t believe it is BuddyPress. Maybe a plugin or a JS issue. Difficult to say more without a live URL. 😉
September 3, 2016 at 12:24 am #258323In reply to: No Fields On Registration Page After Installing
danbp
ParticipantHi,
On your Toolbar you have the correct link to the correct register page !
http://www.nyfertility.org/register/ (which is not blank at all !) 😉Note that WP/BP use mostly php files. Searching for
file-name.htmlbrings generally nothing else as blank pages.When you create a page or use one of BP pages, edit the page and get the permalink (underneath the page title), so you be sure to have the correct path to it.
Other advice ? 🙂 Hum… read the documentation!
August 31, 2016 at 1:00 pm #258209In reply to: [Resolved] Member Menu Alterations
danbp
ParticipantHi,
bp’s Usermenu is added to wp_admin_menu on the Toolbar, under Howdy. This BP menu ID is “my-account”.
When you’re on a profile page, you see also these items in the Buddymenu, below the profile header cover.
Some working examples here:
Remove an item from UsermenuRemove an item from Buddymenu
Since 2.6, BuddyPress use a navigation API. See here for many use case.
Read also WP codex about admin bar menus.
Where to put BuddyPress custom code ?
Usually into bp-custom.php. This file is to BP code what a child theme is to a theme: a safe place with high priority where nothing get to loose when an update occurs !Child’s functions.php should be reserved to whatever you need for the theme itself.
That said, it can happen(rarely) that some custom code won’t work from within bp-custom. In this case, feel free to remove it from bp-custom and give it a try inside child’s functions.php.As novice, you’re invited to read BP and WP codex if you want to customize.
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 9, 2016 at 11:11 pm #257467In reply to: Changing adminbar site-name url
Georgio
ParticipantFinally I could resolve the problem after reading this article
This developer suggests creating a plugin. The result is a link with a dashicon but it is not responsive. To make it responsive (show on mobile), I added in the css file of the plugin a snippet I fould elsewhere:
@media screen and (max-width: 782px) { #wpadminbar li#wp-admin-bar-XXX { display: block; } }Replace XXX with your id
August 8, 2016 at 7:45 am #257341In reply to: Activity Visual Editor
bigkahunaburger
ParticipantHere is my code:
function bpfr_whats_new_tiny_editor() { wp_editor( isset( $_GET['r'] ) ? '@' . esc_attr( $_GET['r'] ) : '', 'whats-new', array( 'textarea_name' => 'whats-new', 'editor_class' => 'whats-new-mce', 'editor_height' => 200, 'media_buttons' => false, 'quicktags' => false, 'tinymce' => array( 'toolbar1' => 'bold,italic,underline,|,blockquote,|,bullist,numlist,|,link,unlink,|,spellchecker,|,undo,redo', 'toolbar2' => '' ) ) ); } add_action( 'whats_new_textarea', 'bpfr_whats_new_tiny_editor' );<div id="whats-new-textarea"> <?php do_action( 'whats_new_textarea' ); ?> </div>July 22, 2016 at 9:54 pm #256952In reply to: toolbar will not be displayed.
danbp
Participantdashboard > BuddyPress > settings > options > Main Settings and check
Toolbar [] Show the Toolbar for logged out usersIf it still doesn’t work, check your theme settings.
You could also test with Twenty Sixteen and see if there is a difference.July 17, 2016 at 10:32 pm #256722In reply to: bp custom notifications proper guide
ah72king
ParticipantI found a solution that can help
<?php // For Custom Notification // Registering Custom Componet function custom_filter_notifications_get_registered_components( $component_names = array() ) { // Force $component_names to be an array if ( ! is_array( $component_names ) ) { $component_names = array(); } // Add 'custom' component to registered components array array_push( $component_names, 'custom' ); // Return component's with 'custom' appended return $component_names; } add_filter( 'bp_notifications_get_registered_components', 'custom_filter_notifications_get_registered_components' ); // Formatting custom with respect to action function bp_custom_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) { //$item_id this your id which you can use to get your respected data $data = get_my_values_custom_function($item_id); // this is custom function it depend on your needs and data $custom_title = $data->title; $custom_link = $data->link; $custom_text = $data->text; // New custom notifications if ( 'custom_action' === $action ) { // WordPress Toolbar if ( 'string' === $format ) { $return = apply_filters( 'custom_filter','Your custom notification for <a href="'.$custom_link.'">'.$custom_title.'</a> ', $custom_text, $custom_link ); // Deprecated BuddyBar } else { $return = apply_filters( 'custom_filter', array( 'text' => $custom_text, 'link' => $custom_link ), $custom_link, (int) $total_items, $custom_text, $custom_title ); } return $return; } } add_filter( 'bp_notifications_get_notifications_for_user', 'bp_custom_format_buddypress_notifications', 10, 5 ); // Adding custom Notification in DB function bp_custom_notification( $item_id, $author_id ) { if ( bp_is_active( 'notifications' ) ) { // if notification is active from admin panel // if notification is active from admin panel bp_notifications_add_notification function to add notification into database bp_notifications_add_notification( array( 'user_id' => $author_id, // User to whom notification has to be send 'item_id' => $item_id, // Id of thing you want to show it can be item_id or post or custom post or anything 'component_name' => 'custom', // component that we registered 'component_action' => 'custom_action', // Our Custom Action 'date_notified' => bp_core_current_time(), // current time 'is_new' => 1, // It say that is new notification ) ); } } add_action( 'custom_hooks', 'bp_custom_notification', 10, 2); /** * custom_hooks is action name which will be call by do_action() function * bp_custom_notification your function name * 10 is priority number * 2 is number of parameter */ /**** * Now Where to call custom_hooks and how */ do_action('custom_hooks', $item_id, $author_id ); /**** * place it where you want to call this action and pass parameter */July 11, 2016 at 7:54 pm #256497In reply to: tinymce post-form missing “post update” button
phucitol
ParticipantThanks so much for your response. I reread that post (which is what I based my code on) and I do realize I made some changes. For example removing:
// deactivation of the visual tab, so user can't play with template styles add_filter ( 'user_can_richedit' , create_function ( '$a' , 'return false;' ) , 50 );and using:
'tinymce'=> array( 'toolbar1'=> 'bold,italic,underline,strikethrough,forecolor', 'toolbar2' => 'bullist,numlist,link,unlink,undo,redo' )instead of
'quicktags' => array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close')Without those changes I can’t get the rich text editor that I require. Did you mean by “It’s explained here” that making the visual editor work in this context is not possible?
July 10, 2016 at 1:04 pm #256416In reply to: [Resolved] Hidden admin panel
danbp
ParticipantDo you mean also that members can’t access to their profile settings when they are on their profile page ?
The BP usermenu on the Toolbar, under Howdy (top right) mimics the usermenu of the BuddyBar which is on each profile.
Have you enabled Extended Profiles ?
Or use this snippet to login redirect your users to their profile.
ps: i removed your site url as it is locked to public – which doesn’t help no one to help you.
July 5, 2016 at 10:50 pm #255992danbp
ParticipantYou can use something like this (add to bp-custom.php or child theme’s functions.php)
BuddyPress usermenu usage: remove_node(‘$id-$nav-$subnav’)
/* remove items from Toolbar Usermenu (top-right) */ function bpex_admin_bar_remove_this(){ global $wp_admin_bar; $wp_admin_bar->remove_node('my-account-forums-favorites'); $wp_admin_bar->remove_node('my-account-messages-starred'); // etc... } add_action('wp_before_admin_bar_render','bpex_admin_bar_remove_this');June 27, 2016 at 5:05 pm #255336In reply to: bp_activity_filter_kses function
danbp
Participantcolor buttons are TinyMCE tools and not html tags. The only way to get them would be to use the editor toolbar.
Here a scenario you could use:
– create a child-theme and add post-form.php to it (copy from bp-templates/bp-legacy/buddyPress/activity/post-form.php).
Result:your-child-theme/buddypress/activity/post-form.phpIn that file, go to line:40 where textarea start.
Inser this action hook:<?php if ( bp_is_groups_component() ) : ?> <?php do_action( 'blablabla' ); ?> <?php endif ?>Then add this
<?php if ( ! bp_is_groups_component() ) : ?>
<textarea class="bp-suggestions"......bla...bla...</textarea>
and add <?php endif ?> after the textarea closing tag.This contionnals will show a custom area for the desired group and prevent update area to appear on all other groups home pages.
So if a user is member of different groups, he will get a texteditor for group_id 13 and the normal update area on all others.
The custom template is ready. Now the fonctions we need.
Open bp-custom.php (or create it) and paste in those snippets.
Adding the texteditor:
function bpfr_whats_new_tiny_editor() { // deactivation of the visual tab, so user can't play with style tools //add_filter ( 'user_can_richedit' , create_function ( '$a' , 'return false;' ) , 50 ); $content = ""; // building the what's new textarea if ( isset( $_GET['r'] ) ) : $content = esc_textarea( $_GET['r'] ); endif; // adding tinymce tools $editor_id = 'whats-new'; $settings = array( 'textarea_name' => 'whats-new', 'teeny' => false, 'media_buttons' => true, 'drag_drop_upload' => true, 'quicktags' => array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' )); // get the editor wp_editor( $content, $editor_id, $settings ); } add_action( 'whats_new_textarea', 'bpfr_whats_new_tiny_editor' );A simple function who add the original textarea for users who are group members, but not allowed to rich edit.
function my_textarea() { ?> <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> <?php }And the last one, where you set up the group allowed to publish updates using edit tools.
function trotro() { if ( bp_is_groups_component() ) : $check = groups_is_user_member( bp_loggedin_user_id(), bp_get_group_id() ); $check_group = bp_get_group_id(); if ($check != 0 && $check_group == 21 && 'leon' == bp_current_item() ){ echo 'Wow! You can rich edit in this group.'; bpfr_whats_new_tiny_editor(); } else { echo 'Sorry, you cannot rich edit in this group'; my_textarea(); } endif; } add_action( 'blablabla', 'trotro' );Now, any member which is part of the group leon, group id 23 can publish updates and use the color picker and all other things which are on the edit bar.
Only thing you have to do is to adjust leon and id to your rules.
Successfully tested on 2.6 and 2016.
May this help you to go further with your BuddyPress project. 🙂
June 4, 2016 at 7:30 pm #254137danbp
ParticipantGive this a try: (add to bp-custom.php) 1) & 2):
function bpfr_hide_tabs() { global $bp; if ( bp_is_user() && !is_super_admin() ) { bp_core_remove_nav_item( 'notifications' ); bp_core_remove_subnav_item( 'messages', 'compose' ); } } add_action( 'bp_setup_nav', 'bpfr_hide_tabs', 15 );3) With BP and xprofile component activated, a user doesn’t need access to WP dashboard. He can change his profile credentials from front-end.
Easiest way would be to use this plugin.Retrieving them the possibility to change their email is anyway not a good idea. What happen when a user changed from yahoo to gmail, but can’t login because he lost his password ? Where will the new pwd be sent ?
Perhaps you have also to remove this from the BP usermenu on toolbar ?
Here’s how you can do it:function admin_bar_remove_this(){ global $wp_admin_bar; $wp_admin_bar->remove_node('my-account-messages-compose'); } add_action('wp_before_admin_bar_render','admin_bar_remove_this');May 25, 2016 at 9:24 am #253745In reply to: BP menu on wp multisite
Paddy
ParticipantThanks for the reply.
That’s a pity.
The community or bp menu i think should be available on the entire network and not only on mainsite. Otherwise a blog user will need to go back on the mainsite to use the community tool.
When you say the toolbar do you mean the dashboard (backend)?
If so that’s also a pity because users don’t like to go to the backend. Instead it would be better to have the full bp menu on Frontend.
PaddyMay 25, 2016 at 8:14 am #253744In reply to: BP menu on wp multisite
danbp
ParticipantSo the mainsite BP menu is not complete on subsite!
That’s right, because on a subsite, you’re on a blog.
BP is only active on the mainsite, as it’s where it is activated. On mainsite you see whole members fonctionnalities (friends, groups, messages and son on). On a blog, aka subsite, you’re like a user of a WP site whithout BP.That’s also the reason why enabling multiblog is deactivated by default and not usefull in most of case. This warning is given on the codex page i indicated you previously.
Deactivate multiblog and revert to initial default configuration.
On the toolbar, in top left corner, you have the usermenu with all BP items. This menu is accessible to logedin user, wherever he is. Mainsite or subsite. And that’s default behave !
For a bit more understanding, in case you want insist to remove that menu to get it on the main nav (beside About, Home etc), please take a look to this topic.
Cheers ! 😉
April 17, 2016 at 4:52 pm #252541In reply to: Blog for users
FridaFric
ParticipantHi danbp,
Thank you very much for your prompt response. I’ve done all that you wrote me but new tab called Sites do not appear in Toolbar user menu. Maybe I need something to do in BuddyPress settings too?April 17, 2016 at 4:20 pm #252540In reply to: Blog for users
danbp
ParticipantHi,
you don’t need a plugin to do that. You have perhaps omited to activate blog creation. Go to your network admin (wp-admin/network/settings.php)
and select one of these option:
– Logged in users may register new sites.
– Both sites and user accounts can be registered.Save and you’re done.
On the Toolbar user menu (top right) you will see a new button called Sites whith a sub-menu Create a site.March 24, 2016 at 3:46 pm #251764In reply to: Email Notifications Not Working
Paul Wong-Gibbs
KeymasterBy “notification”, do you mean an email? Or a notification in the toolbar? Or both?
February 26, 2016 at 10:02 pm #250314RONO2
ParticipantHide Admin Bar Toolbar is what I used. I’m still trying to link my buddypress with my bbpress not going over well. LoL Hope this helps.
February 16, 2016 at 10:06 am #249911In reply to: @mention autosuggest in visual editor
OakCreative
Participant@oliver_rub, our current solution involves deregistering the BuddyPress mentions script and enqueuing our own slightly modified version with a more generic jQuery selector. I think @slaffik has found the best solution though, I’m going to try it.
@benworxnl, no we had a slightly different scenario. We transformed the “What’s New” textarea into a WYSIWYG editor and the visual tab worked on that straight away. The issue we had was getting the mentions to work on that visual editor.Anyway, we duplicated and edited the
activity/post-form.phptemplate and replaced the textarea withwp_editor;wp_editor( isset( $_GET['r'] ) ? '@' . esc_attr( $_GET['r'] ) : '', 'whats-new', array( 'textarea_name' => 'whats-new', 'editor_class' => 'whats-new-mce', 'editor_height' => 200, 'tinymce' => array( 'toolbar1' => 'bold,italic,underline,|,blockquote,|,bullist,numlist,|,link,unlink,|,spellchecker,|,undo,redo', 'toolbar2' => '' ) ) );
For activity replies, you could do something similar to this in
activity/entry.php;wp_editor( isset( $_GET['r'] ) ? '@' . esc_attr( $_GET['r'] ) : '', 'ac-input-' . bp_activity_id(), array( 'textarea_name' => 'ac_input_' . bp_activity_id(), 'editor_class' => 'ac-input', 'editor_height' => 200, 'tinymce' => array( 'toolbar1' => 'bold,italic,underline,|,blockquote,|,bullist,numlist,|,link,unlink,|,spellchecker,|,undo,redo', 'toolbar2' => '' ) ) );
Please note, I’ve not tested the above.
February 10, 2016 at 4:16 pm #249713In reply to: Few Issues
David Cavins
KeymasterThat’s quite a laundry list.
1) https://premium.wpmudev.org/blog/limit-access-to-your-wordpress-dashboard/
2) http://wptavern.com/wordpress-tip-disable-the-toolbar-on-a-per-user-role-basis
3) Can’t help there.
4) Check out “Edit activity” plugin here: http://www.buddyboss.com/free-buddypress-plugins/December 28, 2015 at 4:00 pm #248156jscmal
ParticipantHere the list of plugins installed in this moment:
advanced-lazy-load
advanced-recent-posts
affiliates-manager
affiliates-manager-simple-membership-integration
akismet
bp-activity-autoloader
bp-activity-comment-notifier
bp-activity-shortcode
buddypress
buddypress-cover-photo
buddypress-first-letter-avatar
buddypress-followers
buddypress-media
buddypress-members-only
buddypress-sticker
cookie-law-info
ewww-image-optimizer
eyes-only-user-access-shortcode
favorites
fb-like-notification-for-buddypress
google-analytics-dashboard-for-wp
hashbuddy
invite-anyone
jetpack
mailchimp-for-wp
options-importer
options-optimizer
redirection
simple-ajax-chat
simple-membership
simple-membership-after-login-redirection
simple-membership-custom-messages
simple-membership-form-shortcode
simple-membership-mailchimp-integration
simple-membership-menu
simple-membership-wp-user-import
stream
testimonials-by-woothemes
user-role-editor
user-switching
woosidebars
wordpress-database-reset
wordpress-importer
wordpress-seo
wp-optimize
wp-postviews
wp-super-cache
wp-sweep
wp-symposium-toolbar
wp-useronline
wp-video-lightbox -
AuthorSearch Results