Search Results for 'toolbar'
-
AuthorSearch Results
-
March 17, 2013 at 2:13 pm #156605
In reply to: [Resolved] How to add images to a custom toolbar?
bp-helpParticipant@hnla is there any documentation how to implement using the plugins_url function. I can’t seem to find anything and I am having trouble to get it working. Thanks!
March 17, 2013 at 10:38 am #156596In reply to: [Resolved] How to add images to a custom toolbar?
Hugo AshmoreParticipantIf you haven’t already you probably ought to use the plugins_url function to find those images :
. plugins_url( '_incl/images/my-image.png' , __FILE__ ) .
March 17, 2013 at 6:07 am #156590In reply to: [Resolved] How to add images to a custom toolbar?
bp-helpParticipantI made some changes now all the icons link to the pages but I need help to show the drop down menu for each individual notification. Here is what I have so far and I really am not certain of the id of each type of notification! Thanks in advance!
function custom_toolbar($wp_toolbar) { global $wp_admin_bar; if ( is_user_logged_in() ) { $wp_toolbar->add_node(array( 'id' => 'bp-notifications', 'title' => __('<img src="http://localhost/mydev/wp-content/plugins/custom-toolbar/_inc/images/notifications.png" /> '), 'href' => bp_loggedin_user_domain() . bp_get_messages_slug() . '/notices/', /*'meta' => array('class' => 'notifications')*/ )); $wp_toolbar->add_node(array( 'id' => 'user-friends', 'title' => __('<img src="http://localhost/mydev/wp-content/plugins/custom-toolbar/_inc/images/friends.png" />'), 'href' => bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/', /*'meta' => array('class' => 'menupop')*/ ) ); $wp_toolbar->add_node(array( 'id' => 'user-messages', 'title' => __('<img src="http://localhost/mydev/wp-content/plugins/custom-toolbar/_inc/images/messages.png" />'), 'href' => bp_loggedin_user_domain() . bp_get_messages_slug() . '/view/', /*'meta' => array('class' => 'menupop')*/ ) ); } } add_action('admin_bar_menu', 'custom_toolbar', 999);
March 16, 2013 at 6:01 pm #156560In reply to: [Resolved] How to add images to a custom toolbar?
bp-helpParticipantOkay with this code I got all links to work. Thanks @chouf1 for helping. Now I just need the get the friend requests and messages to have a drop down to display when there is a message. If anyone has a better idea I am totally open to suggestions. I would like to get this working like facebooks if possible. Also I was wondering in the below code how can I get the images loaded dynamically from plugins /images folder I created? Thanks again!
function custom_toolbar($wp_toolbar) {
global $wp_admin_bar;if ( is_user_logged_in() ) {
$wp_toolbar->add_node(array(
'id' => 'bp-notifications',
'title' => __(' '),
'meta' => array('class' => 'notifications')
));$wp_toolbar->add_node(array(
'id' => 'friends-requests',
'title' =>__(' '),
'href' => bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/',
) );$wp_toolbar->add_node(array(
'id' => 'messages-inbox',
'title' => __(' '),
'href' => bp_loggedin_user_domain() . bp_get_messages_slug() . '/view/',
) );
}
}
add_action('admin_bar_menu', 'custom_toolbar', 999);March 16, 2013 at 1:33 pm #156543In reply to: [Resolved] How to add images to a custom toolbar?
bp-helpParticipant@modemlooper @mercime @sbrajesh @chouf1
Is there anyone who can give me a hand please? I’m stuck trying to get this working. Thanks everyone!March 16, 2013 at 2:41 am #156523In reply to: [Resolved] How to add images to a custom toolbar?
bp-helpParticipant@chouf1
Hey sorry to be a pain but that code gives the same error.Parse error: syntax error, unexpected ‘id’ (T_STRING), expecting ‘)’ in C:\xampp\htdocs\mydev\wp-content\plugins\custom-toolbar\custom-toolbar.php on line 48
I’m a noob so I really appreciate the help!
March 15, 2013 at 11:53 pm #156509In reply to: [Resolved] How to add images to a custom toolbar?
bp-helpParticipant@chouf1
That didn’t work and it fired off this error.Parse error: syntax error, unexpected ‘id’ (T_STRING), expecting ‘)’ in C:\xampp\htdocs\mydev\wp-content\plugins\custom-toolbar\custom-toolbar.php on line 48
Got any more idea’s on how to get these links working!
March 15, 2013 at 9:31 pm #156499In reply to: [Resolved] How to add images to a custom toolbar?
bp-helpParticipantThis is the code I have and the images are now visible but the links for friend-requests and messages doesn’t work. I am not sure of the id or href. Can someone please help me out on this code? Thank you everyone! 🙂
$wp_toolbar->add_node(array( 'id' => 'bp-notifications', 'title' => __('<img src="http://localhost/mydev/wp-content/plugins/custom-toolbar/_inc/images/notifications.png" /> '), 'meta' => array('class' => 'notifications') )); $wp_toolbar->add_node(array( 'id' => 'friend-requests', 'title' => __('<img src="http://localhost/mydev/wp-content/plugins/custom-toolbar/_inc/images/friends.png" /> '), 'href' => $notification->href ) ); $wp_toolbar->add_node(array( 'id' => 'messages', 'title' => __('<img src="http://localhost/mydev/wp-content/plugins/custom-toolbar/_inc/images/messages.png" /> '), 'href' => $notification->href ) );
March 15, 2013 at 3:57 pm #156465In reply to: [Resolved] How to add images to a custom toolbar?
bp-helpParticipant@hnla Hi, I am having a hard time getting the image to show up. Also what is the node id for friend request, and private messages? I can’t seem to find it to use in my custom toolbar to add these as top level items! Thanks!
March 15, 2013 at 10:56 am #156454In reply to: [Resolved] How to add images to a custom toolbar?
Hugo AshmoreParticipantI wouldn’t expect what you have above to work ‘title’ is the link name the character text for the anchor ‘href’ is the actual link href and there are few other parts one can manipulate in this way however looking at admin-bar.php seems to suggest ‘title’ is a little more confusing than suggested by the WP codex.
I would look at admin-bar.php around line 140 on to see how WP add the user avatar.
March 14, 2013 at 8:23 pm #156409maddogmcewanParticipantHi not sure if this is what you are trying to do, if you go to http://smeak.com you can see it at work, we split the notifications intro 3, and into a custom toolbar we built for the network. Let me know to see if we can help
March 14, 2013 at 7:35 pm #156403bp-helpParticipant@chouf1 Hey thanks for your help. Is there anyway to get the number of these individual types of notifications you have beside the links or image kinda like it does in the toolbar? Cheers!
March 14, 2013 at 12:31 pm #156369In reply to: Admin bar modification
danbpfrParticipanthi @panoravu,
for css styling, be inspired by this: http://www.php-ease.com/code/wordpress-style-admin-bar.html
If you want to code something into the Toolbar, you have to play with the wp_admin_bar filter.
The function goes then to your theme functions.php
Based ons omething like this
function my_function( $wp_admin_bar )
{
/* Â what you need here */}
add_filter( ‘admin_bar_menu’, ‘my_function’ );Google around to find many answers about the WP Toolbar, like this one:
http://technerdia.com/1140_wordpress-admin-bar.htmlMarch 9, 2013 at 6:56 pm #155921In reply to: [Resolved] Can't revert to buddybar
Paul Wong-GibbsKeymasterMarch 6, 2013 at 6:52 pm #155285In reply to: BP Member Notes – beta
@mercimeParticipant@shanebp in view that you made this bug test for mercime, I tested the plugin in the same installation and it’s working as expected. If BP is activated, I see the notice showing up right under the adminbar/toolbar and right above Dashboard menu. If I deactivate BP, there’s no notice.
EDIT – @djpaul awesome! 🙂
March 1, 2013 at 10:01 pm #154819In reply to: Required Profile fields don't work
bp-helpParticipant@supernaturalbrews user profile extended fields doesn’t show up in the dashboard. you can however click on a member in the front end then as an admin you will see the toolbar change up near the left where it says edit member. click edit member/edit profile and then you can see what info they entered in the extended profile fields.
February 28, 2013 at 11:47 pm #154761In reply to: BuddyBar Links Wrong?
danbpfrParticipantNo this is the normal behaviour. The ToolBar top right menus are “Your Account” access menus.
Before BP integrates the WP ToolBar, the plugin had is own toolbar (ak buddybar). On this “old” bar, those menus where all under a label “your account”, on the left. Since this bar is disabled, the account access menu was migrated at this place.
Global activity or global group access or forums buttons are all on the menubar. (if your theme use a menubar !)
February 22, 2013 at 9:53 pm #153786In reply to: Login Bar missing
danbpfrParticipantYes, in fact there is only one ToolBar. The “old” BP toolbar is deactivated by default. FYI, login/registering is WP stuff 😀
February 22, 2013 at 9:34 pm #153782In reply to: Login Bar missing
daspedParticipantGo to Dashboard/Settings/BuddyPress/Settings at the top, Check Show the Toolbar for logged out users.
February 18, 2013 at 1:07 pm #153330benny_rayParticipantDear Guys,
As far as I can understand from the previous post I would have the same question as the topic starter.
I would like to move the whole buddypress toolbar from the admin menu to the top nav as the picture shows below.
Could somebody help me how to achive it?
Thank you for advance!
February 15, 2013 at 12:23 am #153079@mercimeParticipant@km-schafer-1 please do go ahead and take care of the Valentine’s Day things for your wife 🙂
In adminbar/toolbar choose link My Sites > Network Admin > Sites and click on “Dashboard” link under a site which is not showing up in Blogs Directory. Go to Settings > Reading > Search Engine Visibility – ” Discourage search engines from indexing this site” is not checked.
February 13, 2013 at 8:35 am #152952In reply to: [Resolved] toolbar disappears for users
NumberOneComputerParticipantI have same problem
I use BP Default theme & my theme but both of them my users can’t see it & my all plugin is same as beforeI didn’t have problem with buddypress 1.6.4
Link to my site>you can go to my profile
Best regards
February 10, 2013 at 2:42 pm #152785In reply to: [Resolved] toolbar disappears for users
@mercimeParticipant@johnconner You’re welcome. Thanks for sharing how you solved the issue 🙂
Marking this as resolved.February 9, 2013 at 6:15 pm #152736In reply to: [Resolved] toolbar disappears for users
John ConnerParticipantthanks a lot for the clue, it was “theme my login” themed profiles module. I changed this line in the module’s php file and everything goes perfect:
`if ( $theme_my_login->options->get_option( array( ‘themed_profiles’, $user_role, ‘restrict_admin’ ) ) )
return true;`February 9, 2013 at 5:44 pm #152732In reply to: [Resolved] toolbar disappears for users
@mercimeParticipantWhat theme are you using? Have you tried changing to BP Default theme to see if issue is resolved?
What plugins are installed? Have you tried deactivating all plugins except BuddyPress to check if wp-admin shows up as expected? If that works, activate plugins one by one to check which is causing the mystery of the missing toolbar.
-
AuthorSearch Results